actually, I'm trying Hazelcast to provide a prototype for caching data. Hazelcast is deployed embedded in a spring-boot Microservice.
We are using distributed query for searching entries with partial values of the key.
Our infrastructure is at the moment only having the possibility to provide one instance of the microservice. The map is been persisted with a MapStore-implementation in a database.
If the microservice is shutdown, we lose all data in the memory and the distributed query does not return any results. Using loadAllKeys() etc. to initialize data in memory through the MapStore is not a way since we will have a lot of entries at the database to load.
As an interim solution, we lookup the database directly. It is surely not a best solution but it works for the moment. We Will like to have a right solution for it. Does anybody have an idea how to accomplish this?
Best