Implementing high availability in the application