2 ms·
> And how do you keep this consistent across different objects? IE object A and object B are updated at the same time, going from generation 1 to generation 2.
by gnaritas 15y ago
> And how do you keep this consistent across different objects? IE object A and object B are updated at the same time, going from generation 1 to generation 2. I am on a remote machine reading from the cache. How can I ensure I don't get a view where I see object A at generation 1 and object B at generation 2?
You use caches when it doesn't matter, which is much of the time. If it really really matters, then you use ACID semantics of the DB to ensure that.