Skip to content
All articles

System design · Consistency

Answer consistency per operation

Payment must never be stale. Order status can be seconds behind. A recommendation can be hours behind. Answering consistency per system forces the strictest rule onto all of them.

· 4 min read

A table of three operations and where their reads go. Payment must never be stale, so it must read the primary. Order status may be seconds stale, so it may read a replica. A recommendation may be hours stale, so it may read a replica. Answering per system lets the strictest rule land on all three, so all three read the primary. Answering per operation means only payment needs the primary, and it costs one extra column in a table. If a stakeholder changes one answer, show which boxes change.

Before drawing any boxes, the course asks four questions and says they take five minutes: which operations must work, how many and how skewed, what must be strongly consistent and what may be stale, and what failure costs. The third one returns the most.

The table

For an order system with three operations that carry the value, the course answers consistency one row at a time:

OperationMay be stale?So the read
PaymentNeverMust go to the primary
Order statusSeconds are fineMay go to a replica
RecommendationHours are fineMay go to a replica

Why per operation matters

Answering consistency per system forces the strictest operation's requirement onto every operation. A payment's intolerance of staleness ends up applied to order status and recommendations, and you send all three kinds of read to the primary when only one needed it. Answering per operation is, in the course's words, the single largest source of available simplicity in most designs, and it costs one extra column in a table.

The fourth question is its mirror. Designing for the worst failure cost everywhere makes a system expensive without making it reliable: a dropped analytics event and a dropped payment get the same retry logic, the same durability guarantees and the same alerting. Naming the different costs is what lets you spend differently.

The habit to build

Write the answers down before drawing anything, and keep them next to the diagram. Every later disagreement resolves faster when both people can point at the same four lines.

When a stakeholder changes one answer

Suppose someone decides order status must be strongly consistent after all. The course's worked answer: reads move off the replicas onto the primary, so the 40:1 read-to-write ratio now lands on one instance. That either removes the read replicas' purpose or needs a consistent-read mechanism with its own latency cost. The cache in front of reads becomes unusable for status, or needs write-through invalidation, which is itself a consistency problem. And the peak read figure of 13,889 queries a second becomes a primary-database number rather than a fleet number.

One answer changed and three boxes did. Showing that is usually enough to tell whether the requirement was real or reflexive.

Get one diagram a week

A short article built around one engineering diagram, from the same library as these courses.

One diagram-led article a week on AI and systems engineering. We email you once to confirm, and every newsletter has an unsubscribe link. Privacy policy