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! Go to Solution.
Issue got fixed after turning on the cache for apikey and tokens by adding below parameters in oauth plugin -
cacheKey: true tokenCache: true