FRONTEND - MIDDLE-END - BACKEND
- We need an intermediate layer between the client side and microservices
- Using this middle end,when client sends request we will be able to make decision that which microservice
- We can do message validation, response transformation, rate limiting
- We try to prepare an API Gateway that acts as this middle end.
This project implements an API Gateway for an airline flight booking backend, designed to act as a middle layer between the client-facing frontend and ** backend microservices **.
- The API Gateway routes client requests to the appropriate microservices, including booking, flight information, and user management services.
- It enables message validation, response transformation, and rate limiting to ensure smooth and secure traffic handling.
- The system is deployed on AWS, leveraging Auto Scaling Groups and Load Balancers to handle varying traffic loads efficiently.
- Static assets (images, files) are served from the
assetsfolder.

initial-without-any_Load_on_CPU.png

monitoring-instances-loadBalancerEffect.png

auto-scaling-once-terminated-the-other-instances.png
Public FRONTEND → API Gateway (Middle-end) → Microservices (Booking, Flight, User, etc.)
↑
Rate limiting, validation, response transformation
↑
Auto Scaling + Load Balancer (AWS)
-
API Gateway:
- Routes requests to the correct microservice.
- Performs rate limiting to prevent abuse.
- Validates incoming messages and transforms responses.
-
Microservices Architecture:
- Each service handles a specific domain (Booking, Flights, Users).
- Independently deployable and scalable.
-
AWS Deployment:
- Auto Scaling Group ensures the right number of EC2 instances are running based on load.
- Load Balancer distributes traffic across instances.
- Rate limiting configured at the API Gateway level.
-
Asset Management:
- Images and static assets are served from the
assetsfolder.
- Images and static assets are served from the
- Configured auto-scaling and load balancing for backend services to handle traffic spikes.
- Implemented rate limiting and request validation to secure the API.
- Learned AWS deployment best practices for scalable microservices-based backends.
- Developed a fully functional API Gateway to act as a middle-end layer for the airline booking system.
-
Clone the repository:
``` git clone git@github.com:VIKASH1596KUMARKHARWAR/AirTicket_API_GATEWAY.git cd AirTicket_API_GATEWAY ``` -
Deploy microservices on AWS EC2 instances.
-
Configure the API Gateway with routes for each microservice.
-
Assets (images, static files) can be placed in the assets folder.
-
Use load balancers and auto-scaling groups to ensure high availability and scalability

