Skip to content

This service is to load entire DB data to Cache and Fetch Entire cache data using Hazelcast Cache provider in single request

Notifications You must be signed in to change notification settings

deeverma9/springboot-hazelcast-cachemanager-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springboot-hazelcast-cachemanager-service details

Description

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

Other Details

  • This service uses H2 DB
  • Postman collection with all requests is available in same repo to hit endpoints

How to test?

  1. Use first endpoint to create project data
  2. 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
  3. Create more projects using first endpoint
  4. Use third endpoint to insert all records to cache in one go
  5. Use fourth endpoint to fetch all records from cache in one go

About

This service is to load entire DB data to Cache and Fetch Entire cache data using Hazelcast Cache provider in single request

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages