Why PHP and HHVM? Pick one or the other. :)
Also, you should probably include some kind of reverse proxy, squid, varnish, etc. Also good backend caching, memcache, etc.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm trying to bring together the best PHP compatible technologies to create the highest performance server combo possible to-date without switching to something like NodeJS while still having the ease of development found in Laravel/Lumen.
Here's what I had in mind, but I'd like the community's feedback on how feasible it would be to tie these together, if at all:
Thoughts?
Every PHP process is a single process, it's just that PHP-FPM spins off many processes while NodeJS uses a single process to handle all requests via asynchronous action. Don't get confused by how the language is run (php with php-fpm is a process per request, nodejs is a single process handleing all incoming processes) with what the language itself can do.
PHP (if thread safe ) can spawn threads, and NodeJS can create child processes which can help handle additional load. I don't think Node is necessarily the way to go in this project, it's still a slower language overall, it's just that people call it "fast" because of the asynchronous nature.
The asynchronous nature of NodeJS allows multiple things to happen "at the same time" (it's not truly at the same time), but it does not actually do any one thing particularly fast. If I remember right, it's async setup is basically to process something else while another thing is busy doing work. For example, you can make HTTP api call. While waiting for a response to that network request, NodeJS might start processing another incoming web request. Nothings truly happening "faster", it's just able to handle multiple things at once so the overall time of multiple things happening is lower. Using NodeJS, you need to be careful of taking blocking actions (like file i/o) that might hold up everything.
NodeJS may be the answer as it would handle lots of HTTP requests (incoming and outgoing) well. If network requests is the main bottleneck in speed, NodeJS would be fine I think.
I would, however, definitely use a hybrid approach. There's no reason to re-write the main PHP app (usually!).
Please or to participate in this conversation.