Report this

What is the reason for this report?

Hosting a PHP app with MySQL database + NodeJS Chat server

Posted on January 31, 2019

Hello!

I am a beginner with this whole Droplets thing…

I would like to ask your opinion, what should I do?


I have developed an application for iOS, that communicates with my PHP server (+MySQL database). Besides that, It does use Socket.io (NodeJS) for real time chat.

Should I create 2 droplets? One for the PHP server+Database, and one for the NodeJS realtime chat?

And if so, what do you recommend, should I choose the “OneClick app” option?

I am really confused how this all works.

Best regards, Andrew



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.

Hello,

I believe that as long as your services and applications are on different ports you should be fine of using 1 droplet.

Though if you want to keep your applications separate, for example if you have the two applications on one droplet and if it happens that one of the applications gets a huge spike in the traffic it would affect the second application as well. So if you want to be safe you could simple have 2 droplets, that way the resources and the applications would be isolated.

Hope that this helps! Regards, Bobby

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.