Skip to content

A simple project which showcases AWS Java SDK v2's capability for Handling DynamoDB CRUD operations

Notifications You must be signed in to change notification settings

tahniat-ashraf/aws-sdk-java-v2-dynamoDB-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-sdk-java-v2-dynamoDB-poc

Based On:

  1. AWS Developer guide for Java SDK version 2
  2. AWS DOC SDK Examples - DynamoDB

Pre-Requisite:

  1. Docker installed
  2. Little bit of prior knowledge of how docker works
  3. Locally running DynamoDB

Usage:

If you are running Intellij or any other IDEs, pass these as Program arguments from Run/ Debug Configurations.
1. CreateTable : HelloWorld (create new table HelloWorld with a simple primary key: "Name")
2. PutItem : HelloWorld Tahniat age=31 (creates new entry in the HelloWorld table with pk name=Tahniat & age=31)
3. GetItem : HelloWorld Tahniat (retrieves the row from HelloWorld table having pk name=Tahniat)
4. DeleteItem : HelloWorld Tahniat (deletes a row from HelloWorld table having pk name=Tahniat)
5. Query : HelloWorld Name Tahniat (queries on a partition key (pk/gsi). Here it queries on table HelloWorld over the pk name where name is Tahniat)

Assuming you've got dynamoDB running at your port 8000 (pre-requisite), go to http://localhost:8000/ to see the changes live!

About

A simple project which showcases AWS Java SDK v2's capability for Handling DynamoDB CRUD operations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages