Feature: worker pooling
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 25/100
- Issue 類型
- 功能
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- javascript
研究方向
該 issue 沒有指明檔案、測試或進入點,因此請先定位 workerize 中負責建立 worker 和分派請求的程式碼。定義 worker 如何回報忙碌狀態、接手請求,以及如何在所有 worker 上執行一個函式;完成條件是擁有一個具備這些語意、經過文件說明且可運作的 worker pool。
由索引模型根據 Issue 內容生成。
描述
Hello,
It would be great if I could create a pool of workers. That way, parallelizing hot paths could be completely abstracted using workerize.
Considerations:
- To implement worker pooling, a worker may have to know when another worker is busy, so it can handle take over handling new requests until becomes busy itself
- Since workers independently manage memory, they would all have to run the same code, and there would have to be a way to run a function on all workers simultaneously in order to share state
It will be interesting to see what we will need to do for this. Would you accept a PR?
Thanks for considering!
- 主要語言
- JavaScript
- 星號
- 4.4k
- 分支
- 87
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
developit/workerize 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 35/100
-
難度 5/5 一週以上 新手友好度 25/100
-
難度 5/5 一週以上 新手友好度 20/100
-
Arrow functions 未關閉
難度 5/5 一週以上 新手友好度 25/100
-
難度 5/5 一週以上 新手友好度 25/100
查看 developit/workerize 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 65/100
antfu-collective/icones#398 ·
-
ECmail.com 未關閉
難度 1/5 1 小時以內 新手友好度 90/100
wesbos/burner-email-providers#554 ·
-
難度 2/5 1-3 小時 新手友好度 65/100
radiantearth/stac-browser#1023 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
components-web-app/docs#92 ·