Is Hazelcast user flow safe?

I cannot find this in docs or javadocs : I need to create one client per thread or a client created with:

client = HazelcastClient.newHazelcastClient(cfg);

thread safety?

+4
source share
1 answer

The client is thread safe. Also, when you receive, for example, IMAP from it, it is also thread safe.

HazelcastInstance client = HazelcastClient.newHazelcastClient(cfg)
IMap map = client.getMap("map");

This way you can share this client instance with all your threads in the JVM.

+8
source

All Articles