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

101
Visualizações
Node.JS scaling with web-hooks and web sockets

I am trying to create a service that receives a web-hook response from an external service (say, Azure). This web-hook has a unique identifier in the body. On receiving the web-hook, the service retrieves the web-socket instance that corresponds to this unique identifier from memory and passes on the message to the respective web-socket client, and this information is in turn displayed in the frontend application to the user.

This approach works quite well with a single node instance running, but when we fire up multiple instances of this node server and add a load balancer, the web-socket connections are distributed across the instances. This leads to a problem where now the load balancer does not know which instance the web-hook needs to be sent to (since it does not know which instance is connected to the target client web-socket).

Are there any recommendations or advices to solve this issue?

about 4 years ago · Juan Pablo Isaza
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