3 ms·
> - Make state explicit. Don't save the same state in more than one place.
by ofrzeta 5mo ago
> - Make state explicit.
Don't save the same state in more than one place.
- munk-a 5mo agoYou can and you must replicate state in a complex system. The key is that state should always have an explicit owner and other carriers of that state should understand that their version of the state has some inherent lag or inconsistency off the true state. There's a reason caching (and it's invalidation) is one of the two hardest problems in computer science.