Skip to content

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

Closed

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

  1. cleptric commented on Feb 9, 2023

    @cleptric
    Member

    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.

  2. locked and limited conversation to collaborators on Feb 20, 2023
  3. converted this issue into a discussion #1473 on Feb 20, 2023
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