Optimistic vs Pessimistic Offline Locks
Protect business transactions that span several requests. Lesson 9 of Level 5: Enterprise Application Architecture. Based on PEAA and Enterprise Integration.
Level 5 · Enterprise Application Architecture · Lesson 9 of 10
Protect business transactions that span several requests.
Continue learning
- Remote Facade & DTO: Designing Across the Network — Previous lesson
- Enterprise Integration Patterns: Messaging Between Systems — Next lesson
- Level 5: Enterprise Application Architecture — Back to the level
Try it hands-on
- Lost Updates & Optimistic Locking — Two admins edit the same product price; compare no locking, optimistic versions and pessimistic locks.
- Transactions Lab — Isolation anomalies, lost updates and distributed transactions.
All lessons in Enterprise Architecture
- Layered Architecture: Presentation, Domain, Data
- Transaction Script vs Domain Model vs Table Module
- Service Layer: One Front Door for Every Use Case
- Active Record vs Data Mapper (and the Gateways)
- Repository: A Collection-Like Home for Aggregates
- Unit of Work, Identity Map & Lazy Load
- MVC, Front Controller & Friends
- Remote Facade & DTO: Designing Across the Network
- Optimistic vs Pessimistic Offline Locks
- Enterprise Integration Patterns: Messaging Between Systems