Patterncore
Remote facade
Also called Remote Facade, session facade, coarse-grained remote interface.
A remote facade gives remote clients a few coarse-grained methods over many fine-grained objects, so one network call does the work of many local calls.
- Family
- architectural
- Intent
- Provide a coarse-grained facade on fine-grained objects to improve efficiency over a network.
Intent
A remote facade "Provides a coarse-grained facade on fine-grained objects to improve efficiency over a network."1 Inside the process, the design keeps many small objects with small methods. At the process boundary, a few large methods do the work of a whole screen or a whole task in one call.12
Problem
Small objects with small methods are good inside one process. Fowler: "This gives you lots of opportunity for control and substitution of behavior".1 But the price is many calls: "there's usually a great deal of interaction between objects".1
This is not a problem in one address space, but a remote call costs much more: "Data may have to be marshaled, security may need to be checked, packets may need to be routed through switches."1 Fowler writes that "any inter-process call is orders of magnitude more expensive than an in-process call - even if both processes are on the same machine."1 A client that uses the small objects over the network makes one remote call for each small method, and the time of these calls adds up. Microsoft calls this design the chatty I/O antipattern, and notes that it "often happens when developers try to follow an object-oriented paradigm, and treat remote objects as if they were local objects in memory."3
The remote interface must be coarse-grained, but a coarse-grained design for all the objects loses the benefits of the small objects.
Solution
Keep the small objects, and put a coarse-grained facade in front of them for the remote clients only. "None of the fine-grained objects have a remote interface, and the Remote Facade contains no domain logic. All the Remote Facade does is translate coarse-grained methods onto the underlying fine-grained objects."1
The parts are:
- The fine-grained objects. The Domain model or the other objects of the application, with no remote interface.
- The remote facade. A few methods, each of which does one task for a remote client, such as "get the order with its lines and its address". It calls the small objects, and it has no domain logic of its own.
- The transfer data. Each method takes and returns data, not references to objects. The data is often a Data transfer object, which the remote connection can serialize.
- The remote connection. HTTP, gRPC, a message queue or another way to make calls between processes.
remote client one call: get_order(7)
| ^
============= network ========|================== process boundary
v |
remote facade get_order() change_address() (no domain logic)
| | \
fine-grained objects Order Customer Address Line ... (many local calls)
The following program has one fine-grained object and a facade with one method. The client gets the three values of the customer in one remote call, as JSON text.
import json
class Customer: # a fine-grained object: one small method for each value
def __init__(self, name, street, city):
self._name, self._street, self._city = name, street, city
def name(self):
return self._name
def street(self):
return self._street
def city(self):
return self._city
class CustomerFacade: # the remote facade: one coarse-grained method
def __init__(self, customers):
self._customers = customers
def get_customer(self, number):
c = self._customers[number]
return {"name": c.name(), "street": c.street(), "city": c.city()}
class Network: # counts the calls, and lets only JSON text cross
def __init__(self, server):
self.server, self.calls = server, 0
def call(self, method, *args):
self.calls += 1
return json.loads(json.dumps(getattr(self.server, method)(*args)))
net = Network(CustomerFacade({1: Customer("Ann", "1 Elm Street", "Leeds")}))
doc = net.call("get_customer", 1)
print(doc["name"], "|", doc["street"], "|", doc["city"])
print("remote calls:", net.calls)
Ann | 1 Elm Street | Leeds
remote calls: 1
Example
Each example file has small domain objects: an order, its lines, a customer and an address. The remote facade has two methods. get_order returns all the data of one order, with the lines, the total and the address, in one reply. change_address takes the new address in one call and passes it to the address object. A Network object stands for the remote connection and counts the calls. The client shows the order, changes the address and reads the order again, with 3 remote calls in total. It also changes its own copy of the order, and the last lines show that this copy is not the object on the server.
import json
def cents(n):
return f"{n // 100}.{n % 100:02d}"
# Fine-grained domain objects: small objects with small methods.
class Address:
def __init__(self, street, city):
self._street, self._city = street, city
def street(self):
return self._street
def city(self):
return self._city
def move_to(self, street, city):
self._street, self._city = street, city
class Customer:
def __init__(self, name, address):
self._name, self._address = name, address
def name(self):
return self._name
def address(self):
return self._address
class Line:
def __init__(self, item, qty, price):
self.item, self.qty, self.price = item, qty, price
def amount(self):
return self.qty * self.price
class Order:
def __init__(self, number, customer, lines):
self.number, self.customer, self.lines = number, customer, lines
def total(self):
return sum(line.amount() for line in self.lines)
# Remote facade: coarse-grained methods over the fine-grained objects, with no domain logic.
class OrderFacade:
def __init__(self, orders):
self._orders = orders
def get_order(self, number):
order = self._orders[number]
address = order.customer.address()
return {
"number": order.number,
"customer": order.customer.name(),
"ship_to": f"{address.street()}, {address.city()}",
"lines": [{"item": l.item, "qty": l.qty, "price": l.price} for l in order.lines],
"total": order.total(),
}
def change_address(self, number, street, city):
self._orders[number].customer.address().move_to(street, city)
# The network: each call is counted, and only data crosses it, as JSON text.
class Network:
def __init__(self, server):
self.server, self.calls = server, 0
def call(self, method, *args):
self.calls += 1
request = json.dumps([method, args])
name, params = json.loads(request)
reply = json.dumps(getattr(self.server, name)(*params))
return json.loads(reply)
ann = Customer("Ann", Address("1 Elm Street", "Leeds"))
orders = {7: Order(7, ann, [Line("lamp", 2, 2500), Line("desk", 1, 7500), Line("pen", 4, 500)])}
net = Network(OrderFacade(orders))
# The client: one remote call gets all the data that the screen needs.
view = net.call("get_order", 7)
print(f"order {view['number']} for {view['customer']}: {len(view['lines'])} lines, total {cents(view['total'])}")
for line in view["lines"]:
print(f" {line['item']} x{line['qty']} at {cents(line['price'])}")
print("ship to:", view["ship_to"])
net.call("change_address", 7, "2 Oak Road", "York")
view["ship_to"] = "not sent back" # the client has a copy; this changes nothing on the server
print("ship to:", net.call("get_order", 7)["ship_to"])
print("remote calls:", net.calls)
order 7 for Ann: 3 lines, total 145.00
lamp x2 at 25.00
desk x1 at 75.00
pen x4 at 5.00
ship to: 1 Elm Street, Leeds
ship to: 2 Oak Road, York
remote calls: 3
- Verdict: idiom.
OrderFacadehas two coarse-grained methods and no domain logic.get_orderreads the fine-grained objects and returns one dictionary with all the data that the screen needs.change_addresspasses one call to the address object. Networkstands for the remote connection. It counts the calls, and it changes each request and each reply into JSON text and back, so only data crosses it. The client gets a copy, which is why the change toviewhas no effect on the server.
import java.util.List;
import java.util.Map;
import java.util.function.Supplier;
public class Main {
static String cents(long n) {
return String.format("%d.%02d", n / 100, n % 100);
}
// Fine-grained domain objects: small objects with small methods.
static class Address {
private String street, city;
Address(String street, String city) { this.street = street; this.city = city; }
String street() { return street; }
String city() { return city; }
void moveTo(String street, String city) { this.street = street; this.city = city; }
}
static class Customer {
private final String name;
private final Address address;
Customer(String name, Address address) { this.name = name; this.address = address; }
String name() { return name; }
Address address() { return address; }
}
record Line(String item, int qty, long price) {
long amount() { return qty * price; }
}
record Order(int number, Customer customer, List<Line> lines) {
long total() { return lines.stream().mapToLong(Line::amount).sum(); }
}
// The data that crosses the network: immutable values, with no behavior.
record LineView(String item, int qty, long price) {}
record OrderView(int number, String customer, String shipTo, List<LineView> lines, long total) {}
// Remote facade: coarse-grained methods over the fine-grained objects, with no domain logic.
static class OrderFacade {
private final Map<Integer, Order> orders;
OrderFacade(Map<Integer, Order> orders) { this.orders = orders; }
OrderView getOrder(int number) {
Order order = orders.get(number);
Address address = order.customer().address();
List<LineView> lines = order.lines().stream()
.map(l -> new LineView(l.item(), l.qty(), l.price())).toList();
return new OrderView(order.number(), order.customer().name(),
address.street() + ", " + address.city(), lines, order.total());
}
void changeAddress(int number, String street, String city) {
orders.get(number).customer().address().moveTo(street, city);
}
}
// The network: each call is counted. A real remote call would also serialize the values.
static class Network {
int calls = 0;
<T> T call(Supplier<T> request) {
calls++;
return request.get();
}
void send(Runnable request) {
calls++;
request.run();
}
}
public static void main(String[] args) {
Customer ann = new Customer("Ann", new Address("1 Elm Street", "Leeds"));
Map<Integer, Order> orders = Map.of(7, new Order(7, ann,
List.of(new Line("lamp", 2, 2500), new Line("desk", 1, 7500), new Line("pen", 4, 500))));
OrderFacade facade = new OrderFacade(orders);
Network net = new Network();
// The client: one remote call gets all the data that the screen needs.
OrderView view = net.call(() -> facade.getOrder(7));
System.out.println("order " + view.number() + " for " + view.customer() + ": " + view.lines().size()
+ " lines, total " + cents(view.total()));
for (LineView line : view.lines()) {
System.out.println(" " + line.item() + " x" + line.qty() + " at " + cents(line.price()));
}
System.out.println("ship to: " + view.shipTo());
net.send(() -> facade.changeAddress(7, "2 Oak Road", "York"));
System.out.println("ship to: " + net.call(() -> facade.getOrder(7)).shipTo());
System.out.println("remote calls: " + net.calls);
}
}
order 7 for Ann: 3 lines, total 145.00
lamp x2 at 25.00
desk x1 at 75.00
pen x4 at 5.00
ship to: 1 Elm Street, Leeds
ship to: 2 Oak Road, York
remote calls: 3
- Verdict: idiom.
OrderFacadereturns anOrderViewrecord, which is immutable and has no reference to the domain objects. In the Core J2EE patterns, a session bean with this role is a Session Facade. Networkonly counts the calls. A real remote call, for example over HTTP with a JSON library or over gRPC, would also serialize the records.
const cents = (n) => `${Math.floor(n / 100)}.${String(n % 100).padStart(2, "0")}`;
// Fine-grained domain objects: small objects with small methods.
class Address {
#street; #city;
constructor(street, city) { this.#street = street; this.#city = city; }
street() { return this.#street; }
city() { return this.#city; }
moveTo(street, city) { this.#street = street; this.#city = city; }
}
class Customer {
#name; #address;
constructor(name, address) { this.#name = name; this.#address = address; }
name() { return this.#name; }
address() { return this.#address; }
}
class Line {
constructor(item, qty, price) { this.item = item; this.qty = qty; this.price = price; }
amount() { return this.qty * this.price; }
}
class Order {
constructor(number, customer, lines) { this.number = number; this.customer = customer; this.lines = lines; }
total() { return this.lines.reduce((s, l) => s + l.amount(), 0); }
}
// Remote facade: coarse-grained methods over the fine-grained objects, with no domain logic.
class OrderFacade {
#orders;
constructor(orders) { this.#orders = orders; }
getOrder(number) {
const order = this.#orders.get(number);
const address = order.customer.address();
return {
number: order.number,
customer: order.customer.name(),
shipTo: `${address.street()}, ${address.city()}`,
lines: order.lines.map((l) => ({ item: l.item, qty: l.qty, price: l.price })),
total: order.total(),
};
}
changeAddress(number, street, city) {
this.#orders.get(number).customer.address().moveTo(street, city);
}
}
// The network: each call is counted, and only data crosses it, as JSON text.
class Network {
constructor(server) { this.server = server; this.calls = 0; }
call(method, ...args) {
this.calls++;
const [name, params] = JSON.parse(JSON.stringify([method, args]));
const reply = JSON.stringify(this.server[name](...params) ?? null);
return JSON.parse(reply);
}
}
const ann = new Customer("Ann", new Address("1 Elm Street", "Leeds"));
const orders = new Map([[7, new Order(7, ann, [new Line("lamp", 2, 2500), new Line("desk", 1, 7500), new Line("pen", 4, 500)])]]);
const net = new Network(new OrderFacade(orders));
// The client: one remote call gets all the data that the screen needs.
const view = net.call("getOrder", 7);
console.log(`order ${view.number} for ${view.customer}: ${view.lines.length} lines, total ${cents(view.total)}`);
for (const line of view.lines) console.log(` ${line.item} x${line.qty} at ${cents(line.price)}`);
console.log("ship to:", view.shipTo);
net.call("changeAddress", 7, "2 Oak Road", "York");
view.shipTo = "not sent back"; // the client has a copy; this changes nothing on the server
console.log("ship to:", net.call("getOrder", 7).shipTo);
console.log("remote calls:", net.calls);
order 7 for Ann: 3 lines, total 145.00
lamp x2 at 25.00
desk x1 at 75.00
pen x4 at 5.00
ship to: 1 Elm Street, Leeds
ship to: 2 Oak Road, York
remote calls: 3
- Verdict: idiom. The domain classes use private fields (
#street), so only their methods can read the data.OrderFacadereturns a plain object, whichJSON.stringifycan serialize, and has no domain logic. Network.callchanges the request and the reply into JSON text and back. In a real application, the facade would be the handler of an HTTP API, and the client would call it withfetch.
package main
import (
"encoding/json"
"fmt"
)
func cents(n int) string { return fmt.Sprintf("%d.%02d", n/100, n%100) }
// Fine-grained domain objects: small objects with small methods.
type Address struct{ street, city string }
func (a *Address) Street() string { return a.street }
func (a *Address) City() string { return a.city }
func (a *Address) MoveTo(street, city string) { a.street, a.city = street, city }
type Customer struct {
name string
address *Address
}
func (c *Customer) Name() string { return c.name }
func (c *Customer) Address() *Address { return c.address }
type Line struct {
item string
qty, price int
}
func (l Line) Amount() int { return l.qty * l.price }
type Order struct {
number int
customer *Customer
lines []Line
}
func (o *Order) Total() int {
t := 0
for _, l := range o.lines {
t += l.Amount()
}
return t
}
// The data that crosses the network.
type LineView struct {
Item string `json:"item"`
Qty int `json:"qty"`
Price int `json:"price"`
}
type OrderView struct {
Number int `json:"number"`
Customer string `json:"customer"`
ShipTo string `json:"ship_to"`
Lines []LineView `json:"lines"`
Total int `json:"total"`
}
// OrderFacade is the remote facade: coarse-grained methods over the fine-grained
// objects, with no domain logic.
type OrderFacade struct{ orders map[int]*Order }
func (f *OrderFacade) GetOrder(number int) OrderView {
o := f.orders[number]
a := o.customer.Address()
v := OrderView{Number: o.number, Customer: o.customer.Name(), ShipTo: a.Street() + ", " + a.City(), Total: o.Total()}
for _, l := range o.lines {
v.Lines = append(v.Lines, LineView{l.item, l.qty, l.price})
}
return v
}
func (f *OrderFacade) ChangeAddress(number int, street, city string) {
f.orders[number].customer.Address().MoveTo(street, city)
}
// Network counts each call, and only data crosses it, as JSON text.
type Network struct {
server *OrderFacade
calls int
}
func (n *Network) GetOrder(number int) OrderView {
n.calls++
reply, _ := json.Marshal(n.server.GetOrder(number))
var v OrderView
_ = json.Unmarshal(reply, &v)
return v
}
func (n *Network) ChangeAddress(number int, street, city string) {
n.calls++
n.server.ChangeAddress(number, street, city)
}
func main() {
ann := &Customer{"Ann", &Address{"1 Elm Street", "Leeds"}}
orders := map[int]*Order{7: {7, ann, []Line{{"lamp", 2, 2500}, {"desk", 1, 7500}, {"pen", 4, 500}}}}
net := &Network{server: &OrderFacade{orders}}
// The client: one remote call gets all the data that the screen needs.
view := net.GetOrder(7)
fmt.Printf("order %d for %s: %d lines, total %s\n", view.Number, view.Customer, len(view.Lines), cents(view.Total))
for _, l := range view.Lines {
fmt.Printf(" %s x%d at %s\n", l.Item, l.Qty, cents(l.Price))
}
fmt.Println("ship to:", view.ShipTo)
net.ChangeAddress(7, "2 Oak Road", "York")
view.ShipTo = "not sent back" // the client has a copy; this changes nothing on the server
fmt.Println("ship to:", net.GetOrder(7).ShipTo)
fmt.Println("remote calls:", net.calls)
}
order 7 for Ann: 3 lines, total 145.00
lamp x2 at 25.00
desk x1 at 75.00
pen x4 at 5.00
ship to: 1 Elm Street, Leeds
ship to: 2 Oak Road, York
remote calls: 3
- Verdict: idiom. The facade returns an
OrderViewstruct, and the struct tags give its form in JSON. The fields of the domain structs are not exported, soencoding/jsoncannot serialize the domain objects by mistake. Networkhas one method for each method of the facade. Each method counts the call, andGetOrdersends the reply throughjson.Marshalandjson.Unmarshal, so the client gets a copy.
use std::collections::HashMap;
fn cents(n: i64) -> String {
format!("{}.{:02}", n / 100, n % 100)
}
// Fine-grained domain objects: small objects with small methods.
struct Address {
street: String,
city: String,
}
impl Address {
fn street(&self) -> &str {
&self.street
}
fn city(&self) -> &str {
&self.city
}
fn move_to(&mut self, street: &str, city: &str) {
self.street = street.to_string();
self.city = city.to_string();
}
}
struct Customer {
name: String,
address: Address,
}
struct Line {
item: &'static str,
qty: i64,
price: i64,
}
impl Line {
fn amount(&self) -> i64 {
self.qty * self.price
}
}
struct Order {
number: u32,
customer: Customer,
lines: Vec<Line>,
}
impl Order {
fn total(&self) -> i64 {
self.lines.iter().map(Line::amount).sum()
}
}
// The data that crosses the network: owned values, with no references into the server.
#[derive(Clone)]
struct LineView {
item: String,
qty: i64,
price: i64,
}
#[derive(Clone)]
struct OrderView {
number: u32,
customer: String,
ship_to: String,
lines: Vec<LineView>,
total: i64,
}
// Remote facade: coarse-grained methods over the fine-grained objects, with no domain logic.
struct OrderFacade {
orders: HashMap<u32, Order>,
}
impl OrderFacade {
fn get_order(&self, number: u32) -> OrderView {
let o = &self.orders[&number];
let a = &o.customer.address;
OrderView {
number: o.number,
customer: o.customer.name.clone(),
ship_to: format!("{}, {}", a.street(), a.city()),
lines: o.lines.iter().map(|l| LineView { item: l.item.to_string(), qty: l.qty, price: l.price }).collect(),
total: o.total(),
}
}
fn change_address(&mut self, number: u32, street: &str, city: &str) {
if let Some(o) = self.orders.get_mut(&number) {
o.customer.address.move_to(street, city);
}
}
}
// The network: each call is counted. A real remote call would also serialize the values.
struct Network {
server: OrderFacade,
calls: u32,
}
impl Network {
fn get_order(&mut self, number: u32) -> OrderView {
self.calls += 1;
self.server.get_order(number)
}
fn change_address(&mut self, number: u32, street: &str, city: &str) {
self.calls += 1;
self.server.change_address(number, street, city);
}
}
fn main() {
let ann = Customer {
name: "Ann".to_string(),
address: Address { street: "1 Elm Street".to_string(), city: "Leeds".to_string() },
};
let lines = vec![
Line { item: "lamp", qty: 2, price: 2500 },
Line { item: "desk", qty: 1, price: 7500 },
Line { item: "pen", qty: 4, price: 500 },
];
let orders = HashMap::from([(7, Order { number: 7, customer: ann, lines })]);
let mut net = Network { server: OrderFacade { orders }, calls: 0 };
// The client: one remote call gets all the data that the screen needs.
let mut view = net.get_order(7);
println!("order {} for {}: {} lines, total {}", view.number, view.customer, view.lines.len(), cents(view.total));
for l in &view.lines {
println!(" {} x{} at {}", l.item, l.qty, cents(l.price));
}
println!("ship to: {}", view.ship_to);
net.change_address(7, "2 Oak Road", "York");
view.ship_to = "not sent back".to_string(); // the client has a copy; this changes nothing on the server
println!("ship to: {}", net.get_order(7).ship_to);
println!("remote calls: {}", net.calls);
}
order 7 for Ann: 3 lines, total 145.00
lamp x2 at 25.00
desk x1 at 75.00
pen x4 at 5.00
ship to: 1 Elm Street, Leeds
ship to: 2 Oak Road, York
remote calls: 3
- Verdict: idiom.
OrderViewandLineViewown their strings, so they have no references into the server, and the client can keepviewwhile the server changes the order. Ifget_orderreturned a reference to the order, the borrow checker would refuse the later call tochange_address. Networkonly counts the calls. A real remote call would also serialize the values, for example with theserdecrate, which is a library and not part of the standard library.
Consequences
Benefits.
- Fewer remote calls. One call does the work of many. Fowler's First Law of Distributed Object Design is "don't distribute your objects",4 and the remote facade is the way to have a remote interface without distributed objects.
- Good design inside the process. The small objects keep their small methods, their clear names and their polymorphism. Only the facade is coarse-grained.
- One place for the concerns of the boundary. Security checks and transactions are easier to manage on a few coarse-grained methods. The Core J2EE patterns say that the facade "offers a central place for managing and defining transaction control in a coarse-grained fashion."5
Liabilities.
A fine-grained remote interface makes many calls. In the following program, the client uses the small objects of the order over the network. To read three lines, it makes 13 remote calls. If each call takes 20 ms, the read takes 260 ms, where one coarse-grained call takes 20 ms.
This code runs but gives a wrong answer on purpose.
class Line:
def __init__(self, item, qty, price):
self._item, self._qty, self._price = item, qty, price
def item(self):
return self._item
def qty(self):
return self._qty
def price(self):
return self._price
class Order:
def __init__(self, lines):
self._lines = lines
def line_count(self):
return len(self._lines)
def line(self, i):
return self._lines[i]
class Remote: # a proxy that makes each method call a remote call
calls = 0
def __init__(self, target):
self._target = target
def __getattr__(self, name):
method = getattr(self._target, name)
def remote_call(*args):
Remote.calls += 1
result = method(*args)
return Remote(result) if isinstance(result, (Order, Line)) else result
return remote_call
# Wrong: the client uses the fine-grained objects over the network.
order = Remote(Order([Line("lamp", 2, 2500), Line("desk", 1, 7500), Line("pen", 4, 500)]))
total, items = 0, []
for i in range(order.line_count()):
line = order.line(i)
total += line.qty() * line.price()
items.append(line.item())
print("items:", ", ".join(items), "total:", total)
print("remote calls:", Remote.calls)
print("at 20 ms for each call:", Remote.calls * 20, "ms")
items: lamp, desk, pen total: 14500
remote calls: 13
at 20 ms for each call: 260 ms
Add a remote facade with one method that returns the whole order, and do not give the small objects a remote interface.
Extra code at the boundary. Each method of the facade must copy the data from the objects into a form for the wire, and back. This copy code grows with the number of screens and tasks.
Coarse-grained methods are harder to use. "A coarser-grained API is more awkward than a fine-grained one."4 A method that returns too much data wastes the network, and a method that returns too little sends the client back for more. Microsoft notes the tradeoff: in its example, if clients "often need just the user name", a separate call for the name can be better.3
When not to use it
When there is no remote call. Inside one process, a coarse-grained facade only adds code. Randy Stafford, quoted by Fowler, advises to "start with a locally invocable Service Layer whose method signatures deal in domain objects."6
When distribution is only a guess about the future. Fowler warns against a "speculative distribution boundary", because "Adding remote boundaries adds complexity."6 Add the facade when a remote client needs it.
Variants and related patterns
On top of a service layer. Stafford advises to "Add remotability when you need it (if ever) by putting Remote Facades on your Service Layer or having your Service Layer objects implement remote interfaces."6 The facade then passes each remote call to an operation of the Service layer.
Session Facade. The Core J2EE patterns give the same idea for Enterprise JavaBeans: "Use a session bean as a facade to encapsulate the complexity of interactions between the business objects participating in a workflow."5
A facade for each kind of client. Different clients, such as a mobile app and a web page, can need different shapes of data. Each kind of client can then have its own facade over the same objects.
Related patterns. A remote facade is a Facade pattern for a process boundary. "A Remote Facade is a coarse-grained facade [Gang of Four] over a web of fine-grained objects."1 Its methods take and return a Data transfer object. On the client side, a Proxy pattern can give the remote facade the look of a local object, but the calls stay coarse-grained.
Known uses
- Session beans in Enterprise JavaBeans applications, as described in the Core J2EE patterns as the Session Facade.5
- Web APIs that return a whole resource in one response. Microsoft gives the fix for chatty I/O as "a single GET method that returns the User" in place of a separate method for each property.3
- Microservices that offer "coarse-grained interactions with documents over HTTP or lightweight messaging", as Fowler writes of their advocates.4
References
- Martin Fowler, Catalog of Patterns of Enterprise Application Architecture, Remote Facade, pattern summary
- Martin Fowler, Patterns of Enterprise Application Architecture, Addison-Wesley, 2002, Chapter 15, Distribution Patterns, Remote Facade
- Microsoft, Azure Architecture Center, Chatty I/O antipattern, Problem description and How to fix the problem
- Martin Fowler, Microservices and the First Law of Distributed Objects, 13 August 2014, the whole article
- Core J2EE Patterns, Session Facade, Problem, Solution and Consequences
- Martin Fowler, Local DTO, 21 October 2004, the quote from Randy Stafford
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag YDEMBE Edit this page History Report an error Markdown