I would like to implement a click counter using MongoDB (e.g. user clicks a link, count the total clicks).
My intuitive approach is to have an in-memory low priority thread pool that will handle a blocking queue of click messages and persist it to MongoDB in the background asynchronously.
So my question is - does MongoDB's native Java Driver have some async capabilities that do just that?
If it doesn't, is there an alternative Mongo driver that might has benefits over rolling my own async code?