What applies if the connection to the payment provider drops after the request is sent? The outcome is unknown: the charge may or may not have happened. The shop queries the status with pay-B-1042 instead of blindly charging again.Partial failures
This is how the building blocks hang together
Network assumptions (fallacies) and partial failures show what can go wrong. Delivery classifies message loss and retries. CAP weighs consistency against availability, quorum defines confirmation groups, consensus secures a binding order.
Here you clarify what applies if the connection to the payment provider drops after sending. From this you derive delivery guarantees, replica groups and agreement across several nodes. Each building block shows its theme at our shop.
This is what you learnYou can derive a specific error and operating case for a shop process from a network assumption.
In the shopThe shop application requests an external payment provider. The team looks at what delay, separation and variable response times mean for the flow.
This is what you learnDetection provides a sound basis for a targeted response. Assess the result against this limit: One missing signal cannot distinguish a network fault from a process crash.
In the shopThe shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. During checkout, a worker sends a heartbeat every five seconds. After several missed reports, the controller marks it suspect and routes new work to healthy instances. A delayed heartbeat can result from network load while the worker is processing a payment. The in-flight job therefore remains queryable by its identifier; detection does not trigger a second charge. The team measures detection time and false alarms, then tunes the threshold to recovery objectives.
This is what you learnFor a network outage, you can specify which consistency and availability commitment a replicated service prioritizes.
In the shopThe shopping cart is replicated in two regions. While the regions are separate, the shop decides whether changes to the shopping cart positions are accepted locally or deferred until a common view.
This is what you learnMake latency and consistency visible even without partitions. Assess the result against this limit: PACELC frames trade-offs but proves no property of a specific system.
In the shopThe shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. On the shop’s order flow, the cart reads the last replicated product price from a regional replica. The team permits brief replication lag for fast local responses, but requires a coordinated price check at final checkout. During a partition, checkout waits or fails while the catalogue remains readable. PACELC helps discuss these paths separately and set measurable latency and consistency goals.
This is what you learnReason about response choices during a partition. Assess the result against this limit: CAP concerns partitions and precisely defined guarantees.
In the shopThe shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. The shop replicates stock availability across two sites. A partition separates them while customers request reservations. The team decides that a site rejects reservations without coordination to avoid double allocation; the product catalogue may temporarily show older availability. This different response follows the business risk of each operation. A CAP diagram does not replace a precise consistency guarantee and failure model.
This is what you learnYou can calculate reading and writing quors and explain what overlap their configuration allows.
In the shopA distributed shopping cart storage uses three replicas. The team uses two confirmations for reading and writing and sees how the groups overlap.
This is what you learnYou can distinguish the purpose of a consensus protocol from replication and quorum.
In the shopVariant: A separately operated inventory service uses multiple replicas to log changes to shared stocks in an orderly manner. The shop itself remains a modular monolith.
This is what you learnUse resource-side enforcement to exclude stale holders. Assess the result against this limit: A token without validation at the target offers no protection.
In the shopThe shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. For invoice B-1042, worker A receives token 41. After a pause, its lease expires and worker B takes over with token 42. B stores the validated invoice status. When A later sends an old write, the database compares 41 with the stored maximum 42 and rejects it. The token must reach the resource that stores the effect; checking only inside the worker would not stop the delayed call.
This is what you learnConnect time-limited ownership to a verifiable takeover. Assess the result against this limit: Expiry does not automatically stop a paused process.
In the shopThe shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. An invoice worker claims order B-1042 with a 30-second lease and renews it while generating the PDF. A long GC pause prevents renewal; after expiry, the coordinator assigns the job to another instance. When the first worker returns, it may still issue a delayed write. The invoice store accepts only the latest fencing token. The job remains available while a stale holder cannot change state.