Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.5 KB

example_cross_ApiGatewayWebsocketChat_section.md

File metadata and controls

25 lines (18 loc) · 1.5 KB

Create a websocket chat application with API Gateway

The following code example shows how to create a chat application that is served by a websocket API built on Amazon API Gateway.

Note
The source code for these examples is in the AWS Code Examples GitHub repository. Have feedback on a code example? Create an Issue in the code examples repo.


[ Python ]

SDK for Python (Boto3)
Shows how to use the AWS SDK for Python (Boto3) with Amazon API Gateway V2 to create a websocket API that integrates with AWS Lambda and Amazon DynamoDB.

  • Create a websocket API served by API Gateway.
  • Define a Lambda handler that stores connections in DynamoDB and posts messages to other chat participants.
  • Connect to the websocket chat application and send messages with the Websockets package. For complete source code and instructions on how to set up and run, see the full example on GitHub.

Services used in this example

  • API Gateway
  • DynamoDB
  • Lambda

For a complete list of AWS SDK developer guides and code examples, see Using Lambda with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.