Spring/Java folks. Is there a way to create/use s...
# tribe
s
Spring/Java folks. Is there a way to create/use shared variables among multiple instances of same service? Fundamentally, I have a
HashMap
that needs to be shared among all 3 instances of the service. I am reluctant to use a common-storage-file/AWS/database. What is the way to go?
r
I’ve heard about redis caching and hazelcast. Have you tried them?
a
Redis is the way to go
a
I have used Hazelcast for exactly same purpose in a spring application. Open to have a chat if you want to discuss.