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.

已提问 2 年前730 查看次数
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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则