Skip to main content

13 docs tagged with "transactions"

View all tags

@Transactional Deep Dive: Proxy, ThreadLocal & Production Traps

A senior-level breakdown of how @Transactional really works: AOP proxy mechanics, CGLIB vs JDK proxy, ThreadLocal transaction binding, flush/commit timing, propagation internals, isolation levels, and the production traps that cause silent data corruption, connection pool exhaustion, and 2 AM alerts.

Amazon DynamoDB

DynamoDB mastery for DVA-C02. Covers partition keys, sort keys, GSI vs LSI, read/write capacity modes, DynamoDB Streams, DAX, TTL, transactions, and the most common exam scenarios and anti-patterns.

Data Consistency & Transactions

Full-spectrum guide to distributed consistency models — from Linearizability to Eventual Consistency, Session Guarantees (Read-Your-Writes, Monotonic Reads), causal vs data-centric lenses, consistency anomalies with real production bugs, S3 case study, and per-operation decision matrix. Covers ACID, BASE, CAP, PACELC, and advanced internals.

Database ACID Properties

A deep-dive guide to ACID properties — Atomicity, Consistency, Isolation, Durability — covering isolation levels, MVCC, 2PL, WAL, write skew, distributed ACID, and practical interview questions. Includes the real priority order (I → C → D → A), the AI PR story, and the link to the full isolation levels deep-dive.

Database Isolation Levels — How to Get It Right

Deep-dive into all 5 isolation anomalies (dirty read, non-repeatable, phantom, lost update, write skew), the 4 standard isolation levels, PostgreSQL vs MySQL vs Oracle implementation differences, snapshot scope (per-statement vs per-transaction), practical fix strategies without raising isolation, and the spec vs implementation distinction.

Distributed Transactions: 2PC vs. Saga Pattern

Master guide to distributed transactions in microservices — Two-Phase Commit (2PC), Saga Pattern (Choreography vs. Orchestration), Transactional Outbox + CDC, and NewSQL architectures.

Kafka Exactly-Once Semantics (EOS)

A complete guide to Kafka exactly-once semantics — delivery guarantees, idempotent producer, transactions, read_committed consumers, Kafka Streams EOS, zombie producer fencing, two-phase commit internals, and production patterns.

Redis Pipeline, Transactions & Lua Scripts

Deep dive into Redis pipelining for throughput optimization, MULTI/EXEC transactions, optimistic locking with WATCH, and atomic Lua scripting — with production patterns and pitfalls.

Saga Pattern (Distributed Workflows)

A comprehensive guide to the Saga Pattern — from core concepts for beginners to choreography vs orchestration internals, state machine design, idempotency, compensating transactions, temporal coupling, failure taxonomy, and production observability for senior engineers.

Transactional Outbox Pattern

A complete guide to the Transactional Outbox Pattern — from the Dual-Write problem for beginners to CDC vs polling internals, at-least-once guarantees, ordering semantics, and production monitoring for senior engineers.

Two-Phase Commit (2PC) & Three-Phase Commit (3PC)

A comprehensive guide to Two-Phase Commit (2PC) and Three-Phase Commit (3PC) — from real-world analogies for beginners to WAL internals, failure modes, and XA implementation for senior engineers.