by cperciva · 16y ago · 0 comments
Scaling is a very big field, and it's going to be hard for us to provide any useful advice without more information. What's your facebook application? What does it do? Where are you currently hosted? In what way is your dedicated server overloaded (CPU time, RAM, bandwidth, disk...)?
I definitely need to move the app to the cloud or its own server. In a few days the app could easily be getting 50 requests a second. It's fairly light, in that there is no database interaction (there will probably be a DB soon, but it will only be 1 or 2 simple queries per page load). It's really just a simple html page and a JS file which I'll be moving to S3.
Perhaps the code is also making a bunch of Facebook API calls that are slow to return. That might explain why it doesn't perform well even though it isn't talking to a local database.