API Gateway Websocket - payload quotas

0

Hello folks, hope all of you are well!

I'm here in order to ask if someone know differences between

  • WebSocket frame size
  • Message Payload Size

I've found these field on this web page https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html#apigateway-account-level-limits-table: here is reported the AWS WebSocket quotas and limits, but is not clear to me what is the difference between " WebSocket frame size" and "Message Payload Size". Could you provide some examples?

Cheers.

1回答
2

Frames are defined by the WebSocket RFC. This is the way in which clients and servers exchange data. When you send a message it is encoded in a frame. If the message is > 32KB, it must be encoded in multiple frames.

profile pictureAWS
エキスパート
Uri
回答済み 2年前
  • Thanks for RFC reference. And how AWS treat frames >32KB? I found in AWS API Gateway quotas that max payload is 128Kbytes. I create a test web socket gateway and I send over it a packet composed exactly of 128Kbytes, and the communication was ok.

    So, AWS provide and integrated logic in order to handle multiple frame? Logic used in both direction (in and out from gateway)?

  • If I am not mistaken, the RFC covers that as well, i.e., how to break a large message to multiple frames.

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

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

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