extism / js-sdk

Run Extism WebAssembly plug-ins / functions from JavaScript (supports major browsers, Node.js, Deno, Bun, and Cloudflare Workers)
https://extism.github.io/js-sdk/
BSD 3-Clause "New" or "Revised" License
58 stars 9 forks source link

Implement Thread Pooling #31

Open chrisdickinson opened 9 months ago

chrisdickinson commented 9 months ago

Background plugins are not pooled at the time of writing. Because calls into a plugin "consume" the backing thread for the duration of execution, many use cases will require a pooled approach. We'll want to make sure we integrate well with AsyncResource in order to integrate well with o11y instrumentation. Node has examples for this; we'll want to see if other platform targets provide polyfills or alternatives.

neuronicnobody commented 9 months ago

Postpone until after 1.0 and broaden scope to all supported Extism SDKs