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?

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?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ