Guarantees

Guarantees

The promises Nova keeps for every stream, about order, durability, retries, and limits.

Nova's promises hold for each stream, whichever node serves it, and they keep holding while the node that serves it changes. Suppose an append of two records is acknowledged as records 10 and 11. Every later read can return both. Neither record can change. The next record appended gets number 12.

GuaranteeIn shortExplained on
Consistent reads and writesA read that starts after an append is acknowledged sees itReads
Durable at acknowledgementAn acknowledged record is in object storageAppends
Permanent sequence numbersNo gaps, no renumberingStreams
No late writes from a former leaderA node that lost a stream cannot add to itLeadership and failover
Whole batchesA batch is stored and seen whole or not at allAppends
Retries without duplicatesA conditional append is stored at most onceWriter coordination
Ordered subscriptionsRecords arrive in order, and resuming skips and repeats nothingReads
Bounded resourcesAt a limit, callers wait or are refused; memory never grows without boundBackpressure

Consistent reads and writes

Each stream has one order for its acknowledged appends. Reads, subscriptions, and tail checks are linearizable: one that starts after an append is acknowledged reflects it, on any node. Records become visible in order, with no gaps, and only as whole batches. On a scalable stream, these promises hold per range, and so per routing key.

Durable at acknowledgement

Nova acknowledges an append only after object storage confirms it, and after every earlier append to the stream is acknowledged. On Standard, that is one write to standard object storage. On Express, it is copies in two availability zones. Losing a node loses no acknowledged record. If storage refuses the write, the append fails. See storage classes.

Permanent sequence numbers

Sequence numbers run 0, 1, 2, … without gaps. Trimming removes records without renumbering the rest. Once a sequence number is acknowledged, Nova never gives it to another record.

No late writes from a former leader

A stream's leader is the node that currently serves its writes. When another node takes over a stream, Nova makes sure that nothing the previous node writes afterwards can appear in the stream. This holds whatever the producer policy and fencing tokens.

Whole batches

A batch's records get consecutive sequence numbers, with no other writer's records between them. Nova stores them, makes them visible, and acknowledges them together.

Retries without duplicates

An append is stored at least once. If a connection breaks before the acknowledgement arrives, sending the batch again can store it twice. An append with a match sequence number is stored at most once, because a repeat finds the tail has moved and is refused. On a scalable stream, which refuses match sequence numbers, you detect repeats yourself.

Ordered subscriptions

A subscription delivers records in sequence order. The SDKs resume after the last record they delivered, and HTTP readers resume with Last-Event-ID, so nothing is skipped or repeated.

Bounded resources

Nova puts a limit on every buffer, queue, and connection count. At a limit, a producer waits, or Nova refuses new work with 429, or with 503 and a Retry-After time. The SDKs retry both. An object storage outage therefore makes appends wait or fail, but never fills a node's memory. API limits lists the limits a client sees.

What Nova does not promise

  • Order across streams. Sequence numbers and timestamps order records within one stream only.
  • No duplicates for plain appends. Use a match sequence number, or recognize your own record IDs.
  • Access control through fencing tokens. Use authentication.
  • Exact clock timestamps. Nova raises a timestamp that would go backwards, and caps client timestamps at arrival time unless the stream is uncapped.
  • Immediate storage deletion. Trimmed and expired records are unreadable at once. Nova deletes expired records' storage later, and a trim alone frees none.
  • A fixed tail. The tail in a response describes the moment Nova answered.

Nova's test suite checks these promises with concurrent writers while it injects storage failures, node restarts, and network faults. See fault testing.

See also

On this page