jotaBase storage lab

A database is not one design. Pick the application it is for, and the engine below reconfigures โ€” strategy, seal policy, WebSocket mode โ€” then watch a write go through it.

Simulated, and proposing rather than describing. This models the design in ARCHITECTURE.md ยง12, not what ships today: DO storage as a write-ahead log, R2 as the read layer, no KV. It runs the engine's own revision hash (verified byte-for-byte against a running Worker), key formats and stored shapes. Nothing is sent anywhere. Bytes and operation counts are exact; latency is not modelled.

1 ยท What is this database for?

Each row is a strategy and its parameters. Today an operator picks; the intent is that a customer declares the intent and the platform picks, per database.

2 ยท Its parameters

seal ceilings floors

Pick an application above, then write a document The strategy, the seal policy and the frame all change with the row you pick.

Browsers โ€” a full local copy each

Browser

Client A โ€” IndexedDB

store โ€ฆ

billed asnothing

docs
meta

        
Browser

Client B โ€” IndexedDB

store โ€ฆ

billed asnothing

docs
meta

        

In between โ€” holds nothing, decides nothing

Worker

Stateless

room โ€ฆ

billed as

request in flight

        
WebSocket

Broadcast

โ€ฆ

billed as

frames sent


        

Stores โ€” where a document actually lives

Durable Object

SyncRoom โ€” in memory

seq 0 ยท tail 0 / 5

billed as

tail

        
calls landing here

        
Durable Object

DO storage โ€” write-ahead log

billed as

rows

        
R2

CHUNKS โ€” the read layer

billed as

segment in progress

        
sealed segments

โ€ฆ