Ask HN: Stack/Hosting plan for a viral social web app
https://news.ycombinator.com/item?id=2363441We are preparing to launch a social web 2.0 app that has a strong potential to go viral. (We already know that the chances of our app going actually viral are probably slim to nil; so be kind and spare us the scepticism. :-))
Our basic aim is to ensure maximum availability at minimum possible cost. :-)
The app (nearing completion but not quite there yet) is built on PHP/MySQL/Java/AJAX and there will be 3 major load factors associated with it:
1. http and php
2. mysql
3. images
We're planning to deploy 3 VPS accounts/servers, one for each of the above 3. We're thinking of having all 3 VPSes in the same data centre (with unique IPs).
We believe this will provide not only load-distribution benefits but also the ability to upgrade just the VPS that may be causing slowdown/outage in case of a sudden traffic burst, at relatively low costs.
(Naturally, we'll optimize HTML/CSS, PHP code, MySQL config, table structures, queries etc. to the max.)
What do HNers with relevant experience think of this plan? What changes would you suggest? What are we missing?
Please share your views.