Data Integrity and Problems of Scope by Peter Baillis.
From the post:
Mutable state in distributed systems can cause all sorts of headaches, including data loss, corruption, and unavailability. Fortunately, there are a range of techniques—including exploiting commutativity and immutability—that can help reduce the incidence of these events without requiring much overhead. However, these techniques are only useful when applied correctly. When applied incorrectly, applications are still subject to data loss and corruption. In my experience, (the unfortunately common) incorrect application of these techniques is often due to problems of scope. What do I mean by scope? Let’s look at two examples:
…
Having the right ideas is not enough, you must implement them correctly as well.
Peter’s examples will sharpen your thinking about data integrity.
Enjoy!