Web app with many images and dynamic data - optimal DO server setup ?
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.
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.