Pessimistic Locking
Kind: pattern
Layer: Atomic Boundary
Record: architecture:pessimistic-locking
Severity: contextual
Scope: persistence, critical section
Canonical: Ontology
A design pattern that locks a record before reading it for update, so other writers wait until the transaction ends.
Listed in Architecture principles, after Optimistic Locking and before State Isolation.
Requires
Reinforces
Enables
In tension with
Tensions
- Pessimistic Locking / Deadlock Freedom
- Pessimistic Locking / Latency
- Pessimistic Locking / Lock-Free Throughput