Is the use of a load balancer based solution applicable for applications that are totally diferent?.

I need high availability between two applications; however each application is different and I need to run one or the other at a given time. would the use of a floating IP address layer sitting on top of two load balancers work, with the application layer underneath, bearing in mind that each application is different, with common database and also unique data base for each system. A set of industrial files are fed into one app or the other, but not both at the same time. I am looking for a high availability solution, where we can swath between the systems.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I am not quite sure I understand your use case. If you want a single URL to sometimes return one application and at other times return the other application you could use a FloatingIP to switch between them by assigning the IP to one service or another (either directly to the application server or a load balancer specific to that application). If your goal is to make one or the other available at different times using the DigitalOcean command line client doctl with a cron job could accomplish this by switching which droplet the floating IP is pointed to. If there are other reasons for switching between applications it would just be a matter of applying the business logic used to decide which one will be served to a script that will take action of the floating IP if needed. If you can provide more details about how your configuration should decide which application to return it might be easier to recommend a solution.