The Fallacies of Distributed Computing are eight false assumptions about networks and distributed environments. They are a useful checklist when considering microservices: splitting work across services means network costs and failures become part of the design. section 12.6.1
The eight assumptions are:
- The network is reliable. section 12.6.1
- Latency is zero. section 12.6.1
- Bandwidth is infinite. section 12.6.1
- The network is secure. section 12.6.1
- Topology does not change. section 12.6.1
- There is one administrator. section 12.6.1
The latency tax on a dashboard
A dashboard needs a profile, recent orders, and shipping status. In one monolith scenario, a SQL query with joins takes roughly 5 ms. A microservice gateway instead makes three HTTP calls: 35 ms for the user service, 40 ms for orders, and 35 ms for shipping, including serialization. If made sequentially, those calls add up to 110 ms. A network trip that looks small on its own can become noticeable when a request needs several of them. section 12.6.1
Before treating a service boundary as free, ask which assumptions it depends on and what costs or failures follow when they do not hold. In particular, count network trips when comparing a distributed design with a monolith. section 12.6.1 section 12.10
