> just getting the value and incrementing it would be too inefficient since it would be two requests
just getting the value and incrementing it would be too inefficient since it would be two requests to the KV every time the button is clicked.Not only that, KV is eventually consistent. If you do a
get() in one datacenter and then increment and a put(), another datacenter might not see it for up to 60 seconds so that datacenter might also do a get() and a put() (using the stale value) and then your counter is no longer consistent since a write would be lost.






