-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Change Streams can be consumed with both, the imperative and the reactive MongoDB Java driver. It is highly recommended to use the reactive variant, as it is less resource-intensive.
src/main/antora/modules/ROOT/pages/mongodb/change-streams.adoc
I do not understand why reactive variant is highly recommended. I follow example give in documentation part interactive, and I see one thread is started and listen changes on Mongo socket.
Is one extra thread resource intensive?
What about virtual threads?
If I use standard Mongo client in application and I want use Change Stream, should I
a) rewrite application
b) use 2 clients in single application
c) choose not recommended variant
?
IMHO documentation preface presents false statement or rough opinion without justification/explanation. The preface is misleading and may cause wrong developers decision.
I propose remove the sentence at all or clarify resource utilization subject