Architecture : Api Gateway (AWS us-west) → Service Layer (AWS us-east) → 3rd party API (AWS us-east)
During low RPM test,
Nw Latency between Api Gateway - Service Layer is as high as 280 msec
Nw Latency between Service Layer - 3rd party API is as high as 150 msec
Api Gateway → 40 msec
Service Layer → 5 msec
3rd party API → 300 msec
Due to this Total Response time is around 770 msec
During High RPM test,
Nw Latency between Api Gateway - Service Layer is as high as 80 msec
Nw Latency between Service Layer - 3rd party API is as high as 50 msec
Api Gateway → 10 msec
Service Layer → 5 msec
3rd party API → 140 msec
Due to this Total Response time is around 285 msec
Service is running on EKS cluster on AWS. Any pointers to debug on the n/w latency is much appreciated.