Project goal Problem is there are two providers(REST APIs) when client request data we have to call it and fetch the data and return to user. But every time when you call it it cost you. think on 1M throughput, how much you have to pay?.
https://github.com/erateachnology/ticker-service
Solution Providing caching service.
- Scheduler implemented which will run every 5 mins.
- This schedular will call two providers.
- Fetched data and manipulate it and pushed into a Memcache provided by Spring eco system at initial stage.
- After initial stage every 5 mins this schedular execute and fetch the latest data and update the cache data.