Distributed lock on GCP Datastore

So, I needed a distributed lock on the GCP Datastore. In theory, it is all very simple: Get the lock Do what you need to do Release the lock And, when I started thinking about it, it became clear that I need to have some kind of transaction mechanism in order to obtain the lock….