Add dynamic worker choice strategy change at runtime
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 8 Oct 2022 10:24:16 +0000 (12:24 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 8 Oct 2022 10:24:16 +0000 (12:24 +0200)
commitbdaf31cd0e637aa466c78d54a49f157899a2cb3f
tree1e4fb82a47f5bf30ce68d10ad12afaac654678ce
parent9c8526b801b42a5b40bfa5cec6f6e2082ffc9da7
Add dynamic worker choice strategy change at runtime

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
25 files changed:
.eslintrc.js
CHANGELOG.md
benchmarks/internal/benchmark-utils.js
src/index.ts
src/pools/abstract-pool-worker.ts [new file with mode: 0644]
src/pools/abstract-pool.ts
src/pools/cluster/fixed.ts
src/pools/pool-internal.ts
src/pools/pool-worker.ts [new file with mode: 0644]
src/pools/pool.ts
src/pools/selection-strategies.ts [deleted file]
src/pools/selection-strategies/abstract-worker-choice-strategy.ts [new file with mode: 0644]
src/pools/selection-strategies/dynamic-pool-worker-choice-strategy.ts [new file with mode: 0644]
src/pools/selection-strategies/less-recently-used-worker-choice-strategy.ts [new file with mode: 0644]
src/pools/selection-strategies/round-robin-worker-choice-strategy.ts [new file with mode: 0644]
src/pools/selection-strategies/selection-strategies-types.ts [new file with mode: 0644]
src/pools/selection-strategies/selection-strategies-utils.ts [new file with mode: 0644]
src/pools/selection-strategies/worker-choice-strategy-context.ts [new file with mode: 0644]
src/pools/thread/dynamic.ts
src/pools/thread/fixed.ts
src/utility-types.ts
tests/pools/selection-strategies.test.js
tests/pools/thread/dynamic.test.js
tests/test-utils.js
tsconfig.json