Distributed Systems
At least once delivery
Explain at-least-once delivery, why a queue can deliver the same message twice after a lost acknowledgement or a slow handler, and how consumers handle duplicates safely.
What you will be able to do
- Explain why at-least-once delivery produces duplicates.
- Decide how a consumer makes its writes safe to repeat.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Distributed Systems
- LeasesAdvanced · 4 min
Explain leases as time-limited rights that holders renew, how Kubernetes uses Lease objects for node heartbeats and leader election, and why a delayed renewal looks…
- Idempotency keysAdvanced · 4 min
Explain idempotency keys, where the client creates one key per logical operation so a server can return the first result when a request is retried after a timeout.
- Outbox patternsAdvanced · 4 min
Explain the outbox pattern, where a service writes an event row in the same local transaction as its business change, so the event exists only when the change commits.
- Saga orchestrationAdvanced · 4 min
Explain saga orchestration, where a coordinator runs local steps and compensates completed steps in reverse order, and why its workflow state must be stored durably.
- Distributed transactionsAdvanced · 4 min
Explain two-phase commit, where participants prepare and a coordinator decides, and why prepared transactions hold locks and can block when the coordinator fails.
- Two phase commitAdvanced · 4 min
Two-phase commit lets several databases commit or abort together. A yes vote binds each participant, which is why a coordinator failure can leave locks held until a…