# Worker Pooling -- 5x performance for CPU-intensive JavaScript workloads

DevFeed: [Worker Pooling -- 5x performance for CPU-intensive JavaScript workloads](<https://devfeed.tech/articles/worker-pooling-5x-performance-for-cpu-intensive-javascript-workloads-17862.md>)

Original publisher: [Read original article](<https://encore.dev/blog/worker-pooling>)

Author: André Eriksson

Published: 2024-12-13T00:00:00Z

Content type: release

Language: en

Sources: [Encore Updates](<https://devfeed.tech/sources/encore-updates.md>)

Topics: [threadpools](<https://devfeed.tech/topics/threadpools.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Node.js](<https://devfeed.tech/topics/node-js.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>)

Tags: [applications](<https://devfeed.tech/tags/applications.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [code](<https://devfeed.tech/tags/code.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [database](<https://devfeed.tech/tags/database.md>), [demo](<https://devfeed.tech/tags/demo.md>), [event-loop](<https://devfeed.tech/tags/event-loop.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [high-performance](<https://devfeed.tech/tags/high-performance.md>), [http](<https://devfeed.tech/tags/http.md>), [http-client](<https://devfeed.tech/tags/http-client.md>), [improvement](<https://devfeed.tech/tags/improvement.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [launch](<https://devfeed.tech/tags/launch.md>), [launch-week](<https://devfeed.tech/tags/launch-week.md>), [performance](<https://devfeed.tech/tags/performance.md>), [worker](<https://devfeed.tech/tags/worker.md>)

## AI overview

Encore.ts Worker Pooling coordinates multiple Node.js worker threads through its multi-threaded Rust runtime to run CPU-intensive JavaScript workloads across multiple event loops. A simple project configuration enables automatic worker creation, request distribution and load balancing, and Pub/Sub message distribution; developers need not manage thread pools or coordination themselves. In tests, real-world applications limited by Node.js single-threaded performance achieved up to 5x improvement over Encore.ts single-threaded mode. The excerpt notes that sharing resources such as database pools, HTTP connections, and observability integrations can be difficult with other multithreading approaches, but cuts off before explaining the comparison or its tradeoffs in detail.

## Source excerpt

Launch Week Day 5