This is very basic question regarding mongodb.
Suppose, in my application, i have an entity "user". User has various data to store like its personal information, hobbies, education detail, professional detail, settings, contacts, photos etc.
I have a usecase where if i delete the user, everything related to it should also be deleted.
Considering the fact that mongodb is not completely atomic and supports single document integrity, would it be the good idea to use mongo db for above case if i dont keep all data in single document. Or to maintain the consistency, i would have to keep all the data in single document.
I have heard about some mongodb drivers which provide multiple collection transactions. Do they support multi server transactions as well?