4 ms·
1. Support for generic programming. 2. Officially supported runtime that exposes system event loop to userland (yes, we have swoole and roadrunner)
by zmxz 4y ago
1. Support for generic programming.
2. Officially supported runtime that exposes system event loop to userland (yes, we have swoole and roadrunner)
- tiffanyh 4y agoRelated to #2, doesn’t this then make PHP stateful - which some might argue is a negative. EDIT: have you looked at ngx-php. It’s blazing fast and provides you that event loop. https://github.com/rryqszq4/ngx-php https://github.com/rryqszq4/ngx-php https://www.techempower.com/benchmarks/#section=data-r21 https://www.techempower.com/benchmarks/#section=data-r21
- deleted 4y ago[deleted]
- zmxz 4y agoStateful as in it would preserve objects/variables between requests (if served by the server that spins the runtime up)? That's something up for debate. Personally, I'd like the shared-nothing approach but I'd like to have async capabilities to optimize I/O and a function that flushes the request and frees up resources for next request in queue. edit: I haven't seen ngx_php, thanks for the link!