Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

165
Visualizações
Is Nonblocking IO in Project Reactor really nonblocking?

I have created the diagram below. I am just not able to understand that how threads are not blocked in case of Spring Webflux/Project Reactor.

In the below image, request came to my Netty server and one of the threads (reactor-http-nio-1) was assigned to the request, it passed on the flow and then became available for next work.

After sometime, response came and was assigned to Thread2 (reactor-http-nio-2). It was returned to the client.

But there has to be something, right, which should wait for the response, (or be in blocking state), or something that wakes up when response is received and it knows it have to assign a thread to the response and then thread returns response to their respective client who made that request, to prevent interleaving.

Is my understanding correct that blocking is still involved, but we have just offloaded the process of blocking to some other thread (internal maybe). Or is the system made capable enough to go in dormant state after passing on the request and waking back up only when response arrives. If latter is the case, how does this mechanism work?

This question may be too broad, but some resource or explanation will be really helpful for clarification.

enter image description here

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda