Defaults and Triggers for Design Choices
For each design question, this note records four things:
- The option to start a prototype with.
- The signal that the option no longer fits.
- The option to move to.
- The technique that tests the move before you commit to it.
These are proposed starting points, not rules. Revise them as cases show where they fail.
The idea comes from the growth section of scalability: begin with a design appropriate to the current requirements, and identify what would trigger the next change.
How to use it
- Build with every default. Start a walking skeleton with the default for every hub.
- Find the risky questions. Write down which triggers you expect to fire soon.
- Test each move first. For each risky question, choose a technique to test the move before building it fully. Techniques come from the lifecycle techniques and the delivery techniques guide.
- Record the outcome. Note the decision and the trigger that would reopen it, using the case template or an ADR.
A default is a part of the system simplified on purpose. The delivery guide’s distinction between what must be real and what can be simplified applies here. So does its advice to state an expected lifespan.
Boundaries
Default: one deployable unit with internal modules, a modular monolith. See boundaries.
Data across services
Default: one database, local transactions, and each module owning its tables. See data across services.
Communication
Default: synchronous request and response from clients; in-process calls between modules. See communication.
Request path
Default: one load balancer or reverse proxy in front of stateless instances, using the platform’s routing. See the request path.
Containing failure
Default: a timeout on every remote call, retries with backoff only for idempotent operations, and a health check per instance. See containing failure.
When these are not tested earlier, they usually land in a hardening phase.
Data at scale
Default: a single primary database, identifiers generated by the database, and a back-of-the-envelope estimate before any scaling choice. See data at scale.
Operating services
Default: configuration from the environment, structured logs with a request ID, a health check, and one deployment pipeline. A golden-path template provides these from the first commit. See operating services. For which contract to start from on a given platform, see the “How to apply today” table in the Twelve-Factor synthesis.
The golden-path notes make the template-versus-chassis choice explicitly. They argue for copied scaffolding over a large internal library, because a shared library makes dependencies hard to manage.
The same shape elsewhere
- RAG: the RAG runtime layers route by a hierarchy of needs. Try no AI first, then an LLM transformation, then an authoritative system of record, then retrieval, and finally ask or abstain. The simplest option comes first, and each step is taken only when the previous one cannot answer.
- Interviews: the extended framework collection advises designing a basic working system first and adding complexity only when it is justified. In an interview, the triggers become the deep dives.
Library sources
- Thomas and Hunt 2020, The Pragmatic Programmer – tracer bullets
- Newman 2020, Monolith to Microservices: Evolutionary Patterns to Transform Your Monolith – on Boundaries
- Nygard 2018, Release It! Design and Deploy Production-Ready Software, Second Edition – on Containing failure