Hi
How can one trap SSE on jmongo to detect changes when CRUD functions are performed? I found this from chatgpt
Apparently one can do such with something called re-active streams
github.com
Is there something like this with jMongo that we can use or an alternative methodology to trap realtime CRUD events?
Thanks.
How can one trap SSE on jmongo to detect changes when CRUD functions are performed? I found this from chatgpt
B4X:
MongoClients.create()
.getDatabase("test")
.getCollection("myCollection")
.watch()
.subscribe(change -> System.out.println("Change detected: " + change));
Apparently one can do such with something called re-active streams
mongo-java-driver/driver-reactive-streams at main · mongodb/mongo-java-driver
The official MongoDB drivers for Java, Kotlin, and Scala - mongodb/mongo-java-driver
Is there something like this with jMongo that we can use or an alternative methodology to trap realtime CRUD events?
Thanks.