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
How One Failing Service Can Crash Your Entire System And How to Prevent ItLearn how circuit breakers prevent cascading failures and protect distributed systems from unhealthy services.6 min read·iamgautam.hashnode.devMay 12