Demystifying Optimistic Locking in Databases

Have you ever tried to buy the last concert ticket only to see the message ‘This item has already been sold’? This is a typical concurrency…