I got a Java web application that receives some events in real time and pushes them to the user interface level. I want to log all perceived events, and since the amount of information will be huge, I prefer to use NoSQL db.
I installed mongodb for this purpose, which inserts a document for the event. The problem is that this approach (disk access for each event) drastically slows down the whole process.
So what approaches can I take in this situation? what options are available in mongodb for this (e.g. bulk insert, asynchronous insert, caching, ...)? switching to some other NoSQL SQL server implementation makes a difference? what are the best methods here?
source share