News for hackers. Stuff that matters.
Re:Scaling PHP Book: I will teach you to scale PHP to millio... by pwaring on Wednesday June 06, 2012 @04:18AM (#4072865)
"Identify bottlenecks" - I hope this is the first topic covered. There's no point in fiddling about with PHP if the actual bottleneck is the fact that you're sharing a slow connection with dozens of other companies or are hosted on the opposite side of the world to most of your customers.

Having said that, I'm looking forward to the book, as there doesn't seem to have been much on this topic since the O'Reilly books on scaling web applications (2006 I think).

Re:Scaling PHP Book: I will teach you to scale PHP to millio... by iaskwhy on Wednesday June 06, 2012 @06:14AM (#4073063)
What's the best way to identify bottlenecks?
Re:Scaling PHP Book: I will teach you to scale PHP to millio... by pwaring on Wednesday June 06, 2012 @06:33AM (#4073097)
Not sure about 'best', but the way I go about it is to measure the total time required for an application to complete a task, then attempt to measure the individual components (time spent in PHP, data transfer, rending on client side etc.) and keep narrowing it down until you find the exact cause, such as a database query which requires optimisation.