Skip to content

jjeanjacques10/spring-dynamodb-single-table-design

Repository files navigation

Single Table Design + Spring Boot



Report Bug · Request Feature

Jean Jacques Barros Repository size GitHub last commit License GitHub Pull Requests Stargazers

Demo project for Spring Boot + DynamoDB Single Table Design

Tecnologies

  • Java 17
  • Spring Boot
  • DynamoDb

Libs

Table

Access tb_comics in ./environment/dynamodb/tables.json

Get Started

Create Table in DynamoDb simulator using Localstack.

docker-compose up -d --build

Request Examples

curl --location --request GET 'http://localhost:8080/character/profile/greenlantern'

Postman Collection: Comics.postman_collection.json

Notes

  • You can't use begin_with with PartitionKey, you can only use on the SortKey.
  • Primary keys in DynamoDB can be either simple or composite.
    • Simple primary keys are consist of a partition key and no sort key.
    • Composite primary keys have both a partition key and a sort key.

Article

References


Developed by Jean Jacques Barros

About

Demo project for Spring Boot + DynamoDB Single Table Design

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published