I am weighing the pros and cons of migrating from a relation SQL database to mongodb for a web application. This for performance issues*.
Storing all object dependencies in the object itself permits quick "reads" for displaying data to users. On the other hand, some data are presents in different collections (for example username is in the users collection but also in the comments collection). I am wondering how to deal with updates of this duplicated data in order to also have quick "writes".
I would like to avoid dealing with the updates of these duplications synchronously.
What are your options for asynchronous updates ? Are there good practices ?
My thoughts on this was to rely on a specific mongodb mecanism (which I don't know) or stack the required updates in a memcache/redis/zeromq engine to be played by an independent process asynchronously.
(*) My question is not about how to optimize joins, indexes and sql database engines, other posts on SO deal with that.