Durable streams and queues on object storage.
Nova is a service for ordered streams and work queues. It keeps every record in object storage and confirms a write only once it is safely stored.
Every stream is an address
Append with a POST and follow with a GET. Each record gets the next sequence number, with no gaps.
The amber mark is the tail, where the next record goes. Trimmed records fade but keep their numbers.
# Append two recordscurl -s localhost:8080/v1/streams/demo/events/records \ -d '{"records":[{"body":"hello"},{"body":"world"}]}'# Follow the stream from the first record, as server-sent eventscurl -N 'localhost:8080/v1/streams/demo/events/records/subscribe?seq_num=0'Low latency or long term
Pick a class for each stream. Older records from both move to standard storage, so a long history stays cheap.
Express for low latency
<50 ms
Three zones at once, confirmed at two.
Standard for the long term
<400 ms
Batched into standard storage, copied across zones.
Queues for background work
Send a message, and Nova gives it to one worker. If that worker fails, Nova delivers the message again.
Each message goes to one worker. When a worker stops answering, its message goes back and another worker takes it.
queue := c.Queue(client.Address{Bucket: "apps", Key: "emails"})// Send: the message is stored when Send returns._, err := queue.Send(ctx, "user-42", client.Message{Body: []byte("welcome")})if err != nil { return err}// Work: returning nil acknowledges the message.return queue.Work(ctx, func(ctx context.Context, claim *client.Claim) error { return sendEmail(ctx, claim.Message.Body)}, client.WorkOptions{Concurrency: 8})Streams that outgrow one node
A scalable stream splits into ranges as its traffic grows. Records with the same key stay together in one range, in order.
Each arc is a range. When one gets busy, Nova splits it in two.
Run it on your laptop
One Compose file starts three nodes, object storage, and the HTTP gateway. Nodes keep no record data on local disk.
curl -fsSL -o nova-compose.yml \ https://raw.githubusercontent.com/supabase/nova/main/deploy/docker/docker-compose.quickstart.ymldocker compose -f nova-compose.yml up -d