---
title: "Consistency models"
description: "Linearizability, isolation levels, transactions, CRDTs"
url: "https://swe.quest/tags/consistency?per=96"
---

# Consistency models

Topic in Distributed systems: Linearizability, isolation levels, transactions, CRDTs

By difficulty: [Easy](https://swe.quest/tags/consistency.md?difficulty=easy) · [Medium](https://swe.quest/tags/consistency.md?difficulty=medium) · [Hard](https://swe.quest/tags/consistency.md?difficulty=hard)

Posts 1–49 of 49, page 1 of 1, newest first.

## 2026-11-23

- [Tracing Cache Inconsistencies to Their Root Cause](https://swe.quest/articles/tracing-cache-inconsistencies-to-their-root-cause-0cc21b10b814cb9e.md): Nextdoor Engineering · 2026-11-23 · Medium · 7 min read · Caching, Consistency models, Observability, PostgreSQL, Debugging
  Nextdoor extended its versioned Valkey ORM cache so every conditional write also atomically stores a short-lived verification key (receipt) recording the operation (fill\_on\_write or fill\_on\_miss), writer service, trace ID and replaced version, colocated via a hash tag in the same cluster slot.
- [Why you shouldn't do application-level sharding](https://swe.quest/articles/why-you-shouldn-t-do-application-level-sharding-4fe6249c12df9221.md): PlanetScale · 2026-11-23 · Medium · 21 min read · Distributed databases, Scaling, Consistency models, Schema migrations, PostgreSQL
  Application-level sharding of an OLTP database looks simple on day one (a \`shard\_for(user\_id % N)\` function) but accumulates serious engineering burdens as a system grows.

## 2026-11-09

- [Eventually Consistent: How Do We Know the Systems Eventually Agree?](https://swe.quest/articles/eventually-consistent-how-do-we-know-the-systems-eventually-agree-446e4800453d4b35.md): Kogan.com Dev Blog · 2026-11-09 · Medium · 9 min read · Event-driven architecture, Consistency models, Resilience, PostgreSQL, E-commerce
  Eventually consistent event-driven order systems need a reconciliation job that starts from the authoritative order store, not from received messages, so orders whose events were lost (like a fraud-hold release that never reached SAP) still surface.

## 2026-11-02

- [Scaling Git at OpenAI](https://swe.quest/articles/scaling-git-at-openai-cd141be9cdce804b.md): OpenAI · 2026-11-02 · Hard · 24 min read · Version control, Distributed systems, Consistency models, Scaling, Storage systems
  Pando is OpenAI's new Git backend for its monorepo, built to handle the concurrent pushes and fetches generated by Codex-driven parallel development while staying fully compatible with the Git protocol and client.

## 2026-10-19

- [Birth and death of a row in Turso's MVCC](https://swe.quest/articles/birth-and-death-of-a-row-in-turso-s-mvcc-f60b68028888940e.md): Turso · 2026-10-19 · Hard · 14 min read · Storage engines, SQLite, Consistency models, Databases
  Turso's MVCC, modeled on Hekaton, tracks each row as a chain of versions in a lock-free SkipMap, with begin/end fields holding a TxId while a transaction is active and a commit timestamp once it commits.

## 2026-10-09

- [Applications are Dead. Long Live Workflows](https://swe.quest/articles/applications-are-dead-long-live-workflows-e0c1a8333768b587.md): DBOS · 2026-10-09 · Easy · 9 min read · System design, Distributed systems, AI agents, Consistency models, Databases
  Middleware should manage workflows rather than applications: the three-tier app server, which replaced two-tier client-DBMS setups in the 1990s to fix connection and memory limits, should evolve into a workflow orchestrator.

## 2026-09-15

- [Replica-aware routing public beta](https://swe.quest/articles/replica-aware-routing-public-beta-dc0c815797e9326c.md): ClickHouse · 2026-09-15 · Medium · 7 min read · Load balancing, Consistency models, Replication, Analytics & OLAP, Cloud platforms
  ClickHouse Cloud's replica-aware routing pins requests to a single replica so temporary tables, named sessions, warm local caches and read-after-write consistency work on multi-replica services.

## 2026-08-27

- [Concurrent Writes in Practice: Building High-Throughput Apps with Turso's MVCC](https://swe.quest/articles/concurrent-writes-in-practice-building-high-throughput-apps-with-turso-s-mvcc-ce150ea2df977c45.md): Turso · 2026-08-27 · Medium · 12 min read · SQLite, Concurrency, Consistency models, Databases
  Turso's BEGIN CONCURRENT replaces SQLite's single-writer lock with Hekaton-inspired optimistic MVCC that detects conflicts at commit time and at row granularity, rather than the page-level detection in SQLite's unmerged experimental branch.

## 2026-08-25

- [Read your writes: WAIT FOR in PostgreSQL 19](https://swe.quest/articles/read-your-writes-wait-for-in-postgresql-19-ead8d2a645bd23c3.md): ClickHouse · 2026-08-25 · Medium · 6 min read · PostgreSQL, Replication, Consistency models
  PostgreSQL 19 adds a top-level \`WAIT FOR LSN\` command that blocks a session until a standby has written, flushed or replayed WAL up to a given LSN, giving read-your-writes consistency on asynchronous replicas without the per-commit cost of \`synchronous\_commit = remote\_apply\`.

## 2026-08-03

- [SQLite Concurrent Writes Are Here: Early Preview on Turso Cloud](https://swe.quest/articles/sqlite-concurrent-writes-are-here-early-preview-on-turso-cloud-0a785739ef6a43fe.md): Turso · 2026-08-03 · Medium · 5 min read · SQLite, Concurrency, Consistency models, Storage engines
  Turso Cloud now offers concurrent writes in early preview: transactions opened with BEGIN CONCURRENT run optimistically in parallel on an MVCC engine modeled on Microsoft's Hekaton, with conflicts detected at commit time at row granularity.

## 2026-07-27

- [Building Local-First Apps: The Complete Guide to Offline-First Database Sync](https://swe.quest/articles/building-local-first-apps-the-complete-guide-to-offline-first-database-sync-047687e423c4421f.md): Turso · 2026-07-27 · Medium · 9 min read · Local-first & sync, SQLite, Replication, Consistency models, TypeScript
  Turso Sync brings local-first behaviour to SQLite-based apps.

## 2026-07-21

- [Don't add a read replica until you've read this](https://swe.quest/articles/don-t-add-a-read-replica-until-you-ve-read-this-a990a2b0dc14e87b.md): incident.io · 2026-07-21 · Medium · 18 min read · PostgreSQL, Replication, Consistency models, Go, Scaling
  incident.io moved nearly all Postgres read traffic to a read replica and had to preserve read-after-write consistency without hand-routing each query.

## 2026-07-13

- [Turso v0.7.0](https://swe.quest/articles/turso-v0-7-0-8d3ff93b34352c14.md): Turso · 2026-07-13 · Hard · 10 min read · SQLite, Storage engines, Consistency models, Memory management, Rust
  Turso 0.7 drops the beta label and focuses on performance and robustness for embedded, multi-tenant use: the core no longer blocks on I/O, yields CPU via a new StepResult::Yield, moves to fallible allocation so OOM surfaces as an error, and treats the page cache as a soft limit like SQLite.

## 2026-07-07

- [Intelligence is Free, Now What? Data Systems for, of, and by Agents](https://swe.quest/articles/intelligence-is-free-now-what-data-systems-for-of-and-by-agents-98e20761c37c0c4d.md): Berkeley AI Research · 2026-07-07 · Hard · 13 min read · Databases, AI agents, Query engines, Consistency models, Formal methods
  With inference costs falling roughly 50x per year, near-free intelligence creates three research directions for data systems.

## 2026-03-04

- [Turso v0.5.0](https://swe.quest/articles/turso-v0-5-0-1bc59038f4941e8d.md): Turso · 2026-03-04 · Hard · 6 min read · SQLite, Storage engines, Query engines, Consistency models, Search
  Turso v0.5.0 promotes MVCC-based concurrent writes (BEGIN CONCURRENT, adapted from Hekaton) to beta.

## 2026-02-13

- [Beyond rate limits: scaling access to Codex and Sora](https://swe.quest/articles/beyond-rate-limits-scaling-access-to-codex-and-sora-f19f4998580ba788.md): OpenAI · 2026-02-13 · Medium · 6 min read · Payments & fintech, System design, Consistency models, Event-driven architecture, Distributed systems
  OpenAI replaced hard rate-limit stops for Codex and Sora with a real-time access engine that treats rate limits, free tiers, credits, promotions and enterprise entitlements as layers in a single decision waterfall evaluated per request.

## 2025-11-06

- [The Write Last, Read First Rule](https://swe.quest/articles/the-write-last-read-first-rule-6fa0042a5ce38b5c.md): TigerBeetle · 2025-11-06 · Medium · 8 min read · Consistency models, Distributed systems, Payments & fintech, Resilience, TypeScript
  When an application spans two stores without a shared transaction boundary, such as Postgres for account master data and TigerBeetle for the ledger, one must be designated the system of record and the other the system of reference.

## 2025-10-06

- [Beyond the Single-Writer Limitation with Turso's Concurrent Writes](https://swe.quest/articles/beyond-the-single-writer-limitation-with-turso-s-concurrent-writes-cb123f350ef5318c.md): Turso · 2025-10-06 · Hard · 12 min read · SQLite, Consistency models, Storage engines, Concurrency, Performance engineering
  Turso implements SQLite-compatible BEGIN CONCURRENT using Hekaton-style MVCC, which removes SQLite's single-writer bottleneck and the SQLITE\_BUSY errors that come with it.

## 2025-07-02

- [ClickHouse Release 25.6](https://swe.quest/articles/clickhouse-release-25-6-783d976caa8e5340.md): ClickHouse · 2025-07-02 · Medium · 12 min read · Analytics & OLAP, Query engines, Storage engines, Consistency models
  ClickHouse 25.6 (25 features, 32 performance optimizations, 105 bug fixes) can take a single consistent storage snapshot across all subqueries and CTEs in a SELECT, controlled by enable\_shared\_storage\_snapshot\_in\_query.

## 2025-03-19

- [Scaling Nextdoor’s Datastores: Part 5](https://swe.quest/articles/scaling-nextdoor-s-datastores-part-5-9c2a55c33ba04857.md): Nextdoor Engineering · 2025-03-19 · Medium · 8 min read · Caching, Consistency models, Event-driven architecture, PostgreSQL, Scaling
  Nextdoor closes cache consistency gaps in its look-aside Redis cache by consuming the PostgreSQL change data stream and issuing version-conditional del\_if\_version deletes whenever writers fail to update the cache.
- [Scaling Nextdoor’s Datastores: Part 4](https://swe.quest/articles/scaling-nextdoor-s-datastores-part-4-160381ed2304f3a4.md): Nextdoor Engineering · 2025-03-19 · Medium · 7 min read · Caching, Consistency models, PostgreSQL, Concurrency
  Nextdoor prevents racing writers from leaving stale values in its look-aside Redis cache by versioning every database row and making cache writes conditional on that version.
- [Scaling Nextdoor’s Datastores: Part 2](https://swe.quest/articles/scaling-nextdoor-s-datastores-part-2-3bede3a52d4cf43e.md): Nextdoor Engineering · 2025-03-19 · Medium · 4 min read · Replication, Consistency models, Databases, Scaling
  Letting product engineers manually choose replica vs. primary routing in Django broke down as abstractions hid read-after-write dependencies, and the common workaround of wrapping logic in transactions sent everything to the primary, slowly eroding the capacity gained from read replicas.
- [Scaling Nextdoor’s Datastores: Part 1](https://swe.quest/articles/scaling-nextdoor-s-datastores-part-1-2e24faaf7f855796.md): Nextdoor Engineering · 2025-03-19 · Easy · 5 min read · Scaling, PostgreSQL, Caching, Replication, Consistency models
  Nextdoor's Django/PostgreSQL backend outgrew the usual scaling fixes, and a move to distributed SQL was ruled out because multi-JOIN relational queries were spread across the codebase.

## 2025-02-04

- [Debugging deadlocks in Postgres](https://swe.quest/articles/debugging-deadlocks-in-postgres-e07d42201c9784eb.md): incident.io · 2025-02-04 · Medium · 6 min read · PostgreSQL, Concurrency, Debugging, Consistency models
  Postgres deadlocks come from transactions acquiring locks in inconsistent orders, and the main fix is to restructure transactions so they always lock resources in the same sequence.

## 2024-09-19

- [Comparing local-first frameworks and approaches](https://swe.quest/articles/comparing-local-first-frameworks-and-approaches-d0bd0fb78a9919b2.md): Neon · 2024-09-19 · Easy · 6 min read · Local-first & sync, Consistency models, Replication, PostgreSQL
  Local-first software keeps data on the user's device and syncs opportunistically, and three representative approaches take different routes to it.

## 2024-07-23

- [Rediscovering Transaction Processing From History and First Principles](https://swe.quest/articles/rediscovering-transaction-processing-from-history-and-first-principles-7a5a2c6c3ea0ae42.md): TigerBeetle · 2024-07-23 · Easy · 9 min read · Databases, Consistency models, Payments & fintech, Performance engineering, System design
  General-purpose OLTP databases hit a hard throughput ceiling on debit/credit workloads because row locks are held across multiple network round-trips, and hot rows such as a few internal accounts serialize nearly every transaction.

## 2024-06-26

- [Optimizing Data Reliability: Heroku Connect & Drift Detection](https://swe.quest/articles/optimizing-data-reliability-heroku-connect-drift-detection-210645ff0f1dc0fb.md): Heroku Engineering · 2024-06-26 · Easy · 4 min read · Data pipelines, Consistency models, PostgreSQL
  Heroku Connect syncs Salesforce data into Postgres by polling time windows, and long-running Salesforce transactions that commit after the window has moved can be missed, causing drift.

## 2024-04-25

- [Announcing the Fivetran Destination for ClickHouse Cloud](https://swe.quest/articles/announcing-the-fivetran-destination-for-clickhouse-cloud-fb04100010478236.md): ClickHouse · 2024-04-25 · Easy · 4 min read · Analytics & OLAP, Data pipelines, Consistency models
  ClickHouse Cloud now has an open-source (Apache 2.0) Fivetran destination in public preview, written in Go on the Fivetran Partner SDK, that loads data from Fivetran's 500+ sources.

## 2024-02-07

- [Batches in SQLite](https://swe.quest/articles/batches-in-sqlite-fe6e8274fcb63369.md): Turso · 2024-02-07 · Medium · 3 min read · SQLite, Performance engineering, Consistency models
  Batching SQL statements into a single request cuts latency sharply for remote SQLite via libSQL/Turso, where every query is a network round trip.

## 2023-12-13

- [Deno KV vs. Cloudflare Workers KV, Upstash Redis, AWS DynamoDB, and Google Firestore](https://swe.quest/articles/deno-kv-vs-cloudflare-workers-kv-upstash-redis-aws-dynamodb-and-google-firestore-e5a149ce3d17d354.md): Deno · 2023-12-13 · Medium · 9 min read · Databases, Serverless, Performance engineering, Consistency models, CDN & edge
  A vendor-run benchmark compares Deno KV with Upstash Redis, DynamoDB Global Tables, Google Firestore and Cloudflare Workers KV by timing 10-record reads and writes from colocated serverless functions, with warm-up reads excluded.

## 2023-09-27

- [Announcing Deno Queues](https://swe.quest/articles/announcing-deno-queues-6220a78d2486588f.md): Deno · 2023-09-27 · Medium · 6 min read · Queues & messaging, Serverless, JavaScript, Consistency models
  Deno Queues adds two APIs to Deno KV, \`enqueue()\` and \`listenQueue()\`, for offloading or delaying background work with no infrastructure to configure.

## 2023-09-14

- [Deno KV internals: building a database for the modern web](https://swe.quest/articles/deno-kv-internals-building-a-database-for-the-modern-web-61dddae321d95df6.md): Deno · 2023-09-14 · Hard · 10 min read · Distributed databases, Consistency models, Storage engines, JavaScript
  Deno KV's production backend runs on FoundationDB, with a custom "transaction layer" in front of it that handles multi-tenant configuration, JavaScript-native types such as bigint sums, and cross-region replication.

## 2023-07-21

- [This Week at Zed Industries: #12](https://swe.quest/articles/this-week-at-zed-industries-12-12effbc7b871501a.md): Zed · 2023-07-21 · Medium · 7 min read · Rust, Real-time systems, Consistency models, Developer tools, Replication
  Zed publicly launched its preview channel and reports progress across the editor: Vim search commands, macOS ctrl-click remapped to right click in the platform layer, terminal Cmd+hover navigation, a semantic index that collapses nested tree-sitter symbols to cut embedding tokens, and a lock-contention bug where slow git status in huge repos serializes file scanning.

## 2023-07-12

- [What is new in PostgREST v11.1?](https://swe.quest/articles/what-is-new-in-postgrest-v11-1-2bc974a578068114.md): Supabase · 2023-07-12 · Medium · 5 min read · PostgreSQL, API design, Consistency models, SQL
  PostgREST 11.1 lets impersonated JWT roles (anon, authenticated, service\_role) carry Postgres settings via ALTER ROLE ...

## 2023-06-01

- [How to Build a CRUD API with Oak and Deno KV](https://swe.quest/articles/how-to-build-a-crud-api-with-oak-and-deno-kv-91b6dbad01b74ff7.md): Deno · 2023-06-01 · Medium · 9 min read · TypeScript, Databases, API design, Consistency models
  Deno KV, a key-value database built into the Deno runtime, can back a simple CRUD API for users and addresses served by Oak's Router.

## 2023-05-01

- [Announcing Deno KV](https://swe.quest/articles/announcing-deno-kv-d97d28c9a7128cf3.md): Deno · 2023-05-01 · Medium · 5 min read · Databases, Consistency models, Replication, JavaScript
  Deno KV is a strongly consistent key-value database built into the Deno runtime.

## 2023-04-07

- [Building Real-time Analytics Apps with ClickHouse and Hex](https://swe.quest/articles/building-real-time-analytics-apps-with-clickhouse-and-hex-28d6bbb0cc85e5a5.md): ClickHouse · 2023-04-07 · Medium · 15 min read · Analytics & OLAP, Data pipelines, Scheduling, Consistency models
  ClickHouse's git-import tool was run across the 50k most-starred GitHub repositories using a queue-worker model, with the job queue implemented as a KeeperMap table instead of an external queue like SQS.

## 2023-01-12

- [Announcing a New Official ClickHouse Kafka Connector](https://swe.quest/articles/announcing-a-new-official-clickhouse-kafka-connector-5e810526c099fceb.md): ClickHouse · 2023-01-12 · Medium · 8 min read · Queues & messaging, Data pipelines, Analytics & OLAP, Consistency models
  ClickHouse released a beta open-source Kafka Connect sink that aims for exactly-once delivery into ClickHouse.

## 2022-12-10

- [pg\_crdt - an experimental CRDT extension for Postgres](https://swe.quest/articles/pg-crdt-an-experimental-crdt-extension-for-postgres-19dd4ebad247eefd.md): Supabase · 2022-12-10 · Easy · 7 min read · PostgreSQL, Consistency models, Local-first & sync, Real-time systems
  pg\_crdt is an experimental, open-source Postgres extension that adds CRDT column types (wrapping the Yjs and Automerge Rust libraries via pgx), so a column like a post's content can be a Yjs Doc whose updates are commutative and idempotent.

## 2022-12-01

- [How CRDTs make multiplayer text editing part of Zed's DNA](https://swe.quest/articles/how-crdts-make-multiplayer-text-editing-part-of-zed-s-dna-b0f0df37585dbddf.md): Zed · 2022-12-01 · Medium · 12 min read · Local-first & sync, Real-time systems, Consistency models, Algorithms, Rust
  Zed builds collaborative editing into its core using CRDTs rather than Operational Transformation, making concurrent edits commutative by addressing text through stable logical anchors (insertion id plus offset) instead of absolute offsets.

## 2022-11-21

- [How Precision Time Protocol is being deployed at Meta](https://swe.quest/articles/how-precision-time-protocol-is-being-deployed-at-meta-6d56b79aabe69525.md): Meta Engineering · 2022-11-21 · Hard · 27 min read · Time & clocks, Networking, Datacenters, Hardware, Consistency models
  Meta replaced NTP with Precision Time Protocol across its data centers to get nanosecond-level clock sync.

## 2022-06-08

- [Introducing Zelos: A ZooKeeper API leveraging Delos](https://swe.quest/articles/introducing-zelos-a-zookeeper-api-leveraging-delos-60e2ce96bff76564.md): Meta Engineering · 2022-06-08 · Hard · 13 min read · Consensus, Distributed systems, Replication, Consistency models, Time & clocks
  Meta built Zelos, a ZooKeeper-compatible service on top of the Delos replicated-shared-log platform, to replace ZooKeeper clusters whose design ties application state to the ZAB consensus protocol and resists scaling changes.
- [Cache made consistent](https://swe.quest/articles/cache-made-consistent-61a6d7479b73ae8d.md): Meta Engineering · 2022-06-08 · Medium · 13 min read · Caching, Consistency models, Observability, Distributed systems, Debugging
  Meta raised TAO's cache consistency from six nines to ten nines (99.99999999% of cache writes consistent within five minutes) by treating consistency as a measurement and debugging problem rather than only a protocol problem.

## 2022-05-04

- [Delta: A highly available, strongly consistent storage service using chain replication](https://swe.quest/articles/delta-a-highly-available-strongly-consistent-storage-service-using-chain-578bf4a238261e51.md): Meta Engineering · 2022-05-04 · Medium · 12 min read · Replication, Storage systems, Distributed systems, Consistency models, Resilience
  Delta is Meta's low-dependency object storage service for bootstrap and disaster-recovery workloads such as build and distribution artifacts.

## 2022-01-27

- [Living without atomic clocks: Where CockroachDB and Spanner diverge](https://swe.quest/articles/living-without-atomic-clocks-where-cockroachdb-and-spanner-diverge-d4e6d0cdd53bad94.md): Cockroach Labs · 2022-01-27 · Hard · 10 min read · Consistency models, Time & clocks, Distributed databases, Distributed systems
  CockroachDB borrows Spanner's TrueTime-inspired approach to ordering distributed transactions but replaces atomic-clock-bounded certainty with a looser uncertainty interval and uncertainty restarts.

## 2021-08-18

- [RAMP-TAO: Layering atomic transactions on Facebook’s online graph store](https://swe.quest/articles/ramp-tao-layering-atomic-transactions-on-facebook-s-online-graph-store-470552a388260a08.md): Meta Engineering · 2021-08-18 · Hard · 2 min read · Consistency models, Distributed databases, Caching, Distributed systems
  RAMP-TAO is a protocol that layers read-atomic transactional guarantees on top of TAO, Facebook's eventually consistent social graph store, so developers get an intuitive read transaction API without handling fractured-read anomalies.

## 2021-08-06

- [How we built a general purpose key value store for Facebook with ZippyDB](https://swe.quest/articles/how-we-built-a-general-purpose-key-value-store-for-facebook-with-zippydb-852970eb82fe8238.md): Meta Engineering · 2021-08-06 · Hard · 10 min read · Distributed databases, Replication, Consistency models, Consensus, Multi-tenancy
  ZippyDB is Facebook's largest strongly consistent, geo-distributed key-value store, built by layering a reusable replication library (Data Shuttle) on RocksDB, Shard Manager and a ZooKeeper-based config service.

## 2021-07-28

- [Email Classification](https://swe.quest/articles/email-classification-eca32c5c2123a429.md): Slack Engineering · 2021-07-28 · Medium · 11 min read · MySQL, Consistency models, System design, Scaling
  Slack classifies invited email addresses as internal or external, so it can steer users toward Workspace Invites or Slack Connect.

## 2021-07-08

- [High Availability by Offloading Work Into the Background](https://swe.quest/articles/high-availability-by-offloading-work-into-the-background-e2fbdc591d2490c8.md): Shopify Engineering · 2021-07-08 · Medium · 14 min read · Queues & messaging, Resilience, Ruby, Scaling, Consistency models
  Moving slow, resource-heavy or error-prone work such as emails, image processing, webhooks and imports out of the request-response cycle into queued background jobs keeps application servers available and responsive.

Same list as RSS: [https://swe.quest/feed.xml?tag=consistency](https://swe.quest/feed.xml?tag=consistency). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
