Luckily, there are some non-core Go solutions and strategies that we can utilize to improve our ability to control data consistency.
Let's briefly look at a few consistency models that we can employ to manage our data in distributed systems.
On its own, a Distributed Shared Memory (DSM) system does not intrinsically prevent race conditions, as it is merely a method for more than one system to share real or partitioned memory.
In essence, you can imagine two systems with 1 GB of memory, each allocating 500 MB to a shared memory space that is accessible and writable by each. Dirty reads are possible as are race conditions unless explicitly designed. The following figure is a visual representation ...