Design Questions and Pattern Map
The building blocks are organized as design questions, following the structure of a pattern language such as microservices.io. Each hub states one question, the forces that bear on it, and the competing options. Each option changes the design in a way that raises the next question. Following those links from one hub to the next is what makes the collection a language rather than a catalog.
The original topic collection records where each pre-refactor topic went and maps the Educative and interviewing.io building-block lists onto these hubs.
The hubs
Where the microservices.io groups went:
Hub and pattern format
Each hub:
- Question: the problem the options answer.
- Forces: the qualities and constraints that push toward one option or another. Link the relevant NFR notes; a quality is a force, not a container for patterns.
- Options: for each pattern, how it works, when it fits, and what it costs, including the next question it raises.
- Leads to: the hubs those consequences point to.
- Seen in cases: where a practice case uses or needs the pattern.
- Gaps: what is not yet understood or written.
- Sources: the pattern pages and book chapters.
A single pattern gets its own note only when there is substantial material for it, as with the API gateway and messaging. Until then it lives as a row in its hub. For such a note, record:
- The problem it solves and a concrete use case.
- How it works, including the important request or data flow.
- The assumptions and constraints under which it is useful.
- Trade-offs, failure behavior, and alternatives.
- What it leads to: the problems it creates and the patterns that address them.
- Relevant implementations and examples from practice cases.
Keep concepts separate from product names. Use a specific implementation to deepen the explanation when its behavior matters.
How the questions connect
Four chains run through the hubs. Each step is a consequence of the one before.
- Splitting data: microservices -> database per service -> sagas and API composition or CQRS -> domain events -> transactional outbox -> idempotent consumer.
- Calling across the network: remote procedure invocation -> service discovery and an API gateway -> timeouts, retries, and circuit breakers -> idempotency.
- Running many services: more deployable units -> a deployment platform -> a chassis or a service mesh -> distributed tracing.
- Growing one service’s data: growth -> replication, partitioning, and caching -> consistency questions -> reliable propagation to caches and replicas.
For prototyping, defaults and triggers gives one starting option per hub, the signal to move past it, and the technique that tests the move. Common trade-offs lists the pairs that recur across hubs.
Same patterns in other domains
The same forces recur at other scales and in other kinds of systems. Some rows below are close correspondences; others are interpretations, marked as such.
Patterns and techniques share one record
A structure pattern answers what to build; a process technique answers how to learn whether it is right. The hub format above and the technique record in the delivery techniques guide record the same kinds of things:
That shared shape is what lets the flow alternate between the two: pick an option, test it with a technique, record the decision and its trigger.
Where detail lives
- Hubs in this folder answer which option, and why.
- Pattern notes in this folder (API gateway, messaging, control plane) hold an option or a cross-hub pattern that has grown beyond a table row.
- Platform notes in platform and delivery hold the mechanisms behind operating services: Twelve-Factor, deployment, infrastructure as code, Kubernetes, GitOps, and developer experience.
- Engineering topic notes hold how a mechanism works: Kafka, DynamoDB, partitioning, replication, caching, transactions, Kubernetes, and distributed systems.
- Distributed-systems notes in distributed systems hold the theory behind the data hubs: system models, time and order, consistency guarantees and CAP, consensus, coordination avoidance, distributed computation, and verification.
- Quality requirements live in the NFR notes, which link to the hubs that address each quality.
Not yet placed
Common design templates, such as a CRUD service and a management interface, do not fit a single hub yet. The control plane now has its own pattern note. Each hub lists its own gaps.
Each hub’s options table holds the trade-offs for its own question. The ones that recur across hubs, such as consistency versus latency, SQL versus NoSQL, and push versus pull, are collected in common trade-offs, with the signal that tips each one.
Use practice to decide which gap to study next.
Pattern catalogs
- Microservices pattern language – microservices.io.
- Azure architecture patterns.
- Modern system-design building blocks – Educative.
- Sequencer – Educative.
- System-design master template – DesignGurus.
- Designing Data-Intensive Applications, second edition.
Library sources
- Richardson 2019, Microservices Patterns: With Examples in Java – the pattern language the hubs follow