请问多进程之间的数据如何共享?
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.3k
- Forks
- 614
- PR merge metrics
- No merged PRs in 30d
Description
我自己封装了一个net协议的物联网插件,使用extend方式引入,但是同时还需要向websocket发送数据,目前通过
this.ctx.app.websocket.io.to(data.stationcode).emit()
无法发送,好像是因为多进程数据不是共享的
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names the extend-based plugin and the this.ctx.app.websocket.io.to(data.stationcode).emit() entry point, but no file or test. Start by tracing how this call and the net-protocol plugin behave across processes. Done would require establishing how process-shared data should support the websocket send, or documenting that this setup is unsupported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100