We have a spring boot application running in physical boxes. Planning to migrate to EKS (AWS). We have hazelcast used for multiple purposes listed below.
Is it possible to use hazelcast itself in AWS to make use of the same features.?
Or should I used any other technology than using hazelcast itself ?
Hazelcast is used for:
1. Master Election (of machines)
2. Caching (To keep some files sometimes and mainly to websocket messages and to transmit those whenever required)
Master Election : It is used to pick any one machine out of 4 boxes, to do a particular job until next restart/re-deploy.
Hazelcast version used : com.hazelcast.hazelcast : 3.4.2
Reference : what algorithm hazelcast uses to find the master node
Note : Previously I mentioned as leader (actually it's master in the case of Hazelcast)
FencedLock
inCPSubsystem
for leader election with a strong consistency guarantee. See FencedLock manual and Long Live Distributed Locks blog post – Groschen