Skip to content

Sharding Jetstream #3495

Answered by derekcollison
maxpert asked this question in Q&A
Sep 25, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

If you want only jetstream to receive a message then you can restrict the subject (authz) for all other users/apps.

The leader of the stream receives the message directly from the app and is in charge of replicating it to the followers. Once a quorum of replies has been received by the leader it will respond to the application.

In terms of sharding, are you sure you need it? A single stream, even an R3 can run ~250k msgs/sec with proper hardware and setup. If you feel you do, you can have messages in your account be sharded automatically, but the streams would need to be setup to receive this partitioned messages.

I thought docs had that but a simple search could not find it so looping in @…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@maxpert
Comment options

@bruth
Comment options

Answer selected by maxpert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants