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

152
Visualizações
Heroku server instances, session affinity and socket.io

I have a functioning webApp that uses socket.io to communicate to a node.js server and ultimately to other clients. When moving into large scale testing, if Heroku initiates a new dyno to run my webApp, how can socket.io connect to the new instances and if I have local data stored in one dyno, can another dyno access the same data?

Example: When a client connects to the server a new global object is created that stores information as key/value pairs. If the global object already exists, when a new client connects they are able to access the global object. If a client connects to a dyno different than the dyno where the original object was created can they access it?

I have read through Heroku documentation including the section on 'Session Affinity' but I'm still confused/uncertain as to how it works.

Thanks All

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