Skip to content
Index · [04] sectionsLightCavalry / 2026
Get in touchBegin a brief→
BasedDhaka · Edge-native globally
BookingQ4 2026
Architecture DiagnosticConfidential Systems Review · Verifiable Engineering
00 · SYSTEMS INSTRUMENTATION LAB · DDIA-ON-CLOUDFLARElive in a Worker

What Cloudflare leaves out, we built and measured.

Cloudflare has no native consensus service, CRDT engine, 2PC coordinator, percentile sketch, columnar engine, CDC, stream-windowing runtime or graph database — and this studio built working implementations of each on Workers and Durable Objects. Operate the six instruments below to watch each failure mode and inspect the measured evidence.

Verification gates
3 gates
wrangler types · vitest · deploy --dry-run
Example specs
977 specs
116 examples (109 runnable + 7 discuss)
Monorepo total
1 698 specs
154 packages · counted 2026-11-15
Primitives & apps
38 packages · 4 apps
698 primitive specs · 174 benchmarks
Tier distribution
51 bespoke
A 20 native · B 38 composed · C 51 bespoke
01 · BESPOKE
seeded · run to measure live8 specs

Bloom filter

No false negatives, and a false-positive rate you can watch.

↳ answers membership without storage → but who owns the data?
Parameters
Instrument readout
BIT MATRIX (64 COLS · SET = JADE)907 / 2 048 bits · 44.3 %FPR CURVE (1 − e^(−kn/m))^k100 %0 %n = 0n = 2 000 keys4.0 % · n=300k=4 slots: [3, 17, 52, 88]
300 keys set 907 of 2 048 bits. Of 300 absent keys, 12 came back positive — 4.0 %, against a theoretical 3.8 %.
Run telemetry · n=500 samples
Per op
12 µs
p99
31 µs
Ops / s
84 100
Round trip
38 ms
Where
SIN

Caveat · One isolate, one colo, 500 samples. This is the algorithm's own math, not a capacity plan.

↳ membership without storage → but who owns the data?
02 · BESPOKE
seeded · run to measure live5 specs

Consistent hashing

Add a node. Move ~1/N of the keys, not all of them.

↳ answers placement without reshuffling → but replicas must agree
03 · BESPOKE
seeded · run to measure live9 specs

CRDT counter

Two replicas, no lock, one answer.

↳ answers convergence without coordination → but some operations need atomicity
04 · BESPOKE
seeded · run to measure live9 specs

Two-phase commit

One participant says no. Nothing commits.

↳ answers atomicity needs a coordinator → but coordinators die
05 · BESPOKE
seeded · run to measure live4 specs

Raft

Kill the leader. The cluster elects a new one in a heartbeat.

↳ answers consensus survives a dead leader → but measurement lies
06 · BESPOKE
seeded · run to measure live7 specs

HdrHistogram

The mean says 120 ms. The p99 says 1 900 ms. Only one is honest.

↳ answers you cannot trust a system you cannot measure → but how do primitives survive together in production?
COMPOSED FLAGSHIP ENGINES · APPS/*

Four production engines composed from the 38 @ddia/* primitives

Each of the six instruments above ends by naming the limit it cannot cross. These four engines are what happens when you refuse to accept that limit: they compose the same primitives into systems that answer it, and they say which one.

4 apps · 20 specs · 8 benchmarks
@ddia/app-edge-calvin

Deterministic transactions (Calvin)

SequencerDO + PartitionDO + R2

Pre-declares read/write sets, seals deterministic epochs, and executes distributed transactions across shards without two-phase commit lock contention.

↳ resolves 04 · 2PC coordinator blocking
@ddia/app-parquet-olap

Vectorized columnar OLAP

Workers + R2 HTTP Range

Two-phase PAR1 trailer and footer range reads, zone-map min/max row-group pruning, byte-range coalescing, and selection-vector late materialization.

↳ resolves 01 · Bloom-filter pruning, scaled to columnar R2 storage
@ddia/app-bft-mesh

Byzantine consensus mesh (PBFT)

7 Durable Objects (n=7, f=2) + WebCrypto ECDSA-P256

Three-phase PRE-PREPARE / PREPARE / COMMIT quorum certificates and view-change protocol tolerating two concurrent Byzantine faults.

↳ resolves 05 · Raft, escalated from crash faults to adversarial ones
@ddia/app-edge-jepsen

Nemesis & WGL linearizability verifier

JepsenHarnessDO + Hybrid Logical Clock

Seeded XorShift128+ fault injection and Wing-Gong linearizability search verifying concurrent register and Raft histories.

↳ resolves 03 · CRDT and 05 · Raft claims, proven rather than asserted
07 · COMPLETE BESPOKE INVENTORY (TIER C)

51 bespoke distributed-systems implementations

Showing All implementations (51 of 51 bespoke examples).
#ExampleProvesSpecsMark
01HTAPone store serving transactional and analytical reads without a second copyverified (v6)S · STATIC
02Reverse ETLwarehouse state flowing back into operational systems without a batch windowverified (v6)S · STATIC
03Percentile sketchesthe tail is the system; sketches keep it affordable7 specsI · LIVE
04Resilience policiesretries, timeouts and hedges composed into one policyverified (v6)T · TRACE
05SLO error budgetserror budgets derived from an SLO, not from intuitionverified (v6)T · TRACE
06Dataframescolumnar execution over R2 without a warehouseverified (v6)S · STATIC
07Graph traversalrecursive traversal without a graph databaseverified (v6)T · TRACE
08N+1 amplificationquery amplification caught and measured at the edgeverified (v6)S · STATIC
09Star schemadimensional modelling enforced by schema, not conventionverified (v6)S · STATIC
10Triple storeRDF-style subject–predicate–object queries over D1verified (v6)T · TRACE
11Wide columnsparse, wide rows without paying for the zerosverified (v6)S · STATIC
12Bitmap indexesset algebra at index scale, with the compression trade-off shownverified (v6)T · TRACE
13Bloom filtermembership without storage, with a measured error rate8 specsI · LIVE
14HNSWapproximate nearest neighbour with a knob you can feelverified (v6)T · TRACE
15Levenshtein distancefuzzy matching cost curves on real string pairsverified (v6)T · TRACE
16LSM treewrite amplification versus read amplification, made visibleverified (v6)T · TRACE
17Multidimensional indexrange-and-point queries on more than one dimensionverified (v6)S · STATIC
18Zero-copy encodingencoding that skips the parse, measured against JSONverified (v6)T · TRACE
19CRDT counterreplicas converge without coordination9 specsI · LIVE
20Leaderless replicationquorum reads/writes with sloppy quorums and hinted handoffverified (v6)T · TRACE
21Local-first syncoffline edits merging without a server round tripverified (v6)T · TRACE
22Multi-leader replicationtwo writers, one conflict policyverified (v6)T · TRACE
23Version vectorscausality you can read off a vector, not a clockverified (v6)T · TRACE
24Consistent hashingadd a node, move ~1/N of keys5 specsI · LIVE
25Key-range partitioningrange partitioning with split and mergeverified (v6)S · STATIC
26Rebalancingmoving load without moving data twiceverified (v6)T · TRACE
27Secondary indexesindex maintenance as a write-path costverified (v6)S · STATIC
28Two-phase commitatomic across participants, blocked when the coordinator dies9 specsI · LIVE
29Two-phase lockinglocks, deadlocks and the abort that resolves themverified (v6)T · TRACE
30Serializable snapshot isolationserializable isolation without blocking, with retriesverified (v6)T · TRACE
31Write skewthe anomaly MVCC lets throughverified (v6)T · TRACE
32XA transactionsthe protocol everyone inherits and nobody enjoysverified (v6)S · STATIC
33Fault detectionyou cannot tell slow from deadverified (v6)T · TRACE
34Fencing tokensthe lock you thought you held, expiredverified (v6)T · TRACE
35Consensus (Raft)leader election and log replication on Durable Objects4 specsI · LIVE
36Coordination serviceleases, leader election and membership without ZooKeeperverified (v6)T · TRACE
37Lamport clocksordering without wall clocksverified (v6)T · TRACE
38Snowflake IDsmonotonic ids without a database sequenceverified (v6)T · TRACE
39Dataflowa pipeline that backpressures instead of droppingverified (v6)T · TRACE
40MapReduceshuffle and skew, shown as a costverified (v6)S · STATIC
41Change data capturelog-based change capture without pollingverified (v6)T · TRACE
42Stream joinsjoins across two unbounded streamsverified (v6)T · TRACE
43Watermarkinglate events, and what "late" costsverified (v6)T · TRACE
44Stream windowingtumbling, hopping, sliding and session windows on alarmsverified (v6)T · TRACE
45Verification auditwhat a real verification gate catchesverified (v6)S · STATIC
46End-to-end chainthe whole chain, from event to answerverified (v6)S · STATIC
47Lambda architecturebatch and stream reconciledverified (v6)S · STATIC
48Model biasa model's error rate, disaggregatedverified (v6)T · TRACE
49Feedback loopsthe loop that trains on its own outputverified (v6)T · TRACE
50Data minimizationcollect less, prove moreverified (v6)S · STATIC
51Responsible deploymentthe checklist that survives an auditverified (v6)S · STATIC
VERIFICATION SUITE ARCHIVE · ZERO MOCKS

1 698 specs across 154 packages on Workers and Durable Objects.

Every primitive separates a pure deterministic core from its Cloudflare runtime adapter and ships with unit, property-based and Miniflare integration gates.

When your production Workers hit hot-shard queuing, cross-DO lock contention, or p99 tail spikes, we do not guess at workarounds. We audit against these 174 empirical baselines and assemble custom subsystems from already-verified building blocks.