Suppose, I have a lightsail instance running some java backend. For whatever reason, this instance could potentially hang/freeze and basically require a reboot.
What is the standard/recommended way of dealing with such cases ?
Basically, client app1 makes api calls to the backend. I would like the api call to be successful even if the primary backend fails, through a replicated backend instance.
Is there anything out of the box that I can use with my instances that aws provides or do I need to run two backend instances and handle failures on the client side ?