The sequence diagram depicts interactions within a Railway Reservation System. A passenger requests a reservation, initiating a request to the Railway Reservation System. The Railway Reservation System checks availability by querying the Database. The Database returns availability information to the Railway Reservation System. Upon confirmation of availability, it confirms reservation with the passenger. The passenger proceeds to make payment, sending a payment request to the Railway Reservation System. The system verifies payment by interacting with the Payment Gateway. The Payment Gateway confirms payment, returning the confirmation to the Railway Reservation System. Finally, the the system issues a ticket to the passenger, completing the reservation process. Passenger needs to provide valid ID and payment details. Passenger receives ticket and confirmation.

sequence-railway-reservation.png

Edit this diagram in Gleek

Railway reservation system diagram code in Gleek

Passenger- requests reservation -> Railway Reservation System

Railway Reservation System- checks availability ->+ Database

Database- returns availability ->- Railway Reservation System

Railway Reservation System- confirms reservation -> Passenger

Passenger- makes payment -> Railway Reservation System

Railway Reservation System- verifies payment ->+ Payment Gateway

Payment Gateway- confirms payment ->- Railway Reservation System

Railway Reservation System- issues ticket -> Passenger

Passenger needs to provide valid ID and payment details:note -- Passenger

Passenger receives ticket and confirmation:note -- Passenger

About sequence diagrams

Sequence or event diagrams help create an overview of how a system works. Sequence diagrams show how all the different parts interact with each other over time, carry out the required actions, and complete processes. A sequence diagram descends from top to bottom showing a sequence of interactions and sequence diagram notations.

Similar sequence diagram examples

Sales process sequence diagram

Car rental system sequence diagram

Online shopping sequence diagram

Online examination system sequence diagram

Insurance management system sequence diagram

Notes template sequence diagram

Doctor appointment system sequence diagram

Travel management system sequence diagram

Online food ordering system sequence diagram

Microservices sequence diagram

User login sequence diagram

ATM withdrawal sequence diagram