How to loadbalance php webservice

Hello I develop a mobile app with flutter which has php(Slim framework) backend as webservice. What is the best way to keep my app online and Stable. Does Cloud app fits for me? Or should i use two droplets behind loadbalancer? If i use lb, how can i update my code in Same time?


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

👋 @tasmcan

It sounds like App Platform might be a great choice for your app backend. App Platform automatically monitors your services and will try to bring them back up if they were to go down.

In addition, we offer the ability to scale your app horizontally. Using our pro plans you can increase the number of containers running your backend and we will automatically load balance between them. Here’s a link to our documentation on this.

A nice additional feature is if you’ve enabled Autodeploy code changes when you push new changes to your code base we will automatically build and deploy a the latest version of your app.