-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flutter amplify dataStore sync failure with more than 42 tables #4296
Comments
@AzharRaeisi Thanks for reporting this issue. Which Flutter platforms are you testing on? |
@haverchuck Thanks for your response. Tested on IOS and Android |
@AzharRaeisi I think this issue may be due to the fact that AppSync establishes a limit of 100 active subscriptions per client. It establishes 3 for each model, so we would typically expect this issue to occur if you have more than 33 models (although in this case you seem to have more - perhaps some of your tables are not backing models?). This is a soft limit and can be adjusted with a limit increase request to AppSync. More information can be found here, including a link for increasing the limit. |
@haverchuck you are right I do have 33 models with more then 13 enums. I have increased the limit to 300, hope this will fix the problem. Thank you. Another question will it cost more? |
@AzharRaeisi I'd encourage you to check out the pricing information for AWS AppSync. It is my understanding that in your situation you could potentially incur more charges because you would be receiving more "Real Time Updates", but this could also happen in other ways (such as an increase in end users) - but I will defer to the pricing guide as the source of truth here. |
@haverchuck is it possible to avoid syncing a table entirely and only initiate sync if needed in the future? If not, does it mean that DataStore requires three subscriptions per DynamoDB table? Am I correct? |
Yes, three subscriptions per model. We do have selective sync functionality to limit what actually gets transmitted across the wire, but the subscriptions are still establishe regardless, so this is not a solution currently. We are tracking a feature request to improve this: #1692 If you decide to get a limit increase from AppSync and encounter difficulties, please create an issue. Also, feel free to upvote the feature request above! |
@haverchuck, appreciate your generous support. |
Description
I am encountering a critical issue with Flutter Amplify DataStore sync when the number of tables exceeds 42. The sync process fails to operate entirely, and I am experiencing a complete breakdown in functionality. Datastore does not emit any sync event. There is just networkStatus event in hub as can be seen in the screenshot.
Amplify Datastore works fine if there are lower table numbers in dynamodb.
Categories
Steps to Reproduce
No response
Screenshots
Platforms
Flutter Version
3.13.9
Amplify Flutter Version
amplify_flutter: ^1.4.1 amplify_auth_cognito: ^1.4.1 amplify_api: ^1.4.0 amplify_datastore: ^1.4.1 amplify_storage_s3: ^1.4.0
Deployment Method
Amplify CLI
Schema
No response
The text was updated successfully, but these errors were encountered: