The dark side of eventual consistency and how to triumph over it