Sequence Diagram for the Movie Ticket Booking System

Visualize the sequence diagrams for the creation and payment of a booking, and practice the concepts with a challenge.

A sequence diagram is a great way to understand the interactions between different entities and objects in the system. There can be different sequence diagrams that we can create for our movie ticket booking system. In this lesson, we will create sequence diagrams for the following three interactions:

  • Create a booking: The customer creates a booking for a show.

  • Payment for the booking: The customer pays for the booking.

  • Sequence challenge: The customer cancels their booking.

Create a booking

The sequence diagram for creating a booking should have the following actors and objects that will interact with each other:

  • Actor: Customer

  • Objects: Catalog, Movie, and ShowTime

  • System

Here’re the steps of the interaction to create a booking interaction:

  1. The customer searches for a movie from the catalog.

  2. The catalog returns the required movie.

  3. They request show times for the movie they wanted to book.

  4. The available show times for the movie are returned.

  5. The customer requests available seats for the show.

  6. If seats are available:

    1. The customer receives a list of available seats.

    2. The customer books their desired seats using the system.

    3. The seat status is set to book.

    4. The system requests payment against the booked seats from the customer.

  7. Else if the seats are not available:

    1. The customer is informed that no seats are available.

Based on the order above, the sequence diagram for creating a booking in the movie ticket booking system is given below.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.