Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Joe Watkins:
But, is it web scale ?
Oct 08, 2014 @ 16:16:05

In his most recent post Joe Watkins talks briefly about concurrency in PHP and some of the issues that can come along with it. This includes one of the most glaring: the stress it can put on the host system with even a small number of threads being introduced.

Before we start to cover the topic of how to achieve parallel concurrency in PHP, we should first think about when it is appropriate. You may hear veterans of programming say (and newbies parrot) things like: "Threading is not web scale." This is enough to write off parallelism as something we shouldn't do for our web applications, it seems obvious that there is simply no need to multi-thread the rendering of a template, the sending of email, or any other of the laborious tasks that a web application must carry out in order to be useful. But rarely do you see an explanation of why this is the case: Why shouldn't your blog be able to multi-thread a response ?

He gives an example of a controller request that spawns off just eight threads and imagines what might happen if that controller was requested even just one hundred times (resulting in 800 threads). He does point out at least one place where it could be useful, though: separating out the portions of the application that need to use the parallelism from the rest.

Parallelism is one of the most powerful tools in our toolbox, multicore and multiprocessor systems have changed computing forever. But with great power comes great responsibility; don't abuse it, remember the story of the controller that created 800 threads with a tiny amount of traffic, whatever you do, ensure this can never happen.
tagged: webscale parallelism concurrency process threading

Link: http://blog.krakjoe.ninja/2014/10/but-is-it-web-scale.html

PHP Town Hall:
Episode 24: Episode 24: But Is It Web Scale?
May 15, 2014 @ 16:19:07

The PHP Town Hall podcast has released their latest episode with hosts Ben Edmunds and Phil Sturgeon - Episode 24: But Is It Web Scale? They're also joined this time by Steve Corona, author of Scaling PHP.

Most of this conversation centers around Phil and Ben’s horrible facial hair with a few questions thrown Steve’s way to educate us on getting the most out of your LAMP stack. The main takeaways are to stop using Apache and to start using Postgres.

You can listen to this episode in a few different ways. You can either use the in-page audio player, download the mp3 or you can watch the video of the live recording (Google Hangout).

tagged: phptownhall ep24 webscale stevecorona podcast

Link: http://phptownhall.com/blog/2014/05/14/episode-24-but-is-it-web-scale/


Trending Topics: