What happens when a single request takes a long time with these non-blocking I/O servers?

前端 未结 6 1055
北恋
北恋 2021-01-12 00:59

With Node.js, or eventlet or any other non-blocking server, what happens when a given request takes long, does it then block all other requests?

Example, a request c

6条回答
  •  迷失自我
    2021-01-12 01:09

    This is basically true, at least if you don't use the new cluster feature that balances incoming connections between multiple, automatically spawned workers. However, if you do use it, most other requests will still complete quickly.

    Edit: Workers are processes.

提交回复
热议问题