zlacker

[parent] [thread] 1 comments
1. tiffan+(OP)[view] [source] 2022-12-08 13:48:21
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+X
2. zmxz+X[view] [source] 2022-12-08 13:59:53
>>tiffan+(OP)
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]