Managing Real-Time Data with AWS AppSync Subscriptions

Managing Real-Time Data with AWS AppSync Subscriptions
Managing Real-Time Data with AWS AppSync Subscriptions

CLOUD LABS



Managing Real-Time Data with AWS AppSync Subscriptions

In this Cloud Lab, you will use AWS AppSync to create a real-time GraphQL API with the Pub/Sub messaging model and use its real-time WebSocket connection in an application.

8 Tasks

intermediate

1hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

Thorough understanding of core concepts related to AWS AppSync
Hands-on experience creating a real-time GraphQL API
The ability to work with APIs using the Pub/Sub messaging model
Hands-on experience integrating a real-time GraphQL API with a Flutter application

Technologies
DynamoDB logoDynamoDB
AppSync
GraphQL logoGraphQL
Cloud Lab Overview

AWS AppSync facilitates the creation and handling of serverless GraphQL and Pub/Sub APIs. GraphQL APIs pull data from multiple sources using a unified endpoint, while Pub/Sub APIs help share data in real time using WebSocket connections without servers.

In this Cloud Lab, you’ll create the real-time GraphQL API with a Pub/Sub messaging model and use the DynamoDB table as the data source. You’ll execute the GraphQL mutation and query in the editor. Using subscriptions and mutations, you’ll test the real-time API in the GraphQL query editor. Finally, you’ll integrate the GraphQL API into a functional Flutter chat application.

By the end of this Cloud Lab, you’ll have hands-on experience in managing real-time GraphQL APIs using AWS AppSync and connecting them to front-end applications. The following is the high-level architecture diagram of the infrastructure you’ll create in this Cloud Lab:

Architecture diagram
Architecture diagram
Cloud Lab Tasks
1.Introduction
Getting Started
2.AppSync API Using Wizard
Create a Real-Time API
Explore GraphQL Mutation and Query
3.Build a Chat Application
Create a Blank API
Edit the Schema
Putting It All Together
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Before you start...

Try these optional labs before starting this lab.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Hear what others have to say
Join 1.4 million developers working at companies like