Home » Search Results for: Dynamo

Search Results for: Dynamo

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 »

Map DynamoDB Items to Objects using DynamoDB mapper

java-interview-questions-answers

Previously we created DynamoDB Tables using Java. For various databases such sql databases or nosql there is a set of tools that help to access, persist, and manage data between objects/classes and the underlying database. For example for SQL databases we use JPA, for Cassandra we use MappingManager. DynamoDBMapper is a tool that enables you to access your data in ...

Read More »

Update DynamoDB Items with Java

java-interview-questions-answers

On a previous post we proceeded into inserting items to DynamoDB using Java. DynamoDB also supports updating items. We will use the Login table for the update examples. When issuing an update you must specify the primary key of the item you want to update. public void updateName(String email,String fullName) { Map<String,AttributeValue> attributeValues = new HashMap<>(); attributeValues.put("email",new AttributeValue().withS(email)); attributeValues.put("fullname",new AttributeValue().withS(fullName)); ...

Read More »

Scan DynamoDB Items with Java

java-interview-questions-answers

On previous posts we covered how to query a DynamoDB database Query DynamoDB Part 1 Query DynamoDB Part2. 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 scan offers is ...

Read More »

Query DynamoDB Items with Java Part 2

java-interview-questions-answers

On a previous post we had the chance to issue some basic DynamoDB query actions. However apart from the basic actions the DynamoDB api provides us with some extra functionality. Projections is a feature that has a select-like functionality. You choose which attributes from a DynamoDB Item shall be fetched. Keep in mind that using projection will not have any ...

Read More »

Query DynamoDB Items with Java

java-logo

On a previous post we proceeded on inserting data on a DynamoDB database. On this tutorial we will issue some basic queries against our DynamoDB tables. The main rule is that every query has to use the hash key. The simplest form of query is using the hash key only. We will query the Users table on this one. There ...

Read More »

Insert Items to DynamoDB Tables using Java

java-interview-questions-answers

On a previous article we learned how to create DynamoDB Tables using Java. Next step is to insert items to the DynamoDB Tables previously created. Keep in mind that for the insert action the most basic step is to specify the the primary key. For the table users the primary key is the attribute email. You can add as many attributes as ...

Read More »

Create DynamoDB tables with Java

java-interview-questions-answers

On this post we will create Tables on a DynamoDB Database the java way. Before getting started we need to have local dynamodb installed since we want to avoid any costs for dynamodb usage. There was a previous post on local dynamodb. In case you use docker you can find a local dynamodb image or you can create one on you ...

Read More »

Amazon DynamoDB

java-interview-questions-answers

Introduction Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. Amazon DynamoDB automatically spreads the data and traffic for the table over a sufficient number of servers to handle the request capacity specified by the customer and the amount of data stored, while maintaining consistent and fast performance. All data items ...

Read More »

Managing Secrets with Vault

spring-interview-questions-answers

How do you store Secrets? Passwords, API keys, secure Tokens, and confidential data fall into the category of secrets. That’s data which shouldn’t lie around. It mustn’t be available in plaintext in easy to guess locations. In fact, it must not be stored in plaintext in any location. Sensitive data can be encrypted by using the Spring Cloud Config Server ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns