You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for concurernt processing workloads (e.g. with fibers) #1461
The current version of SDK contains static calls to classes that manage one global state. This is not usable in concurrent workloads, where multiple fibers may process multiple requests concurrently.
Would it be possible to implement a fiber context layer above the current global state, so each fiber could work with contextual data that belongs to it?
Solution Brainstorm
Maybe it would be sufficient to index fiber contexts by spl_object_id() of the fiber, not sure if that works though. In Swoole, the contexts can be indexed by coroutine id.
Thanks for letting us know about this. This is not on the top list of our priorities right now, but we may look at a better way to support concurrent PHP runtimes at a later date.
Activity
cleptric commentedon Feb 9, 2023
Thanks for letting us know about this. This is not on the top list of our priorities right now, but we may look at a better way to support concurrent PHP runtimes at a later date.