Skip to content
Discussion options

You must be logged in to vote

Many people use streams with no limit or a very large one, and store equivalent (or larger) message sets without a problem. You should be able to test this for yourself easily by using nats bench to generate a large amount of small messages into a stream and then to see for example how fast you can get them back from the stream and at the same time monitor resource usage on your servers. There is no hard limit to the size of a stream, but practically you will eventually run out of some kind of resource, be it disk space or memory space on the servers (as they maintain some per subject indexing). At that point you can investigate ways to shard onto multiple streams (e.g. you could have a s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jnmoyne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants