Question

Hosting a PHP app with MySQL database + NodeJS Chat server

Posted January 31, 2019 1.8k views
UbuntuMySQLPHPNode.js

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

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.

×
1 answer

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

Submit an Answer