Tag: Concurrency
All the articles with the tag "Concurrency".
-
Last-Item Inventory Race Condition: Two Customers Buy at Once
Series: Backend Interview Mastery
Solve the last-item inventory race condition in a backend interview with atomic updates, reservations, idempotency, and contention trade-offs.
-
Distributed Locks: Leases, Failure Modes and Safe Use
Series: Backend Interview Mastery
Learn distributed locks with leases, fencing tokens, Redis, ZooKeeper, database locks, failure modes, and safer alternatives.
-
Race Conditions: Detection and Prevention in Backend Systems
Series: Backend Interview Mastery
Understand backend race conditions, see why check-then-act code fails, and learn database, lock, and idempotency patterns that prevent corruption.
-
Database Deadlocks: Causes, Detection, and Prevention
Series: Backend Interview Mastery
Learn database deadlocks through transaction examples, wait-for cycles, retries, lock ordering, query design, and production prevention practices.
-
Optimistic vs Pessimistic Locking: How to Choose
Series: Backend Interview Mastery
Compare optimistic vs pessimistic locking with SQL examples, conflict handling, retries, deadlocks, and practical backend trade-offs.
-
Synchronous vs Asynchronous Programming Explained
Series: Practical Backend Engineering
Learn synchronous vs asynchronous programming with clear examples of blocking, non-blocking I/O, concurrency, and when each model fits.