У нас вы можете посмотреть бесплатно Design BookMyShow | lld | Seat booking logic | double booking | machine code или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
This video by tenxbackend provides a comprehensive guide to designing a Low-Level Design (LLD) for a BookMyShow application. The focus is on handling critical system requirements like high concurrency, double booking prevention, and real-time seat availability. Video Description The tutorial is structured as a "machine coding" session, moving from requirements to actual implementation. Key highlights include: Double Booking Prevention: Explaining how to handle scenarios where multiple users attempt to book the same seat simultaneously using locking mechanisms. Atomic Transactions: Managing the flow from seat selection to payment, ensuring seats are released if payment fails. Concurrency Models: Comparing different locking strategies like show-level locking versus seat-level locking using Redis and Lua scripts for high performance. Scalability: How the design can be adapted for other systems like IRCTC (railway booking) or Ticketmaster. Chapters 0:00 Understanding requirements 3:04 Basic flow of the seat booking logic 6:50 Models and their repository 10:00 Designing the SeatBookingService Interface 14:40 Designing the PaymentService interface to handle callbacks 19:00 Implement the bookSeats methods 28:20 Implement the initiatePaymethod method 35:18 Implement the handlePaymentCallback method 41:00 Implement the confirmBooking and failBooking methods 45:00 Initializing the dependencies 49:30 Demo for seat booking for a user - success and failure 56:30 Double booking problem - using two threads 1:02:10 Finding race condition in bookSeats 1:05:15 Using synchronized keyword for locking the critical section 1:08:25 Why this will still create doubling booking in distributed system 1:11:30 Redis + lua for handling and seat level locks optimisation Github code link - https://github.com/tenxbackend/low-le...