|
|
|
|
|
by pdeva1
2480 days ago
|
|
>you just might not observe the state of the counter as it was a few milliseconds did you mean 'might observe' instead of 'might not'? stale read would result in the older value being read. i believe the anomaly would then occur depending on how close the 2 events are in time, regardless of frequency. in that case, precise counts can be needed even with low frequency. say you are a restaurant with 1 burger left. 2 folks order the same time, but you decrement the count by 1 only. also anything involving monetary values, you definitely don't want to read stale values ever. |
|
Dealing with money is similarly not a problem. ACH takes much longer to clear than the uncertainty window of linearizability violations. The client probably won't be able to tell the difference.