Linking to this question How to listen for changes to a MongoDB collection? and other similar post here; my requirement is also same: listen to MongoDB for data changes and take some action in my .NET Business layer (probably refresh data ... etc).
searching through different SO post, MongoDB documents, GitHub repository I could find that my best option is to get the required change in OPLOG
using Tailable Cursor
.
Other that that, I see mongo-connector
which can be used to get change notification but I see target system is only solr / ElasticSearch / another MongoDB cluster
.
My question: can I use mongo-connector
in .NET/C# application to get change notification? Have anyone tried that? it's bit confusing and so thought of posting a question here.
If anyone have already tried, then can you provide a sample code (OR) to some resource which will provide a idea as "How to start...".