How Nova fits together
Buckets hold streams, streams hold records in order, and queues deliver a stream's records to workers.
Nova keeps records in streams, groups streams in buckets, and builds queues on top of streams. You write records to the end of a stream and read them back in order, as often as you like. A queue hands each of its records to one worker at a time instead. The quickstart shows each of them on a local cluster.
Buckets
A bucket is a named group of streams. It gives each new stream its default settings, and can create a stream on its first write. Use one bucket per application, environment, or tenant.
Streams and records
A stream is an ordered sequence of records, named by its address, nova://bucket/key. A record holds a body, optional headers, a timestamp, and a sequence number. Nova numbers a stream's records 0, 1, 2, … with no gaps.
You append records in batches. Nova acknowledges a batch once object storage has stored it, and the acknowledgement says which sequence numbers it got. You read from any position, or subscribe to get each new record as it arrives. Old records stop being readable when you trim them or when retention removes them. Guarantees lists what Nova promises about order and durability.
A stream costs little, so you can give each user, device, order, or job a stream of its own. Model your data shows how to choose.
Scalable streams
One node at a time writes a plain stream, so its write rate is what that node can take. A scalable stream also has one address, but it stores its records in ranges, and Nova splits a range when it gets busy. Each record's routing key picks its range, so records with the same key stay in order.
Queues
A queue is a scalable stream whose records are messages, which Nova delivers to a pool of workers. Each message goes to one worker at a time. The worker acknowledges it when its work is done, and Nova delivers it again if the worker fails.
Where your code connects
Your code talks to Nova through the Go or TypeScript SDK, the HTTP and gRPC API, or the nova CLI. It can connect to any node of a cluster, or to the Gateway, the HTTP entry point for clients outside it. Each stream has a leader, the node that currently serves its writes, and the SDKs and the Gateway send each call there for you.
Nova keeps every record in object storage. What you run describes the parts of a deployment.