I'm looking into using mongodb for a pub-sub model. I went through different articles like http://tugdualgrall.blogspot.fr/2015/01/how-to-create-pubsub-application-with.html and https://jpaljasma.blogspot.com/2013/11/howto-mongodb-tailable-cursors-in-nodejs.html.
I had a question on the numberOfRetries
option on the cursor
. If i set the option {'numberOfRetries': -1}
will this ensure that the cursor will not timeout? Which means that i'll be able to get any new documents inserted into the capped collection even if there was a long delay in a document getting added to the collection?
Thanks.