DenoDDeno
Powered by
A personA
Deno•2y ago•
10 replies
A person

Caching results from API

Hi, I'm currently working on a project where I get data from an API (https://www.robotevents.com/api/v2), process the data, and return it to the browser. I was wondering about how I could cache the results from the API because if the website has let's say 5000 users then the API won't be able to handle all of those, so I want to cache the data somewhere and update it every 24 hours or so. Do I use something like Deno KV for this and then when the server get's a request it checks if data is already in that database and returns it. Also, how do I call the API every 24 hours?

Thank you for your help.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Looking for caching API Responses
AlékiAAléki / help
3y ago
Return results from execute_main_module
k-xoKk-xo / help
3y ago
Caching old versions
Joshua | Rem-ChanJJoshua | Rem-Chan / help
3y ago
Call Rust function from Deno API
thomasmandorferTthomasmandorfer / help
2y ago