I am trying to consider an optimal DO server setup for a new dynamic web site (or web app) that will display many images (small and medium), in addition to loading dynamic data from mysql, users are able upload their own images from their client area - which are then being displayed on the public web site.
I am using PHP + MySQL primarily.
I want to have high performance (fast loading speed) and optional (easy) future scaling abilities - but I am also on a small budget.
What’s the optimal configuration ?
I was thinking to start with:
x1 $5 server as an app VPS x1 $5 server as a database VPS x1 $5 for a dedicated image VPS
So I can split the loads into separate entities (each server handles a different aspect mostly)
I expect about 60-120 max simultaneous connections at the beginning , and about 4-8 thousands of visitors per day - at the beginning.
I thought that could be a simple, yet powerful configuration for a start on a low budget since I can up each one of the servers to get more power if I need it (without adding fancy LB configuration) - and if I ever need a HA configuration I will get to that when it happens.
another option I thought about if I will configure a HA configuration is:
x1 $5 droplet for load balancer x2 $5 droplet for for app + database
that way I have data replication which is nice, and already have the LB setup so I can add more servers later with ease, but I have no dedicated image or database server.
what do you think ?
Any help will be appreciated.
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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!