AWS Microservice Architecture
Refer to this file for our raw drawing: https://drive.google.com/drive/folders/1y3xWsHIW5_S1DNRxCdgnh22Kg-ewCGf-?usp=drive_link
Diagram
Here we explain the top part of the followeing diagram, which correlates to the main traveloka website.
-
Incoming requests hit our Cloudfront, which:
- may block the request depending on our WAF configuration,
- may respond the request from cache,
- through
webrtrLambda@Egde service, adds theX-TVLK-Target-Servicerequest header depending on the routing configuration inroute.yml(see the Cloudfront "behavior" settings to verify this);
-
Cloudfront hits our ALB, which:
- reads the path, header, and/or the
X-TVLK-Target-Serviceheader to route to the relevant ECS service;
- reads the path, header, and/or the
-
ALB hits product ECS service, which:
- may call backend API through VPC peering.
