CRDTs and Strong Eventual Consistency: A Foundation for Distributed Databases
By
tempodox
A good honest bake. Not flashy, but you'll finish the whole bagel.
Summary
This article explains CRDTs (Conflict-free Replicated Data Types) as a tool for achieving Strong Eventual Consistency in distributed systems. It introduces the concept of CRDTs as data structures that can be replicated across multiple nodes, edited independently, and merged without conflicts. The author argues that while collaborative document editing is a common use case, the major application lies in distributed databases. The article begins defining Eventual Consistency with its two key properties: Eventual Delivery and Eventual Convergence.
Key quotes
· 3 pulledCRDTs. Data structures that can be replicated across multiple nodes, edited independently, merged back together, and it all just works.
But collaborative document editing and multiplayer TODO lists are just the tip of the iceberg - I believe the big application is distributed databases, and for that we need to talk about consistency.
CRDTs are a tool for Strong Eventual Consistency.
You might also wanna read
SQLite as a Viable Alternative for Durable Workflow Execution
The article argues that SQLite can replace complex orchestration systems for durable workflow execution in many cases. It builds on DBOS's a
Agent Memory Is Distributed State Management, Not Magic
The article argues that "agent memory" in AI systems is fundamentally just distributed state management rebranded. It draws parallels betwee
Modified Raft Consensus Protocol Enables Progress with Minority Node Participation
This article describes a modified version of the Raft consensus protocol that allows progress to be made even when fewer than a majority of
Building a Rust Multi-Paxos Engine with AI: Lessons from 130K Lines of Code
A developer shares their experience building a 130K-line Rust-based multi-Paxos consensus engine using AI coding agents over ~3 months. The
NanoTDB: A lightweight, append-only time-series database for resource-constrained IoT hardware with built-in automatic rollups
NanoTDB is a tiny, embedded, append-only time-series database designed for resource-constrained hardware like Raspberry Pi, edge nodes, and
Honker: A SQLite extension adding Postgres-style pub/sub, queues, and event streams
Honker is a SQLite loadable extension that adds PostgreSQL-style NOTIFY/LISTEN semantics to SQLite, enabling durable pub/sub messaging, task
