-
Notifications
You must be signed in to change notification settings - Fork 262
Open
Labels
DocumentationImprovements or fixes to public documentation (docs.amplify.aws, pub.dev, readmes).Improvements or fixes to public documentation (docs.amplify.aws, pub.dev, readmes).GraphQL APIIssues related to the API (GraphQL) CategoryIssues related to the API (GraphQL) Categorypending-close-response-requiredThe issue will be closed if details necessary to reproduce the issue are not provided within 7 days.The issue will be closed if details necessary to reproduce the issue are not provided within 7 days.pending-community-responsePending response from the issue opener or other community membersPending response from the issue opener or other community membersquestionA question about the Amplify Flutter librariesA question about the Amplify Flutter libraries
Description
Description
The Amplify Gen2 documentation fails to clearly explain that custom subscriptions (.for(mutation)) broadcast to ALL subscribers, unlike model-based subscriptions which filter by owner. This leads to unexpected costs and architectural issues in production applications.
Expected Behavior
Documentation should clearly distinguish between:
- Model subscriptions - server-side filtered, targeted delivery
- Custom subscriptions - broadcast to all subscribers, client-side filtering required
Actual Behavior
- No clear documentation about broadcast behavior of custom subscriptions
- Developers assume custom subscriptions work like model subscriptions
- Cost implications are not mentioned
Impact
Financial: For 1M active users, a single custom subscription event costs:
- Model subscription: ~$0.002 (1 user receives notification)
- Custom subscription: ~$2.00 (1M users receive notification)
Difference: 1000x cost increase
Architectural: Developers unknowingly create inefficient real-time systems.
Categories
- Analytics
- API (REST)
- API (GraphQL)
- Auth
- Authenticator
- DataStore
- Notifications (Push)
- Storage
Steps to Reproduce
- Create custom subscription with .for(mutation) (https://docs.amplify.aws/react/build-a-backend/data/custom-business-logic/)
- Have multiple users subscribe
- Trigger mutation
- Observe all subscribers receive notification (not just relevant users)
Screenshots
No response
Platforms
- iOS
- Android
- Web
- macOS
- Windows
- Linux
Flutter Version
3.32.2
Amplify Flutter Version
2.6.3
Deployment Method
Amplify Gen 2
Schema
Metadata
Metadata
Assignees
Labels
DocumentationImprovements or fixes to public documentation (docs.amplify.aws, pub.dev, readmes).Improvements or fixes to public documentation (docs.amplify.aws, pub.dev, readmes).GraphQL APIIssues related to the API (GraphQL) CategoryIssues related to the API (GraphQL) Categorypending-close-response-requiredThe issue will be closed if details necessary to reproduce the issue are not provided within 7 days.The issue will be closed if details necessary to reproduce the issue are not provided within 7 days.pending-community-responsePending response from the issue opener or other community membersPending response from the issue opener or other community membersquestionA question about the Amplify Flutter librariesA question about the Amplify Flutter libraries