High Latency in Tyk

Hmmm, that’s odd, but there’s definitely things that you can do:

  • Are you getting any log output from the gateway itself? It may indicate a bottleneck
  • The config seems to be using a DB based config (dashboard), but the sections to configure that are missing - where is your API definition being loaded from, or was that redacted?
  • Have you tried disabling syslog?
  • One thing that usually gets people is the ulimit setting, have you increased the file handles in Tyk (see the resource limits section in the guide you linked to)?

Most importantly, You are also missing the major optimisation settings from that guide, you should add the following to your tyk.conf:

"close_connections": true,
"experimental_process_org_off_thread": true,
"enable_non_transactional_rate_limiter": true,

I think you are using the old rate limiter, which has a hard sync with redis and is expensive and will add latency.