Software Engineering Architecture Lab

Transactions Lab: Interactive Simulations & Lessons

Isolation anomalies, lost updates and distributed transactions. A hands-on transactions lab with 4 interactive simulations and 5 lessons.

Isolation anomalies, lost updates and distributed transactions.

Run two transactions against the same data and watch the anomalies each isolation level allows. Then stretch a transaction across services and see why 2PC and sagas exist.

Simulations

Lessons

  1. Transactions & What ACID Actually Promises — Level 8 · Data Systems
  2. Isolation Levels: Dirty Reads to Serializable — Level 8 · Data Systems
  3. Lost Updates: Optimistic vs Pessimistic Locking — Level 8 · Data Systems
  4. Optimistic vs Pessimistic Offline Locks — Level 5 · Enterprise Architecture
  5. Distributed Transactions: 2PC, Sagas & the Outbox — Level 9 · Microservices

Also explore

Other labs

  • Kafka Lab — Logs, partitions, keys, consumer groups and ordering.
  • Database Internals Lab — Storage engines, indexes, replication and partitioning.
  • Caching Lab — Hit rates, TTLs, invalidation, stampedes and CDNs.
  • Microservices Lab — Failures, retries, circuit breakers, sagas and idempotency.
  • Architecture Lab — Evolution, decisions, characteristics and fitness functions.