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

# 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–24 of 49, page 1 of 3, 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.

[Next page](https://swe.quest/tags/consistency.md?page=2)

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)
