-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding async redis caching #811
Conversation
Other than the map essentials, shim routes are placeholders:
Needs infrastructure to be "productionized" (e.g. Redis, Gunicorn) Needs data loading |
Need to keep tweaking Redis behavior Will see "Connection <RedisConnection [db:0]> has pending commands, closing it." messages if new requests come in before the previous one has finished. As a result may see "Redis set cache timeout error" or Ignore set errors, and do a CACHE_MAX_RETRIES attempts to get the cache. This sometimes will results in a loop which will return a 429 HTTP error. These errors show up in client. Need to tweak max retries, cache timeout, pool size, cache eviction policy and cache max memory size. Also, might want to revisit whether JSON serialization is better than Pickle... |
OK. Also added Sentry using the ASGI extension. Problem with the free account is it's single-user, but we could create a shared account. Biggest value would be setting up alerts that go to Slack. |
now works with the version 2 UI |
First version with Redis caching