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.
- 12 lessons
0 of 12 lessons passed
Lessons
Progress and your code are kept in this browser only.
- Commit a business row and an outbox atomically
- Deduplicate an event in the same transaction as its effect
- Reject stale writes with a compare-and-swap
- Roll back one item without losing the batch
- Paginate through a stable composite order
- Apply a schema migration once and atomically
- Refill a rate limit with an injected monotonic clock
- Separate breaker state from retry policy
- Spend one end-to-end deadline across retries
- Calculate burn against a defined service objective
- Reject oversized streams before buffering them
- Resolve a path before checking its containment