walkor / walkor/workerman

How i can use shared memory in workerman?

Open
#758 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
11.6k
Forks
2.2k
Avg merge
11h 30m
Merged PRs (30d)
3

Description

Hi. Any suggestions about how i can organize shared memory between worker processes in workerman? What classes\abstractions should i use? Any analogue for std::mutex or std::lock_guard c++ mechanics?

I need to keep piece of data between workerman processes and write\read to it. Am i correct saying that this is not implemented?

As long as i understood each callback for onMessage, onConnect, e.t.c can and will be called in different worker sub process thus providing parallelism, this is correct?

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by reviewing Workerman’s worker-process model and any existing mechanisms for sharing state or synchronizing access, then verify how callbacks are dispatched across workers. Done would be a documented, supported approach or a clear statement of the limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.