Skip to content
Spring Boot Webflux + AWS DynamoDB integration example
Java
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src Readme updated Dec 25, 2019
.gitignore Initialize Dec 23, 2019
README.md Update README tutorial link Dec 25, 2019
build.gradle Add AWS DynamoDB Gradle dependency Dec 23, 2019
gradlew Initialize Dec 23, 2019
gradlew.bat
settings.gradle

README.md

Spring Boot Webflux + AWS DynamoDB example

A reference implementation for Spring Boot Webflux integration with AWS DynamoDB using AWS Async Client.

Technologies

  1. Java 11
  2. Spring Boot 2.2.2
  3. Gradle 6.0.1
  4. AWS SDK 2.10.40

Running AWS DynamoDB locally without Docker

Follow the steps at https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html

  1. Download the AWS DynamoDB Local JAR from above link and unzip it

  2. Run the local dynamodb jar

    java -Djava.library.path=./DynamoDBLocal_lib/ 
        -jar DynamoDBLocal.jar
    
  3. Create customer table in dynamodb.

    aws dynamodb create-table 
     	--table-name customers 
     	--attribute-definitions AttributeName=customerId,AttributeType=S 
     	--key-schema AttributeName=customerId,KeyType=HASH 
     	--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 
     	--endpoint-url http://localhost:8000
    
  4. Verify the table is created.

     aws dynamodb list-tables 
       	--endpoint-url http://localhost:8000
    

    Output:

    {
          "TableNames": [
              "customers"
          ]
    }
    

Build and run

./gradlew bootRun

Tutorial

Spring Boot Webflux DynamoDB Tutorial

You can’t perform that action at this time.