I was asked to implement something like a movie seat booking with multiple concurrent request to book same seat. How can we do this in ruby without the use of database locks and only for in memory data structure? Are there other ways to have this type of check on application level?