Skip to content

Support for concurernt processing workloads (e.g. with fibers) #1461

Description

@Rastusik

Problem Statement

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions