I published a new blog post on the tecRacer AWS Blog: https://www.tecracer.com/blog/2022/10/implementing-pessimistic-locking-with-dynamodb-and-python.html