zlacker

[parent] [thread] 2 comments
1. zmxz+(OP)[view] [source] 2022-12-08 13:43:18
1. Support for generic programming.

2. Officially supported runtime that exposes system event loop to userland (yes, we have swoole and roadrunner)

replies(1): >>tiffan+X
2. tiffan+X[view] [source] 2022-12-08 13:48:21
>>zmxz+(OP)
Related 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://www.techempower.com/benchmarks/#section=data-r21

replies(1): >>zmxz+U1
◧◩
3. zmxz+U1[view] [source] [discussion] 2022-12-08 13:59:53
>>tiffan+X
Stateful 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!

[go to top]