I try to study the topic of Spring Reactive and MongoDB change streams.
And i run with quite a lot of change streams as i develop my application (up to 10 so far - but still) - so far so good, but i believe when being used by multiple users it can affect memory usage/performance or anything.
Can you, please, advise me on the following items:
I have websockets in the set-up and i am assuming that if the WS session is completed - then the corresponding change stream is garbage collected - is that right?
Is there any particular recommended way to centrally manage change streams for different collections?
And what could be maximum and preferred number for change streams in general?