Report this

What is the reason for this report?

How to loadbalance php webservice

Posted on February 5, 2021

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?

Regards



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!

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.

👋 @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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.