Application load balancer blocks websocket connections?

0

I made a websocket server on fargate, but I have an connection issue with application load balancer. The server works fine without ALB (with direct access to the IP of the fargate task). But when I access via ALB, it blocks the websocket connection. I enabled the stickiness of the target group. How can we use websocket with ALB?

nemy
已提問 2 年前檢視次數 986 次
1 個回答
0

Check that the client can reach the ALB and that the ALB's security group is configured in your fargate backend.

profile pictureAWS
專家
Uri
已回答 2 年前
  • The security group of the ALB and the service using the ALB is the same one of the fargate service without ALB. What is strange is that the connectivity depends on the client. If I test with wscat, I can connect to the fargate service with ALB. However, if I use other client (for example, minecraft), I cannot connect to it. Of course, I can connect with minecraft to the fargate service without ALB. What is wrong with the ALB?

  • Maybe there is something not standard with the minecraft websocket implementation?

  • But the only difference is ALB. Why ALB does not behave the same as the direct connection? The implementation of the websocket application must take care of the difference?

  • Anyone has any ideas?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南