Possible Duplicate:
How do you do Load Testing and Capacity Planning for Web Sites
I hope this is the proper place to ask this. I put it up in webapps and it was closed without a recommendation on where to put it. Hopefully folks will be kinder here.
I have an app that I am gathering usage metrics on. The metrics are sent to a MySQL DB via PHP scripts. This is all running on an AWS EC2 micro instance.
My question is, I have about 10 metrics I want to gather. Would I be better served breaking up the PHP scripts into 10 separate units that each write one metric to the DB or writing one monolithic PHP script to handle them all?
I don't care about the complexity or inherent difficulty maintaining 10 scripts, what I am concerned with is the scalability for a TON of users. Is it generally better to have more scripts to serve many people, or one script to serve many people? Basically if 10 people use our app, each hitting a different metric, one method would serve the same page 10 times, and the other would serve a single page once to each user.
Which performs better??
Thanks for any input!
Chris