|
|
|
|
|
by SomeCallMeTim
3698 days ago
|
|
That 2500 is after taking into account relevant database queries. With async servers (which, as far as I know, PHP can't be, at least with the way it typically integrates into Apache) you can accept all the requests, forward off the database requests each depends on, and still send back the pages to everyone who requested one. Of course I've avoided WordPress and similar frameworks for years for a reason as well; I've seen front-end frameworks that require dozens if not hundreds of database queries to render a page, which is such bad design that it makes my brain hurt. |
|
For example, the advantage of the "warm app" with node is often approximated by using a shared memory kv store in php.
And, while an async io approach scales in a simpler way, you can typically find an optimum tuning for fastcgi that scales very well.
Looking at this benchmark: https://www.techempower.com/benchmarks/#section=data-r12&hw=...
There are php-fpm implementations running at the same clip as node, and an hhvm implementation trouncing it.
Yes, benchmarks are sometimes bullshit, but the idea that node's approach is somehow light years ahead just doesn't pan out in the real world.