liveBook · Manning

Consistency model

A consistency model is a formal specification of how operations on state may be ordered and what values those operations can observe.

How 4 Manning books explain it

Modern C

A C memory model is the language-level model that specifies how objects occupy storage and how their locations can be accessed during execution.

How it is used
Connects the representation and access of C objects with the visibility and synchronization of operations across threads.
How deep it goes
Explains object representations, aliasing, and synchronization trade-offs, while setting aside memory_order_consume and dependency-ordered-before relations.
Examples
Uses a two-pointer aliasing function and an int32_t representation on a little-endian example platform.
What you can do after
Supports evaluating how pointer aliasing affects object values and how synchronization establishes ordering between threads.

Read how Modern C explains consistency model →

Modern C, Third Edition

The C memory model is the language abstraction that defines how objects, storage, pointers, and program state relate without requiring a particular physical-memory arrangement.

How it is used
Models C program state and pointer-based access without committing programs to physical memory locations.
How deep it goes
Descends from physical and virtual memory through storage, objects, representations, alignment, and aliasing, while deferring detailed lifetime rules.
Examples
Uses pointer-based functions, aliasing calls, unions, byte arrays, addresses, and an int32_t representation diagram.
What you can do after
Evaluate pointer accesses and object representations while recognizing portability, aliasing, type, alignment, and storage constraints.

Read how Modern C, Third Edition explains consistency model →

Microsoft Azure in Action

A consistency level is a Cosmos DB setting that defines the guarantees governing how current and ordered reads are relative to writes.

How it is used
Guides Cosmos DB choices when applications must balance data accuracy, performance, availability, and user expectations.
How deep it goes
Compares five levels through definitions, read behavior, trade-offs, and practical uses.
Examples
Uses inventory updates, order confirmations, user sessions, ordered reads, noncritical applications, and Azure CLI configuration.
What you can do after
Operate/configure Cosmos DB consistency with Azure CLI and select a level for application freshness and performance needs.

Read how Microsoft Azure in Action explains consistency model →

Latency

A consistency model is a set of guarantees defining the ordering and visibility of operations and data updates in a distributed system.

How it is used
Guides replication designs by defining update visibility and operation ordering across copies.
How deep it goes
Defines distributed models, trade-offs, examples, and implementation mechanisms, then connects them to hardware memory ordering.
Examples
Uses collaborative document editing, shopping carts, vector clocks, and data-plus-flag publication ordering.
What you can do after
Evaluate consistency choices against application needs for latency, stale reads, ordering, and availability.

Read how Latency explains consistency model →

Related concepts

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.