Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

24
  • This probably isn't the answer you're looking for, but websockets have a bad rep with ALB, have you tried NLB? Enabling and looking at ALB logs may help as well. NGINX logs on the instance as well. Commented Nov 6, 2019 at 2:31
  • I don't understand how using an NLB would work though? I mean a CLB would, but I need the extra capabilities an ALB provides... NGINX logs nothing out for this and access logs look fine? I haven't looked at the ALB logs though, I didn't set that up Commented Nov 6, 2019 at 17:36
  • Can you explain why CLB would? What extra capabilities of ALB do you need? Try and get some info from ALB. In general, NLB is more "stable" in terms of scaling events and traffic persistence than ALB. aws.amazon.com/blogs/aws/… Commented Nov 7, 2019 at 0:18
  • Because with CLB I would have support for TCP which I can configure to route my HTTP requests (from socket.io) through. Or at least that's what I've read. Also, I need the backend auth and the path based routing for future features, I don't think its necessary now, but I would like to setup everything through the ALB now if I can so I don't have to do extra work down the road. Commented Nov 7, 2019 at 0:49
  • Ah, I see. Well I think getting ALB logs and then going from there would be good. I've heard of people having massive issues using websockets through ALB because ALB will kill those connections. Setting the timeout may help as ALB will close connections if data isn't sent after a specified period of time. Have you seen this post? stackoverflow.com/questions/41381444/… Commented Nov 7, 2019 at 1:06