lock contention
Delay caused when many operations wait for the same lock, such as a busy database row, so they run one at a time.
In more detail
It often shows up only under load, as a growing slow tail. Shorter transactions, finer-grained locks and fewer writes to the same row reduce it.
Related terms
- tail latency — The latency of the slowest requests, measured by high percentiles such as p99.
- concurrency — Having several pieces of work in progress during overlapping periods of time, such as requests being handled at once.
Taught in
- Load Testing — Modern API Architecture: REST, GraphQL & gRPC