AppSync subscription stopped working after creating the 6th DynamoDB item

0

For some unknown reason, when there are 6+ items in a DynamoDB table, the createItem() subscription doesn't work, even when I was trying it in AWS AppSync console. No response at all after invoking createItem() through code, but the item gets created in DynamoDB though.

Is there a limit to the number of items in DynamoDB to subscriptions?

Edited by: PaulLTC on Jul 28, 2021 10:24 AM

Edited by: PaulLTC on Jul 28, 2021 10:25 AM

PaulLTC
질문됨 3년 전517회 조회
1개 답변
0

The solution to this is to create my own Custom query and subscription instead of the generated ones, and only include the ones I want in the payload.
The generated query and subscription have ~2.9k lines of code, and with hours of testing in AppSync console, I discovered that it probably exceeded the payload size (240KB over WebSockets and 120KB MQTT over WebSockets).
https://docs.aws.amazon.com/general/latest/gr/appsync.html

It is not too friendly that not even an error is thrown when the accumulated payload size is exceeded.

PaulLTC
답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠