Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-27-2022 12:10 PM
Hello. I'm developing a Neo4j java plugin using the ExtensionFactory. The plugin starts a background thread that listens for external events and manipulates the graph db. The plugin needs to be aware of the status of the instance it's running on, as only the leader can perform write operations against the database. When running on a multi-node cluster there is only one leader, and I understand that the leader can change. The question I have is how can my code detect when the instance's role changes from leader to follower and vice versa?
Thanks in advance!
Solved! Go to Solution.
11-01-2022 02:42 PM
I may have found the answer myself. There is a procedure:
11-01-2022 02:42 PM
I may have found the answer myself. There is a procedure:
All the sessions of the conference are now available online