Overview
Nova's parts, how they connect, and why every record lives in object storage.
This tab explains how Nova works inside, for anyone who wants to know. You do not need it to use Nova.
Nova keeps every record in object storage, such as Amazon S3. The servers that take your writes and serve your reads keep no record data on their own disks. You can add a server, replace one, or lose one, and no data has to be copied.
The parts
| Part | What it does |
|---|---|
| Node | A server running novad. It accepts appends, serves reads, and runs background work. Any node can serve any stream. The code and the logs call a node a star, and the whole deployment a constellation. |
| Object storage | Holds every record. Standard streams use one standard bucket. Express streams also write to one express bucket in each availability zone. |
| Metadata store | A key-value store with compare-and-set updates, Oxia. It records which streams exist, where each stored record is, and which node leads each stream. It holds no record bodies. It runs inside the nodes, or as a separate service. |
| Gateway | Optional. Serves the HTTP API to clients outside the deployment and calls the nodes over gRPC. |
| Object cache | Optional. A shared read cache in front of the standard bucket. When it fails, nodes read from storage directly. |
| Auditor | The background process that reclaims storage and copies records into one object per stream. It runs inside every node by default, or on nodes that serve no clients. |
One leader per stream
Any node can read a stream's stored records, but only one node at a time accepts its writes. That node is the stream's leader. It gives each record the next sequence number, so the numbers have no gaps and no other node takes part in an append. It also keeps the stream's newest records in memory for readers at the end of the stream.
A stream gets a leader when a producer first opens it. Nova picks a node with spare capacity and writes a lease in the metadata store that names it. The lease lasts as long as the leader's session, the connection it keeps renewing with the metadata store. A node asked to write to a stream it does not lead replies NOT_OWNER with the leader's address. The SDKs, the Gateway, and a node's HTTP endpoint follow that reply to the leader. One node leads many streams at once, and Nova moves leaders between nodes to spread the load.
A single writer per stream makes ordering cheap: the leader decides it alone, in memory. The cost is that one node's capacity bounds one stream's write rate. A scalable stream removes that bound by spreading its keys over several ranges, each a stream with its own leader.
Everything a leader has acknowledged is already in object storage. When a leader fails, its session expires 10 to 15 seconds later, and its leases end with it. Another node then takes over, and first reads what the old leader wrote from object storage. See Leadership and failover.
Object storage holds everything
Standard object storage keeps each object in several availability zones, grows without limit, and costs little per byte. It charges per request, and each request has a fixed delay. Nova is built around those two costs:
- A node batches the writes of every stream it leads into one object, so its request rate stays flat as streams are added. See How a write becomes durable.
- An append is acknowledged once object storage confirms the write. The metadata store is updated afterwards, in the background.
- Background work later copies each stream's records into objects of their own, which suit long reads and cheap retention.
What an append waits for
Once a stream has a leader, an append waits for object storage and nothing else.
Because the nodes hold nothing that is not in object storage, adding a node moves no data. New streams get leaders there, and rebalancing moves some existing leaders to it. Removing a node starts with a drain, which hands its streams to other nodes. See Adding and removing nodes.
Two APIs on one port
By default, every node serves two gRPC APIs on one listener. Applications use the data plane: appends, reads, subscriptions, trims, queues, and stream and bucket management. Operators and the Kubernetes controller use the admin plane: health, fleet status, drains, and credentials. A node can also serve the data plane over HTTP to trusted callers, the data bridge. Public HTTP traffic goes through the Gateway. An operator can serve the cluster's own calls on a second listener: calls from other nodes, from auditors, and from the Gateway. Client connections can then be capped without cutting off those calls. See The fleet listener.
Rules every part follows
| Rule | What it means |
|---|---|
| Memory is bounded | Every buffer, queue, cache, and set of pending work has a limit. At the limit, new work waits or is refused, and Nova records that it did. See Backpressure. |
| Metadata updates are conditional | A change to a shared record succeeds only if the record still has the version the writer read. This is compare-and-set (CAS). |
| Every multi-step change survives a crash | The metadata store has no transactions across keys, so a change to several records runs as ordered steps. A crash can stop it between any two, and a re-run reaches the same result. |
| Nothing scans | Metadata reads are point lookups or bounded ranges. Object reads fetch byte ranges. Nova never lists a whole bucket to find work or lost objects. |
| Sequence numbers have no gaps | They start at 0 and grow by one. Background checks treat a gap as corruption. |
The pages in this tab
Each page explains one flow or one design choice. Read them in this order, or start with the one that answers your question.
| Page | What it explains |
|---|---|
| How a write becomes durable | What an acknowledgement waits for, and what happens when a node fails mid-write |
| How reads find records | Where a read is served from: the leader's memory, or object storage |
| Storage classes inside | How Standard and Express share one write protocol, and what each costs |
| Leadership and failover | How a stream gets a leader, and how leaders move between nodes |
| Background work | How records become per-stream history, and how storage is freed |
| Scalable streams inside | How ranges split and merge while each key stays in order |
| Queues on streams | How a queue delivers a stream's records to workers |
| Backpressure | What bounds a node's memory, and what clients see at a limit |
| Failure model | What each failure costs, and how Nova tests these claims |
Go deeper
Metadata keyspaces
What the metadata store holds, and how its keys are laid out
Storage layout
The objects in each bucket, and their keys
Code map
Where each part lives in the source, and its design documents
Start with How a write becomes durable.