How to cache API requests on the server side?
Hey guys,
I've recently come across a problem where my server is making 4-5 calls to the API server on every request that comes to the Nuxt app. As a result, Nuxt takes a long time to respond to a user, as each API request needs to travel to another part of the world.
I want to avoid this behaviour by leveraging caching, and storing API responses periodically. I've seen multiple solutions, including useFetch's getCachedData option, but they all address client side caching, while I need a solution for server-side caching.
So, can you suggest a state-of-the-art solution for caching data on the server side?
I've recently come across a problem where my server is making 4-5 calls to the API server on every request that comes to the Nuxt app. As a result, Nuxt takes a long time to respond to a user, as each API request needs to travel to another part of the world.
I want to avoid this behaviour by leveraging caching, and storing API responses periodically. I've seen multiple solutions, including useFetch's getCachedData option, but they all address client side caching, while I need a solution for server-side caching.
So, can you suggest a state-of-the-art solution for caching data on the server side?
