aws / aws/aws-appsync-community

Event Source Subscriptions

Open
#352 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
507
Forks
37
PR merge metrics
No merged PRs in 30d

Description

The limitation of subscriptions being tied to mutations is mind boggling to me - I would say the vast majority of meaningful applications are not simple crud behind a graphql api, and that's what AppSync's subscriptions are currently designed for.

I propose generic event sources for subscriptions instead of tying them to mutations. An EventBridge event bus is the most obvious event source as a starting place.

Have a subscription lambda resolver that is triggered with the event bridge event and the subscription arguments as inputs on every event. That resolver does whatever is necessary to return the data shape specified in the schema.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the AWS AppSync subscription model and the EventBridge event flow described in the issue. Clarify the subscription Lambda resolver inputs and expected schema-shaped output, then define the design and acceptance criteria for generic event sources.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, graphql
Domain
api, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.