Building a Chat Application Using Lambda Function and API Gateway
API Gateway is an AWS service through which you 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. This multiuser chat application cracks a joke when a user types the /joke command in the chat. You’ll first create a DynamoDB table to serve as our database. Next, 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 you’ll create in this Cloud Lab: