Reactive REST API with AWS DynamoDB and Spring WebFlux

Eric Anicet
5 min readMay 29, 2023

In this story, we’re going to implement a reactive REST API using Spring WebFlux and AWS DynamoDB.

· Prerequisites
· Setting Up DynamoDB in AWS Console
· Spring WebFlux API
Creating the Configuration
Creating the Mapping Class
Creating the Repository Classes
Controller class
· Test the REST API:
· Conclusion
· References

Prerequisites

This is the list of all the prerequisites for following this story:

  • Java 17
  • Starter WebFlux 3.1.0
  • Maven 3.6.3
  • An active AWS account.
  • Optionally, LocalStack to run Dynamodb locally
  • Postman or Insomnia

Setting Up DynamoDB in AWS Console

  1. Log in to the AWS Management Console and open the DynamoDB service.
  2. Create Table. Add the table name and the primary key. (For this story we are using all other default settings)

--

--