that looks fine to me.
some notes: config.setLiteMember(false);
is redundant as that's the default.
depending on your deployment scheme you might want to store hazelcastInstance
somewhere and shut it down when your application is about to shutdown. this is mostly concern if you deploy to an app server with multiple tenants (applications). If you are using something like Spring Boot (or appserver-less deployment in general) then it's usually not a concern.
Config config = new Config();
config.setLiteMember(false);
System.out.println( Arrays.asList(environment).toString());
JoinConfig join = config.getNetworkConfig().getJoin();
join.getMulticastConfig().setEnabled(false);
join.getAwsConfig().setEnabled(false);
join.getTcpIpConfig().setEnabled(true).setMembers(Arrays.asList("172.323.24.130","896.341.438.65"));
config.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(false);
config.getNetworkConfig().getJoin().getAwsConfig().setEnabled(true)
.setProperty("tag-key", "Name1")
.setProperty("tag-value", " api-1")
.setProperty("access-key","1")
.setProperty("secret-key","1");
config.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(false);
config.getNetworkConfig().getJoin().getAwsConfig().setEnabled(true)
.setProperty("tag-key", "Name2")
.setProperty("tag-value", " api-2")
.setProperty("access-key","2")
.setProperty("secret-key","2");
config.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(false);
config.getNetworkConfig().getJoin().getAwsConfig().setEnabled(true)
.setProperty("tag-key", "Name2")
.setProperty("tag-value", " api-2")
.setProperty("access-key","2")
.setProperty("secret-key","2");
Hello everyone,
I am from Hazelcast development team and I am trying to learn more about How People Use Hazelcast.
One of the Hazelcast painpoints is reliance on Java bytecode.
Example: IMap Entry Processors are awesome, they can often replace a complicated locking schema, increase both reliability and performance.
However they have one downside: They require bytecode to be available on each member classpath. This is usually not a issue if you are embedding Hazelcast inside your application. But It could be a problem in the client-server topology when your app uses a remote cluster. In this case you have to either distribute JARs with Entry Processors to all cluster members or use User Code Deployment.
I have 2 different questions is:
I will be grateful for any feedback, thank you!
Hi everyone,
We just introduced Hazelcast Guides with ~10 min. guides on Hazelcast integrations with Springboot, Quarkus, Micronaut, Microprofile, Kubernetes, Istio, and more! Check it out at https://guides.hazelcast.org
Dear Hazelcast developers,
As part of a research team from Università della Svizzera italiana (Switzerland) and University of Sannio (Italy), we have analyzed refactoring pull requests in hazelcast/hazelcast repository and are looking for developers for a short 5-10 min survey (https://usi.eu.qualtrics.com/jfe/form/SV_cO6Ayah0D6q4eSF). Would you please spare your time by answering some questions about refactoring-related contributions? We would greatly appreciate your input — it would help us understand how developers can improve the quality of refactoring contributions, and benefit the development process. The responses will be anonymized and handled confidentially! Thank you a lot!
If you consider this message to be spam, I'm very sorry! There will be no follow-up to bother you.