This service performs below operations:
- POST /project
- endpoint to create projects
- GET /project/{id}
- endpoint to get project by id
- GET /project/cache/insert
- endpoint to insert entire Project table DB data to cache
- GET /project/cache/retrieve
- endpoint to retrieve entire data from cache
- This service uses H2 DB
- Postman collection with all requests is available in same repo to hit endpoints
- Use first endpoint to create project data
- Use second endpoint to get project data by id, first time it will read from DB but next time it will read from cache. This can be verified from console logs. First time it will print log "Reading record from Database", for subsequent hits to this endpoint for same id will not print any log
- Create more projects using first endpoint
- Use third endpoint to insert all records to cache in one go
- Use fourth endpoint to fetch all records from cache in one go