0% found this document useful (0 votes)
7 views5 pages

Filght Booking System

The document outlines the implementation of a Flight Booking System using microservices architecture with Spring Boot, H2 database, and RabbitMQ for messaging. It describes the functionalities of four microservices: Search, Fare, Booking, and Check-in, along with a Spring MVC web application for user interaction. The system includes basic security authentication and demonstrates the flow from searching for flights to booking and checking in.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views5 pages

Filght Booking System

The document outlines the implementation of a Flight Booking System using microservices architecture with Spring Boot, H2 database, and RabbitMQ for messaging. It describes the functionalities of four microservices: Search, Fare, Booking, and Check-in, along with a Spring MVC web application for user interaction. The system includes basic security authentication and demonstrates the flow from searching for flights to booking and checking in.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Flight Booking System

We will have to accomplish the following items in our microservices implementation:

1. Each microservice exposes a set of REST/ JSON endpoints for accessing


business capabilities
2. Each microservice implements certain business functions using the
Spring(Boot) framework.
3. Each microservice stores its own persistent data using H2 in-memory
database
4. Microservices are built with Spring Boot, which has an embedded Tomcat
server as the HTTP listener
5. RabbitMQ is used as an external messaging service. Search, Booking, and
Check-in interact with each other through asynchronous messaging.
As shown in the preceding diagram, we are implementing four microservices as an
example: Search, Fare, Booking, and Check-in. In order to test the application, there
is a website application developed using Spring MVC. The asynchronous messaging
is implemented with the help of RabbitMQ. In this sample implementation, the
default H2 database is used as the in-memory store for demonstration purposes
The browser asks for basic security credentials. Use guest or guest123 as the
credentials. This example only shows the website security with a basic authentication
mechanism. service-level security can be achieved using OAuth2.
Entering the correct security credentials displays the following screen. This is the
home screen of our Flight Booking application:

The SUBMIT button invokes the Search microservice to fetch the available flights
that meet the conditions mentioned on the screen. A few flights are pre-populated
at the startup of the Search microservice. Edit the Search microservice code to feed
in additional flights, if required.
The output screen with a list of flights is shown in the next screenshot. The Book
link will take us to the booking screen for the selected flight:
The following screenshot shows the booking screen. The user can enter the
passenger details, and create a booking by clicking on the CONFIRM button. This
invokes the Booking microservice, and internally, the Fare service as well. It also
sends a message back to the Search microservice:

If booking is successful, the next confirmation screen is displayed with a booking


reference number:

Clicking on the SEARCH button in the previous screen invokes the Booking
microservice, and retrieves the booking information. Click on the CheckIn link to
perform the check-in. This invokes the Check-in microservice:
If check-in is successful, it displays the confirmation message, as shown in the next
screenshot, with a confirmation number. This is done by calling the Check-in service
internally. The Check-in service sends a message to Booking to update the check-in
status:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy