We should add revision field to roles, permission and user on update to avoid data inconsistence in concurrency. https://es.slideshare.net/YannCluchey/concurrency-patterns-with-mongo-db http://www.tutorialspoint.com/mongodb/mongodb_atomic_operations.htm http://www.mattpalmerlee.com/2014/03/22/a-pattern-for-handling-concurrent/
We should add revision field to roles, permission and user on update to avoid data inconsistence in concurrency.
https://es.slideshare.net/YannCluchey/concurrency-patterns-with-mongo-db
http://www.tutorialspoint.com/mongodb/mongodb_atomic_operations.htm
http://www.mattpalmerlee.com/2014/03/22/a-pattern-for-handling-concurrent/