developit / developit/workerize

Feature: worker pooling

Đang mở
#27 2 bình luận 4 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
4.4k
Fork
87
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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!

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.