Need to implement active/passive topology for a Java instance.
The requirement is if active becomes unavailable due to some reason then passive takes over active and active becomes passive.
It's just a java application which just putting data into DB after doing some processing on it.
Two Questions:
1. How to handle active/passive instances.Is there any third party API that can be applied?
2. What should be the proper handling of the instance which went down i.e. the active one?