SystemDesignLaws

SystemDesignLaws

Dealing with Contention

- Fix race conditions with atomicity, locks, or optimistic concurrency. Scale to distributed coordination when m...

Jimmy Malhan's avatar
Jimmy Malhan
Mar 16, 2026
∙ Paid

30-second elevator pitch: "Contention happens when two users act on the same data at once, like two people buying the last concert ticket. I fix it by making operations atomic, using locks when conflicts are common, or optimistic concurrency when they are rare. For distributed systems, I use sagas or two-phase commit. I always exhaust single-database so…

User's avatar

Continue reading this post for free, courtesy of Jimmy Malhan.

Or purchase a paid subscription.
© 2026 Jimmy Malhan · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture