developit / developit/workerize

Feature: worker pooling

Ouverte
#27 2 commentaires 4 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
4.4k
Forks
87
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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!

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

The issue names no files, tests, or entry points, so begin by locating workerize's worker creation and request-dispatch code. Define how workers report busy state, take over requests, and run a function across all workers; done requires a documented, working worker pool with those semantics.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript
Domaine
frontend, web-dev
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.