Cache similar api response data for same api request

Viewed 16

So, I have a service which is responsible for updating customer through cron job at mid night for every available customer. Now what i want to achieve is that, for every customers there are plans and every plans has it details over plan service(another service). Now for every customer i have to fetch plan details (through api) i.e. even though they have same plans i have to fetch it all over again. Is is possible to cache api response on my service so that i dont have to make api call over a time if similar request for same plans appears which might speeds up my cron job.

0 Answers
Related