Home » Search Results for: Dynamo

Search Results for: Dynamo

Amazon DynamoDB Tutorial – The ULTIMATE Guide

EDITORIAL NOTE: Amazon DynamoDB is a fully managed proprietary NoSQL database services that is offered by Amazon.com as part of the Amazon Web Services portfolio. DynamoDB exposes a similar data model and derives its name from Dynamo, but has a different underlying implementation. Dynamo had a multi-master design requiring the client to resolve version conflicts and DynamoDB uses synchronous replication ...

Read More »

Modeling has_many Relationships with DynamoDB

Recently our team had the requirement of storing data coming from sensors, and we chose DynamoDB for its ability to handle a massive amount of data efficiently. As a fully managed NoSQL database service with the promise of high-performance and scalability, DynamoDB was a perfect choice. Coming from a strong SQL background and being a fan of using ORM such ...

Read More »

AWS Lambda/Java, DynamoDB and Api gateway integration

Introduction In this post I am going through a full (Java) example of integrating AWS Lambda, DynamoDb and Api Gateway to create a function and expose this function as a HTTP resource for other parties to consume. Before we dive into the details I will give a brief overview of the AWS services used in this example (as taken from ...

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 »

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 »