I have a fastapi API running on GCP. I do a lot of calculations that do not need a change every day but take a long time to calculate(almost 30 seconds for some).
I would like to implement Redis caching to speed things up. I have almost 100 endpoints so it is not feasible to manually implement this on each one. I want to see what you did for a few API endpoints then apply this to all others myself (and future ones) so ideally, the cache setup can be dynamic and not configured for each endpoint manually.
I'm open to solutions but I'm thinking you need to build a decorator that is called each time and results are returned if in cache otherwise function is processed then stored in cache for next time.
Let me know if you have any questions. If you know GCP that's great but if not we have a cloud engineer on the team.
5 фрилансеров(-а) готовы выполнить эту работу в среднем за $617
Hi, We are making Amazon Machine Trunk's Replica and we are using there Fast API, we can try to resolve your issue as we have good idea of Fast API. Yeah we don't have Good Hand on GCP but we can try only. Thanks