Skip to content

Jetstream expansion#7

Merged
paolobarbolini merged 2 commits into
mainfrom
jetstream-expansion
May 28, 2026
Merged

Jetstream expansion#7
paolobarbolini merged 2 commits into
mainfrom
jetstream-expansion

Conversation

@paolobarbolini

Copy link
Copy Markdown
Member

No description provided.

@paolobarbolini paolobarbolini force-pushed the jetstream-expansion branch 3 times, most recently from d7d491d to b4a1ac9 Compare May 27, 2026 15:18
Breaking: ConsumerBatch and ConsumerStream now yield
JetstreamMessage instead of raw ServerMessage.

Add JetstreamMessage wrapper around ServerMessage that provides
acknowledgment operations: ack, nak, nak_with_delay, term,
term_with_reason, progress, and is_acked.

The client handle is an Option that gets dropped after a terminal
acknowledgment, releasing the Arc<ClientInner> refcount immediately.
Add JetstreamClient::publish and ::publish_owned methods with a
builder pattern for JetStream-specific publish options: stream
targeting, deduplication (message_id), sequence expectations, and TTL.

Returns PubAck on success with stream name and sequence number,
or JetstreamPublishError for known failure cases (no stream,
stream full, etc).
@paolobarbolini paolobarbolini marked this pull request as ready for review May 28, 2026 07:30
@paolobarbolini paolobarbolini merged commit 76d391e into main May 28, 2026
16 checks passed
@paolobarbolini paolobarbolini deleted the jetstream-expansion branch May 28, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant