Skip to main content

Cache maintained by caller app or by provider app in microservices inter-app communication? [Resolved]

Suppose there are app1 and app2 in a microservices. app2 needs to call app1's RESTful APIs. Cache is needed since the call will be frequent. So after a successful RESTful call, there will be cache available for app2.

My question is who maintains the cache, app1 or app2? Any comparison between the two? Is there industry best practices?

In addition, are there any differences if there's a app3 also needs to call the app1's APIs?


Question Credit: Wei Huang
Question Reference
Asked July 20, 2019
Posted Under: Programming
28 views
2 Answers

Your Answer
D:\Adnan\Candoerz\CandoProject\vQA