Which NATS JetStream Setup is Better? #6571
-
Which NATS JetStream Setup is Better? I need a NATS JetStream setup where one stream is consumed by two consumers:
Approach 1: Source + Mirror Stream
✅ Pros: Keeps the source stream lightweight for fast processing. Approach 2: Single Stream with Limits Retention
✅ Pros: Simpler setup, no message duplication. Which approach is more efficient and scalable? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It's not because a stream is larger that delivery of messages to consumers takes longer, therefore approach 2 is simpler, more efficient and doesn't have the Cons you list. |
Beta Was this translation helpful? Give feedback.
Mostly increased memory usage if you have a lot of different subject being used in the stream (the servers maintain per subject indexing).