Posts

Showing posts with the label DynamoDB

Creating Spring Boot MVC application with AWS DynamoDB in 10 mins

Image
Building a Spring Boot MVC Web App with DynamoDB for a Game Leaderboard In this article, we’ll walk through the process of building a Spring Boot MVC web application that interacts with an Amazon DynamoDB table to display a game leaderboard. The application will allow users to view top scores for specific games, retrieve scores for individual users, and display all scores for a particular user. We’ll also explore how to use the AWS SDK for Java to interact with DynamoDB. Prerequisites Before diving into the Spring Boot project, ensure the following prerequisites are met: DynamoDB Table Setup : Create a DynamoDB table named leaderboard with the following schema: Partition Key: user_id Sort Key: sk Global Secondary Index (GSI): sk-top_score_index with sk as the partition key and top_score as the sort key. AWS CLI Configuration : Configure the AWS CLI to connect to your AWS account. This setup is necessary...

AWS DynamoDB Scan and Query (with hands-on demo)

Image
There are two types of read operation in DynamoDB. You can know the difference between them in this video.  Source of the demo code: https://github.com/babysteps-topro/DynamoDBQueryScan.git Prerequisite: Install the AWS CLI: https://youtu.be/pE-Q_4YXlR0 Video explain the table design: https://youtu.be/V0GtrBfY7XM

AWS DynamoDB Table Design in 10 mins

Image
AWS DynamoDB is a serverless, key and value pair NOSQL database. The schema design concept is different from traditional relational database. You can understand the DynamoDB table design within 10 minutes in this video.