Skip to content

Defaults and Triggers for Design Choices

For each design question, this note records four things:

  1. The option to start a prototype with.
  2. The signal that the option no longer fits.
  3. The option to move to.
  4. 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

  1. Build with every default. Start a walking skeleton with the default for every hub.
  2. Find the risky questions. Write down which triggers you expect to fire soon.
  3. 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.
  4. 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.

TriggerMove toTest with
A part needs its own release schedule, or another team owns itA separate service along a capability or subdomain boundaryA walking skeleton with that one boundary split out and deployed separately
A part has a very different scaling or availability needDeploy that function separatelyA proof of concept that load-tests the part alone
An existing system must be replaced while it keeps runningStrangler application, with an anti-corruption layerA tracer bullet that routes one path through the new service

Data across services

Default: one database, local transactions, and each module owning its tables. See data across services.

TriggerMove toTest with
A service is split outDatabase per servicePart of the boundary’s walking skeleton
An operation must change data in two servicesA saga with compensations, after checking whether the boundary is wrongA spike that writes out the steps, the pivot, and the compensations
A service must publish when its data changesTransactional outbox and idempotent consumerA tracer bullet from write to consumer, with a forced crash between commit and publish
A query needs data from several servicesAPI composition first; a CQRS view when composition is too slow or too fragileA proof of concept that measures latency and staleness

Communication

Default: synchronous request and response from clients; in-process calls between modules. See communication.

TriggerMove toTest with
Work can finish after the responseA message queueA spike that shows what the client observes before completion
Bursts exceed what the receiver can processQueue-based load levelingA load test with a burst profile, watching backlog and delay
Several consumers react to one changePublish/subscribe with domain eventsA tracer bullet with two consumers
Clients need updates without pollingPush over a long-lived connectionA prototype of the client experience

Request path

Default: one load balancer or reverse proxy in front of stateless instances, using the platform’s routing. See the request path.

TriggerMove toTest with
Several services sit behind one external APIAPI gatewayA walking skeleton that includes the real entry point
Clients need different data shapes or release schedulesBackends for frontendsA prototype for the second client
Instances change often and no platform tracks themService registry and discoveryA spike on the platform’s discovery
Content is read far from where it is storedCDN or edge cacheA proof of concept that measures latency by region

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.

TriggerMove toTest with
A dependency can stay slow or unavailable for minutesCircuit breaker with a fallback or a clear errorA fault-injection spike that slows or stops the dependency
One dependency or tenant can starve the othersBulkheadFault injection with one slow dependency
Demand can exceed capacityLoad shedding or back pressureA load test beyond capacity

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.

TriggerMove toTest with
Reads dominate and can tolerate some stalenessCache-aside, then read replicasA proof of concept that measures hit rate and staleness
Data or write load exceeds one nodePartitioning by a key that spreads the real workloadA spike on key choice against access patterns and hot keys
Many writers need identifiers without coordinatingSnowflake-style IDs or range allocationA small implementation tested for collisions and ordering
A shared resource must be protected per clientRate limitingA load test with one aggressive client

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.

TriggerMove toTest with
More than a few services are being createdA service template that is copied, rather than a shared chassis libraryBuild the template from the second service
A request crosses several services or a queueDistributed tracingA tracer bullet with trace propagation
A release could affect many users at onceCanary releases and feature flagsA pilot or canary
Several teams depend on one service’s APIConsumer-driven contract testsContract tests for the first external consumer

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