liveBook · Manning

Concurrency control

Concurrency control coordinates simultaneous operations accessing shared state or resources to preserve correctness, consistency, and valid system behavior.

How 2 Manning books explain it

Crack Any Codebase with AI

Concurrency control is the set of mechanisms that coordinates simultaneous operations to preserve correctness when they access shared data.

How it is used
Protects booking writes when simultaneous users target the same open slot.
How deep it goes
Compares locks, version checks, and unique constraints with their correctness, retry, locking, and throughput trade-offs.
Examples
Uses competing slot bookings, double-clicked confirmations, idempotency keys, duplicate-key errors, and database write guards.
What you can do after
Diagnose a write race by locating the lock, version check, or unique constraint that rejects or delays the second writer.

Read how Crack Any Codebase with AI explains concurrency control →

Microsoft Azure in Action

Concurrency control is the management of simultaneous operations so that shared data remains consistent according to the system's rules.

How it is used
Protects product catalogs and inventory from conflicting updates during high-traffic Cosmos DB workloads.
How deep it goes
Explains optimistic concurrency, ETag checks, conflict failure, and read-update retries without detailing transaction internals.
Examples
Uses concurrent product-inventory updates and a read operation that stores an ETag for a later update.
What you can do after
Diagnose/debug with it: detect stale updates through ETag mismatches and retry the read-update cycle safely.

Read how Microsoft Azure in Action explains concurrency control →

Also covered in

What to know first

Related concepts

Questions about concurrency control

What is concurrency control?

Concurrency control coordinates simultaneous operations accessing shared state or resources to preserve correctness, consistency, and valid system behavior.

Which Manning books explain concurrency control?

Crack Any Codebase with AI and Microsoft Azure in Action.

What should I know before learning concurrency control?

Manning books that teach concurrency control usually introduce consistency, database transaction, concurrency and shared resource first.

What kinds of concurrency control are there?

Kinds of concurrency control include optimistic locking, locking and optimistic concurrency control.

What is concurrency control part of?

Concurrency control is part of database. A database is an organized persistent data store, typically managed by software, that supports storing, retrieving, and modifying data.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.