Filtering GraphQL responses with AWS AppSync subscriptions

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Configuring AWS AppSync API subscriptions
lock
Configuring enhanced subscription filters in AWS AppSync

Ready for the real environment experience?

DifficultyBeginner
Time Limit1h
Students8
Ratings
5/5
starstarstarstarstar

Description

AWS AppSync subscriptions give developers the ability to create real-time experiences by subscribing clients to a WebSocket connection. In this case, a WebSocket connection is a two-way, interactive communication session between a client and the AppSync API. AppSync subscriptions are coupled with mutations, which means clients can receive updates on transformed data in real-time. In addition to the WebSocket connection, filters can be applied at the subscription level, or centrally in the AppSync resolvers.

In this lab, you will configure subscriptions on an AWS AppSync API and apply different subscription filters to provide more control over what data the clients will receive.

Learning objectives

Upon completion of this beginner-level lab, you will be able to:

  • Define AWS AppSync subscriptions on mutations defined in GraphQL API
  • Configure argument-based and enhanced subscription filters for AppSync clients

Intended audiences

  • Candidates for the AWS Certified Developer - Associate Certification
  • Cloud Architects
  • Software Engineers
  • Serverless Developers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • AWS AppSync
  • GraphQL

The following content can be used to fulfill the prerequisite:

Environment before
PREVIEW
arrow_forward
Environment after
PREVIEW
About the Author
Students22969
Labs74
Learning paths3

Jun is a Cloud Labs Developer with previous experience as a Software Engineer and Cloud Developer. He holds the AWS Certified Solutions Architect and DevOps Engineer Professional certifications. He also holds the AWS Certified Solutions Architect, Developer, and SysOps Administrator Associate certifications. 

Jun is focused on giving back to the growing cloud community by sharing his knowledge and experience with students and creating engaging content.