El Wed, 19 Jun 2024 11:54:05 -0500
Brett Nemeroff <brett(a)voicefoxtelephony.com> escribió:
What you should expect using this method is blocking
while the exec runs
which could run you out of child processes while they complete. I'd also
expect to see an "unusual amount of CPU activity" which will be the result
of the forked shells being created and destroyed.
All of that being said, yes it works. It's architecturally overly simple
and very inefficient. If your load is tiny, it might be ok. Anything
moderate like Henning and others have said, will use an inordinate amount
of cpu. I would not personally risk it.
Thank you Brett, Henning and Alex
Sadly the load won't be tiny and cannot risk it. For now I'll deploy a local
nginx and fpm to run the scripts, which are in php, and will use the http_async
method.
Sadly we have to "http all the things" nowadays.
Let's see if I'm able to write down all the logic tomorrow and do some testing.
cheers,
Jon
--
PekePBX, the multitenant PBX solution
https://pekepbx.com