hld

mermaid-diagram (7).svg

Class & Component Design

Controller-Service-Repository Pattern

The code follows a strict 3-layer architecture to ensure separation of concerns.

2.3 Key Algorithms & Logic

A. Flight Search (Dynamic Filtering)

Scenario: A user searches for flights from Mumbai (BOM) to Delhi (DEL) within a price range. The service builds a dynamic query.

The getAllFlights method supports dynamic filtering: