Building a WebSocket-Based Chat Application Using API Gateway

Building a WebSocket-Based Chat Application Using API Gateway
Building a WebSocket-Based Chat Application Using API Gateway

CLOUD LABS

Building a WebSocket-Based Chat Application Using API Gateway

Create a simple chat application using AWS's API Gateway, Lambda, and DynamoDB services.

8 Tasks

beginner

1hr 30m

Certificate of Completion

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

Learning Objectives

An understanding of WebSocket APIs and their use cases
Hands-on experience creating WebSocket-based applications on AWS
The ability to manage DynamoDB databases using Lambda functions

Technologies
Lambda logoLambda
IAM logoIAM
API Gateway logoAPI Gateway
DynamoDB logoDynamoDB
Cloud Lab Overview

API Gateway is an AWS service through which we can create, manage, and deploy different types of APIs, including HTTP, REST, and WebSocket.

In this Cloud Lab, you’ll learn to create a simple multiuser chat application using API Gateway, Lambda, and DynamoDB. You’ll first create a DynamoDB table to serve as our database. Then, you’ll create a Lambda function that will contain the core logic of our application. Finally, you’ll create and deploy a WebSocket API so users can communicate with the server.

By the end of this Cloud Lab, you’ll have hands-on experience developing and managing WebSocket APIs on API Gateway.

The following is the high-level architecture diagram of the infrastructure that we will create in this Cloud Lab:

Cloud Lab Tasks
1.Introduction
Getting Started
2.Lambda and DynamoDB
Create a DynamoDB Table
Create an Execution Role
Create a Lambda Function
3.Putting It All Together
Create a WebSocket API
Test the Application
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.

Relevant Courses

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

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image