Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

High response time in Edge Microgateway layer

We are seeing high response time for edgemicro API. Edge microgateway is adding extra 300 ms to 500 ms time apart from backend response time. This is observed during local testing and even during performance testing.

Below are the metrics for one of the edgemicro API -

Average time - 362.06 ms
Average Proxy time - 241.47 ms
Average target time - 120.59 ms

In plugins we have only oauth, quota and spikearrest.

What could be the reason for this high latency. We are running a single instance of microgateway in a docker container.

Solved Solved
0 7 390
1 ACCEPTED SOLUTION

Issue got fixed after turning on the cache for apikey and tokens by adding below parameters in oauth plugin -

cacheKey: true
tokenCache: true

View solution in original post

7 REPLIES 7