Two publication models, managed connections
How GraphQL subscriptions and Events channels deliver authorized updates over managed WebSocket connections, including filtering, fan-out constraints, and reconnect behavior. · advanced
AppSync GraphQL subscriptions deliver results from linked GraphQL mutations. AppSync Events delivers publications to channel subscribers through a separate Event API, without a GraphQL schema or mutation. Both manage WebSocket connections and routing; neither makes a live connection a durable event log.
The diagram shows both notification paths and a GraphQL state-recovery path. Clients use Cognito user-pool JWTs; the Lambda publisher uses IAM authorization. Arrows show application operations and notification delivery, not every protocol response. The versioned DynamoDB items are application state, not a subscription backlog.
These roles are specific: AppSync owns GraphQL subscription execution, Cognito issues the user-pool JWTs, and a DynamoDB table stores PK/SK items. An API Gateway WebSocket API or an IoT Core MQTT broker does not execute AppSync GraphQL subscriptions; IAM Identity Center and STS do not issue Cognito user-pool JWTs.
1 / 7 Cognito is the identity source in this design.
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.