Home » Tag Archives: DynamoDB

Tag Archives: DynamoDB

DynamoDB explained – Part 1

DynamoDB has been a bit of a buzzword recently, so after years working on relational and document databases I decided to give it a try. A lot of the assumptions I had made about DynamoDb before working with it turned out to be false, so I am hoping that this series of blog posts will help you decide if DynamoDB ...

Read More »

Working with the DynamoDB

Part 0 – The application. We have this application called Tasqui that can be found in THIS repository. It is another todo list for the command line. I know, very creative. Right now this application has 3 main actions add, tasks, remove. 01 02 03 04 05 06 07 08 09 10 $  tasqui Usage: tasqui [OPTIONS] COMMAND [ARGS]...   ...

Read More »

Unit testing DynamoDB applications using JUnit5

In a previous post I had described the new AWS SDK for Java 2 which provides non-blocking IO support for Java clients calling different AWS services. In this post I will go over an approach that I have followed to unit test the AWS DynamoDB calls. There are a few ways to spin up a local version of DynamoDB – 1. ...

Read More »

Reactive Spring Webflux with AWS DynamoDB

spring-interview-questions-answers

AWS has released AWS SDK for Java version 2, the SDK now supports non-blocking IO for the API calls of different AWS services. In this post I will be exploring using the DynamoDB API’s of the AWS SDK 2.x and using Spring Webflux stack to expose a reactive endpoint – this way the application is reactive end to end and presumably ...

Read More »

AWS: Some Tips for Avoiding Those “Holy Bill” Moments

java-interview-questions-answers

Cloud is awesome: almost-100% availability, near-zero maintenance, pay-as-you-go, and above all, infinitely scalable. But the last two can easily bite you back, turning that awesomeness into a billing nightmare. And occasionally you see stories like: Within a week we accumulated a bill close to $10K. And here I unveil a few tips that we learned from our not-so-smooth journey of ...

Read More »

Scan DynamoDB Items with DynamoDBMapper

java-interview-questions-answers

Previously we covered how to query a DynamoDB database either using DynamoDBMapper or the low level java api. Apart from issuing queries, DynamoDB also offers Scan functionality. What scan does, is fetching all the Items you might have on your DynamoDB Table. Therefore scan does not require any rules based on our partition key or your global/local secondary indexes. What ...

Read More »

Query DynamoDB Items with DynamoDBMapper

java-interview-questions-answers

On a previous post we issued queries on a DynamoDB database using the low level java api. Querying using the DynamoDBMapper is pretty easy. Issue a query using a hash key is as simple as it gets. The best candidate for a query like this would be the Users table by searching using the email hash key. public User getUser(String ...

Read More »

Insert DynamoDB Items with DynamoDBMapper

java-interview-questions-answers

In a previous post we used DynamoDBMapper in order to map DynamoDB Tables into Java objects. When it comes to insert, our actions are pretty much the same but with a more convenient way. In order to insert an item all you have to do is to persist an object using the object mapper In our case, we will create ...

Read More »