Python · Course 9 of 9

Python: transactions and resilient services

Twelve production-oriented contracts: transactional outbox, deduplication, optimistic concurrency, savepoints, pagination, migrations, overload controls and service objectives. SQLite and injected clocks make failure paths reproducible.

0 of 12 lessons passed

Start lesson 1

Lessons

Progress and your code are kept in this browser only.

  1. Commit a business row and an outbox atomically
  2. Deduplicate an event in the same transaction as its effect
  3. Reject stale writes with a compare-and-swap
  4. Roll back one item without losing the batch
  5. Paginate through a stable composite order
  6. Apply a schema migration once and atomically
  7. Refill a rate limit with an injected monotonic clock
  8. Separate breaker state from retry policy
  9. Spend one end-to-end deadline across retries
  10. Calculate burn against a defined service objective
  11. Reject oversized streams before buffering them
  12. Resolve a path before checking its containment

All courses