• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to control the java class containing change stream mongodb code in cloud environment

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have created a java class which using changestream api of mongodb and able to get notification of changes happening in mongodb collection. We need to process this notification data to process the business logic.

I have deployed this java class in the cloud environment where we have four instances of this java class running. Now after testing i found that these four instances are getting same data.


can anybody suggest me how to get the notification data in all the servers and no two servers will get the same data.

Please help on this.

My java code copied below printing same data in all the servers.





.


Regards
Sanjeev
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic