Architecture Overview
What is fundamentally different here from the perspective of Cloudflare, R2, and Worker.
Architecture Overview
This is the page to read first before JDBIN, JDBON, R2 + Worker Runtime, and the comparisons with other systems.
30-second answer
The most interesting difference in this architecture is not just a new binary format. The real difference is that the query path is built around Cloudflare Worker and R2 Object Storage without a separate database server.
Core idea in one diagram
Client
-> Cloudflare Worker
-> query planner
-> range reader
-> R2 object
-> JDBIN / JDBON
-> JSON responseThe Worker does not load the whole object. It fetches only the required byte ranges from R2.
What is different from a traditional database model?
Many traditional architectures look like this:
Disk
-> database process
-> query engine
-> clientThere, the database process owns the disk, the query optimization, and the execution.
This model starts somewhere else:
Object Storage (R2)
-> HTTP Range GET
-> Cloudflare Worker
-> planner
-> JSONSide-by-side at a glance
Traditional DB model
Client
-> SQL query
-> database process
-> optimizer / execution engine
-> local disk pages
-> rows back to clientTypical characteristics:
- the database process owns the disk
- the query engine and execution live in the same server process
- the disk is read from the database's own runtime context
- object storage is not the primary read layer
R2 + Worker + JDBIN model
Client
-> HTTP request
-> Cloudflare Worker
-> query planner
-> HTTP Range GET
-> R2 object
-> JDBIN segments
-> JSON responseTypical characteristics:
- the canonical data lives in object storage
- the Worker acts as the query engine at the public interface
- reads happen as byte ranges instead of loading the whole object
- no separate database server is required as its own layer
Comparison table
| Question | Traditional DB model | R2 + Worker + JDBIN |
|---|---|---|
| Where does the data live? | Server disk or database-managed storage | R2 Object Storage |
| Where does the query logic live? | Inside the database process | In the Cloudflare Worker |
| How is data read? | Database-owned page or disk reads | HTTP byte-range fetches |
| Is a separate DB server required? | Yes | No |
| What is returned to the client? | A result shaped by the DB driver or API | JSON assembled in the Worker |
In other words:
- the canonical storage layer is object storage
- the query logic lives in the Worker
- reads happen as byte-range fetches
- the final result is delivered as a snapshot or JSON response to the UI
Why is Cloudflare central here?
Cloudflare is not just the hosting layer here. It is part of the architecture itself.
The key primitives are:
R2, which acts as the canonical immutable object storage layerWorker, which acts as the query planner, range reader, parser, and response assemblerHTTP Range GET, which allows selective reads without loading the whole object- the edge runtime, which keeps the query path close to the public interface
What do JDBIN and JDBON do in this split?
In simplified form:
JDBINis the read-optimized binary data artifactJDBONis the publication, manifest, and control layerWorkerdecides which parts need to be readR2stores the active state, bases, deltas, and snapshots
That means the read path and the publish path are intentionally separated.
What does this not mean?
This should not be described as if it were already a general SQL database or a full database engine.
The safe current boundary is:
- no general SQL parser
- no general execution engine for everything
- no general-purpose OLTP database
- no traditional database server that owns both disk and execution
What makes this an interesting research question?
The research question is not just "can a binary format store data", but:
Can immutable object storage act as a queryable read layer without a separate database server, if known query paths are implemented in a Worker through byte-range reads?
Recommended reading order
JDBINJDBONR2 + Worker RuntimeComparison with Other Systems
Safe closing formulation
The real novelty of the architecture is not only the format, but that Cloudflare Worker acts as the query engine on top of an object-storage-native R2 layer without a separate database server.