Mongodb Change Streams runs the same number of times as the number of pods running

Viewed 24

My SpringBoot java application uses Mongo Change Streams. There are at least 3 pods(for deployment I use Kubernetes) for my application. When a change occurs in the collection, will the change stream functionality be executed as many times as there are pods running?

Is it possible to set the change stream to run only once, regardless of the number of pods?

0 Answers
Related