Compare-and-Swap (CAS): Understanding Atomic Operations in Concurrent ProgrammingUnderstand how Compare-and-Swap (CAS) works, prevents race conditions, and enables atomic updates in concurrent programming.9 min read·iamgautam.hashnode.devNov 14
What Happens When the Same Event Is Processed Twice? Ensuring Effects Happen Only OnceLearn how idempotency keys, database transactions, and concurrency control prevent duplicate operations when processed multiple times.13 min read·iamgautam.hashnode.devNov 2
Promise.all() Is Not a Transaction: What Happens When One Promise Fails?Learn why Promise.all() doesn't provide atomicity, cancellation, or rollback when concurrent operations fail.6 min read·iamgautam.hashnode.devSep 10
Two-Phase Commit (2PC): Failures, Recovery, and BlockingLearn how Two-Phase Commit (2PC) handles crashes, WAL, recovery, and blocking while maintaining distributed transaction consistency.10 min read·iamgautam.hashnode.devJul 29
Understanding Two-Phase Commit (2PC): Solving Distributed TransactionsLearn how 2-Phase Commit (2PC) helps multiple services commit or rollback together in distributed transactions.8 min read·iamgautam.hashnode.devJun 24