Create a messenger application with Step Functions - Amazon DynamoDB
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Create a messenger application with Step Functions

The following code example shows how to create an Amazon Step Functions messenger application that retrieves message records from a database table.

Python
SDK for Python (Boto3)

Shows how to use the Amazon SDK for Python (Boto3) with Amazon Step Functions to create a messenger application that retrieves message records from an Amazon DynamoDB table and sends them with Amazon Simple Queue Service (Amazon SQS). The state machine integrates with an Amazon Lambda function to scan the database for unsent messages.

  • Create a state machine that retrieves and updates message records from an Amazon DynamoDB table.

  • Update the state machine definition to also send messages to Amazon Simple Queue Service (Amazon SQS).

  • Start and stop state machine runs.

  • Connect to Lambda, DynamoDB, and Amazon SQS from a state machine by using service integrations.

For complete source code and instructions on how to set up and run, see the full example on GitHub.

Services used in this example

  • DynamoDB

  • Lambda

  • Amazon SQS

  • Step Functions

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