1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
API Gateway supports web sockets only from the client to the gateway itself. From the gateway to the backend (ECS behind NLB in your case), API gateway sends regular HTTP requests, i.e., for every messages API Gateway receives on the socket, it sends an HTTP request to the backend with the message in the payload. When the backend wants to send a message to the client, it sends an HTTP request to the @connections end point and ask the gateway to send the message to the client.
If you want a websocket all the way to your backend, you can't use API Gateway and you need to expose your NLB/ALB.
関連するコンテンツ
- AWS公式更新しました 10ヶ月前
- AWS公式更新しました 3年前
- AWS公式更新しました 2年前