springcacherestapi This spring framework provides supports for adding caching to an application and clear the cache.
- Java 1.8+
- Gradle 6.0
gradle clean build
gradle clean build bootJar
Below Get API to access trip data
http:///tripsbyday
http:///tripsbymed
Send a POST request to http:///clear
Look for "Reading from DB" for cache miss in log
You can use Amazon RDS for DB and AWS memcache for redis
Add EKS for container based solutions
Improvement Can implement DDB+DAX for horizontal Scale and lambda for serverless solution