Skip to content

Latest commit

 

History

History
19 lines (9 loc) · 936 Bytes

api_gateway.md

File metadata and controls

19 lines (9 loc) · 936 Bytes

API Gateway

API gateway provides a single entry point to the system and is responsible for initial Authentication and routing requests to the appropriate domain within the system. When needed for scale and latency, the API Gateway will also be responsible for sharding traffic based on location.

Overall, API gateway component uses a layered modular structure. It has 3 major layers.

The Load Balancer distributes network traffic across services.

The API Layer contains the routing to redirect requests to the corresponding FarmacyFood services.

The Common Layer implements the shared functionality including: authentication,authorization,rate limiting, caching, metrics collection and logging.

Communicates With:

All the rest of the services. One external request may break into several request to different FarmacyFood services.