agentleFS
ebartiebarti/skills/ddia-transactions-consistency/SKILL.md

ddia-transactions-consistency

Skill1 starsChanged 6 months agoMITView on GitHub

Distilled knowledge from "Designing Data-Intensive Applications" (Kleppmann, 2nd ed.) chapters 8-10 on transactions, distributed system fundamentals, and consistency/consensus. Covers ACID semantics, weak/strong isolation, distributed failure modes, time/clocks, linearizability, and consensus protocols.

The file

Files
SKILL.md

DDIA Transactions and Consistency

A reference skill covering the safety properties of single-node transactions (chapter 8) and the additional difficulties that distributed systems impose on those properties (chapters 9-10). Organized into 9 categories that can be loaded individually as needed.

Quick Start

  1. Open guidelines.md to find which files match your task or symptom
  2. Load only the listed files — most tasks need 1-3 reference files
  3. For a multi-step process (e.g., picking an isolation level), check workflows/ instead

Contents

References

CategoryFilesPurpose
acid-fundamentals/knowledge, rules, examplesWhat ACID actually means; transaction model basics
isolation-levels/knowledge, rules, examplesRead committed, snapshot isolation, lost updates, write skew
serializability/knowledge, rules, examplesSerial execution, 2PL, SSI
distributed-transactions/knowledge, rules, examples2PC, XA, atomic commit across nodes
distributed-failures/knowledge, rules, examplesPartial failure, network partitions, faults
distributed-time/knowledge, rules, examplesWall vs monotonic clocks, NTP, process pauses
distributed-truth/knowledge, rules, examplesQuorums, leases, fencing tokens, system models
linearizability/knowledge, rules, examplesStrong consistency, CAP, logical clocks
consensus/knowledge, rules, examplesPaxos/Raft, ZooKeeper, etcd, leader election

Workflows

TaskWorkflow
Choose database isolation level (read committed, snapshot, serializable)workflows/choosing-isolation-level.md
Diagnose a distributed bug (lost write, stale read, race condition)workflows/diagnosing-distributed-bug.md
Design a fault-tolerant distributed systemworkflows/designing-fault-tolerant-system.md
Choose consensus / coordination tool (ZooKeeper, etcd, Consul)workflows/choosing-consensus-tool.md

Guidelines

See guidelines.md for:

  • Task-based file selection (transaction design, concurrency bugs, distributed coordination, failure modes)
  • Symptom/question lookup ("two updates raced and one was lost", "clock skew causing weird ordering", etc.)
  • Topic index across all 9 categories
  • Decision trees for isolation level, consensus tool, and distributed lock design
  • Complete file index (27 reference files)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.