poolifier-web-worker

Fast and small web worker pool

MIT License

Downloads
485
Stars
4
Committers
14

Bot releases are hidden (Show)

poolifier-web-worker - v0.4.9 Latest Release

Published by jerome-benoit 5 months ago

What's Changed

Changed

  • Optimize circular buffer implementation to store task execution measurements.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.4.8...v0.4.9

poolifier-web-worker - v0.4.8

Published by jerome-benoit 5 months ago

What's Changed

Changed

  • Switch to optimized circular buffer implementation to store task execution
    measurements.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.4.7...v0.4.8

poolifier-web-worker - v0.4.7

Published by jerome-benoit 5 months ago

What's Changed

Changed

  • Bump version to deal with npm package publication issue.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.4.6...v0.4.7

poolifier-web-worker - v0.4.6

Published by jerome-benoit 5 months ago

What's Changed

Fixed

  • Ensure tasks stealing dynamic worker node is not destroyed on inactivity.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.4.5...v0.4.6

poolifier-web-worker - v0.4.5

Published by jerome-benoit 5 months ago

What's Changed

Fixed

  • Fix default task function worker choice strategy and priority handling.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.4.4...v0.4.5

poolifier-web-worker - v0.4.4

Published by jerome-benoit 5 months ago

What's Changed

Fixed

  • Avoid queued tasks redistribution on the errored worker node.
  • Fix pools' addTaskFunction() type definition.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.4.3...v0.4.4

poolifier-web-worker - v0.4.3

Published by jerome-benoit 5 months ago

What's Changed

Fixed

  • Disable tasksStealingOnBackPressure by default until performance issues
    under heavy load are sorted out.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.4.2...v0.4.3

poolifier-web-worker - v0.4.2

Published by jerome-benoit 5 months ago

What's Changed

Changed

  • Optimize task(s) stealing by dequeuing task(s) from the last prioritized
    bucket.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.4.1...v0.4.2

poolifier-web-worker - v0.4.1

Published by jerome-benoit 5 months ago

What's Changed

Fixed

  • Fix worker nodes priority queue k-buckets initialization.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.4.0...v0.4.1

poolifier-web-worker - v0.4.0

Published by jerome-benoit 6 months ago

What's Changed

Changed

  • Support per task function(s) priority and worker choice strategy definition
    via a task function object:
    { taskFunction: (data?: Data) => Response | Promise<Response>, priority?: number, strategy?: WorkerChoiceStrategy }.
  • Add priority queue based tasks queueing. One priority queue is divided into
    prioritized buckets to avoid queued tasks starvation under load.
  • BREAKING CHANGE: listTaskFunctionNames() to listTaskFunctionsProperties()
    in pool and worker API returning registered task functions properties.
  • BREAKING CHANGE: strategy field in pool information renamed to
    defaultStrategy.

Fixed

  • Ensure dynamic worker node are initialized with sensible worker node usage
    default values to avoid worker choice strategies biased decisions.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.3.17...v0.4.0

poolifier-web-worker - v0.3.17

Published by jerome-benoit 6 months ago

What's Changed

Fixed

  • Ensure worker choice strategy options changes at runtime are propagated to
    poolifier workers.
  • Do not reset worker node usage statistics at worker choice strategy runtime
    change.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.3.16...v0.3.17

poolifier-web-worker - v0.3.16

Published by jerome-benoit 7 months ago

What's Changed

Fixed

  • Fix bundling.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.3.15...v0.3.16

poolifier-web-worker - v0.3.15

Published by jerome-benoit 7 months ago

What's Changed

Fixed

  • Fix possible race condition at worker node recreation on worker node error
    and exit events.

Changed

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.3.14...v0.3.15

poolifier-web-worker - v0.3.14

Published by jerome-benoit 7 months ago

What's Changed

Changed

  • Add errorEventHandler handler support to pool options listening for error
    event on each worker.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.3.13...v0.3.14

poolifier-web-worker - v0.3.13

Published by jerome-benoit 7 months ago

What's Changed

Fixed

  • Ensure the minimum number of workers on a started pool is guaranteed.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.3.12...v0.3.13

poolifier-web-worker - v0.3.12

Published by jerome-benoit 7 months ago

What's Changed

Changed

  • Add mitata and Bun support to internal benchmark.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.3.11...v0.3.12

poolifier-web-worker - v0.3.11

Published by jerome-benoit 7 months ago

What's Changed

Fixed

  • Fix conditional imports promise resolution.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.3.10...v0.3.11

poolifier-web-worker - v0.3.10

Published by jerome-benoit 7 months ago

What's Changed

Fixed

  • Fix browser compatibility: ensure node:... imports are conditionals.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v.0.3.9...v0.3.10

poolifier-web-worker - v.0.3.9

Published by jerome-benoit 7 months ago

What's Changed

Fixed

  • Fix worker initialization with Bun.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.3.8...v.0.3.9

poolifier-web-worker - v0.3.8

Published by jerome-benoit 7 months ago

What's Changed

Fixed

  • Fix publishing on JSR.

Full Changelog: https://github.com/poolifier/poolifier-web-worker/compare/v0.3.7...v0.3.8

Package Rankings
Top 40.8% on Npmjs.org
Badges
Extracted from project README
GitHub commit activity (master) CI Workflow Code Coverage Quality Gate Status Npm Version JSR Version neostandard Javascript Code Style Discord Open Collective PRs Welcome No Dependencies Bugs Code Smells Duplicated Lines (%) Maintainability Rating Reliability Rating Technical Debt Security Rating Vulnerabilities