---
title: "JITENDRA JAIN (@Jain013) | Hashnode"
description: "Eternally curious (read confused). Read the latest articles by JITENDRA JAIN on Hashnode."
url: "https://hashnode.com/@Jain013"
---

@Jain013

# JITENDRA JAIN

@Jain013 · Joined June 2023

Eternally curious (read confused).

## Comments

[How are you making sure that in approach 1 there will be no overlapping entries. when two concurrent users trying to block same seat at same epoch. my guess is when creating reservation (startTime-endTime entry) you are using select for update kind of thing and then checking if reservation already exist for currTime if not then creating reservation entry. and for other transactions (like doing payment) just checking where there is an active reservation for currTime.](https://hashnode.com/posts/how-does-bookmyshow-handle-concurrent-bookings/6252ca4275dccb6f3431f7d4/comment/647a2545cc9d6bf749df52a7)

Comment · Article · Jun 2, 2023 · [How does BookMyShow handle concurrent bookings](https://hashnode.com/posts/how-does-bookmyshow-handle-concurrent-bookings/6252ca4275dccb6f3431f7d4)
