Костя Третяк
1 min readJan 28, 2020

--

Hi Anna. Please tell me if it makes sense to use *worker_threads* for the node web server? The idea is as follows:
1. The main process is responsible only for I/O-intensive work.
2. Worker Thread starts immediately after the main process is initialized, and never ends waiting for a task with CPU-intensive JavaScript operations. (By the way, Worker Thread can exist without work, right?)

I want to redirect to Worker Thread any size of HTTP requests with POST, PATCH, PUT methods or encryption operations, etc.

Will I be able to use Worker Thread this way, and can many tasks be queued for a single Worker?

See also my question on https://stackoverflow.com/q/59567232/1716560

--

--

No responses yet