add redis cache for quicker lookups#9
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
I'm pretty sure Vercel won't be able to deploy a redis cache without using a redis cloud offering. Edit: I deployed this version to docker running in a linux server and as you can see there is big improvements in the performance. See the deployed version here.
|
|
Thats really awesome! The vercel preview is working fine. |
|
No, it's not going to work with the current deployment configuration. As in the api will work without the cache. I've set it up to run redis inside the docker container. I checked out Vercel and it's currently going to run whatever is in the Vercel Function. It's stateless. The only way to keep Vercel and run a Redis cache is to implement a cloud based one https://redis.io/docs/latest/operate/rc/cloud-integrations/vercel/ |

Speed up lookups by implementing a simple redis cache in python.
FIDE ratings only update once per month so this is the perfect use case for implementing a redis cache.
Closes #8