Reader small image

You're reading from  DynamoDB Cookbook

Product typeBook
Published inSep 2015
Publisher
ISBN-139781784393755
Edition1st Edition
Concepts
Right arrow
Author (1)
Tanmay Deshpande
Tanmay Deshpande
author image
Tanmay Deshpande

Tanmay Deshpande is a Hadoop and big data evangelist. He currently works with Schlumberger as a Big Data Architect in Pune, India. He has interest in a wide range of technologies, such as Hadoop, Hive, Pig, NoSQL databases, Mahout, Sqoop, Java, cloud computing, and so on. He has vast experience in application development in various domains, such as oil and gas, finance, telecom, manufacturing, security, and retail. He enjoys solving machine-learning problems and spends his time reading anything that he can get his hands on. He has great interest in open source technologies and has been promoting them through his talks. Before Schlumberger, he worked with Symantec, Lumiata, and Infosys. Through his innovative thinking and dynamic leadership, he has successfully completed various projects. He regularly blogs on his website http://hadooptutorials.co.in. You can connect with him on LinkedIn at https://www.linkedin.com/in/deshpandetanmay/. He has also authored Mastering DynamoDB, published in August 2014, DynamoDB Cookbook, published in September 2015, Hadoop Real World Solutions Cookbook-Second Edition, published in March 2016, Hadoop: Data Processing and Modelling, published in August, 2016, and Hadoop Blueprints, published in September 2016, all by Packt Publishing.
Read more about Tanmay Deshpande

Right arrow

Preface

AWS DynamoDB is an excellent example of a production-ready NoSQL database. In recent years, DynamoDB has been able to attract many customers because of its features, such as high-availability, reliability, and infinite scalability. DynamoDB can be easily integrated with massive data crunching tools such as Hadoop/EMR, which is an essential part of this data-driven world, and hence, it is widely accepted. The cost and time efficient design makes DynamoDB stand out differently among its peers. The design of DynamoDB is so neat and clean that it has inspired many NoSQL databases to simply follow it.

This book is a practical, example-oriented guide that starts with simple recipes, such as how to get started with creating a DynamoDB table, and gradually takes you through the advanced level recipes, such as how to create Internet scalable web/mobile applications using DynamoDB as a backend. It explains recipes on how to integrate DynamoDB with other AWS services such as AWS EMR, AWS CloudSearch, AWS Redshift, and many others. It also contains various recipes on how to secure DynamoDB using AWS IAM. It has plenty of recipes that discuss the DynamoDB best practices, which will help you use DynamoDB in the most efficient manner. It is concise with clean topic descriptions, plenty of screenshots, and code samples in order to enhance the clarity and to help you try and test things on your own.

What this book covers

Chapter 1, Taking Your First Steps with DynamoDB, introduces you to the DynamoDB console, AWS CLI, and DynamoDB Local, and you will learn simple CRUD operations on a DynamoDB table. It also covers how to set up your workspace to perform various recipes in the later chapters.

Chapter 2, Operating with DynamoDB Tables, provides you with hands-on recipes that can be performed on DynamoDB tables using the AWS SDK for Java, .NET, and PHP, along with a detailed explanation.

Chapter 3, Manipulating DynamoDB Items, enlightens you with various recipes on DynamoDB and how to manipulate DynamoDB items. Recipes that discuss batch, get, and write operations will help you understand how to handle bulk data in a cost efficient manner.

Chapter 4, Managing DynamoDB Indexes, helps you understand the use of secondary indexes in detail. It gives you ready-to-cook recipes on how to use Global and Local secondary indexes using the AWS SDK for Java, .NET, and PHP.

Chapter 5, Exploring High Level Programming Interfaces for DynamoDB, covers topics, such as object persistence model interfaces provided by the AWS SDK for Java and .NET. A detailed explanation on annotation-driven APIs is also provided in this chapter.

Chapter 6, Securing DynamoDB, introduces you to a rich identity and access model provided by AWS and how to apply that to DynamoDB. Recipes, such as client-side encryption and masking, are helpful to achieve high-level security for data stored in DynamoDB.

Chapter 7, DynamoDB Best Practices, covers various recipes on the cost and performance efficient services used in DynamoDB. Recipes, such as error handling and auto retries, will help you make your application robust. It also highlights the use of a transaction library in order to implement atomic transactions on DynamoDB.

Chapter 8, Integrating DynamoDB with other AWS Services, provides you ready-to-use recipes of how to integrate DynamoDB with various other AWS services, such as AWS Pipeline, EMR, S3, CloudSearch, Redshift, and so on. You will also learn when to integrate with which service.

Chapter 9, Developing Web Applications using DynamoDB, gives you an end-to-end experience on how to create web applications using DynamoDB as a database. At the end of this chapter, you will not only learn how to start, but also how to deploy the application on AWS Elastic Beanstalk.

Chapter 10, Developing Mobile Applications using DynamoDB, discusses how to build an Internet scalable mobile application using DynamoDB as a database. It also helps you understand how to use Asynchronous calls while accessing DynamoDB from Android apps.

What you need for this book

To get started with this book, you should have a laptop/desktop with any OS, such as Windows, UNIX, or Mac. You should have an Internet connection to access DynamoDB. It's also good to have the development IDE, such as Eclipse or Visual Studio.

Who this book is for

This book is intended for those who have a basic understanding of AWS services and want to take their knowledge to the next level by getting their hands dirty with coding recipes in DynamoDB.

Sections

In this book, you will find several headings that appear frequently (Getting ready, How to do it, How it works, There's more, and See also).

To give clear instructions on how to complete a recipe, we use these sections as follows:

Getting ready

This section tells you what to expect in the recipe, and describes how to set up any software or any preliminary settings required for the recipe.

How to do it…

This section contains the steps required to follow the recipe.

How it works…

This section usually consists of a detailed explanation of what happened in the previous section.

There's more…

This section consists of additional information about the recipe in order to make the reader more knowledgeable about the recipe.

See also

This section provides helpful links to other useful information for the recipe.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can include other contexts through the use of the include directive."

A block of code is set as follows:

<dependency>
  <groupId>com.amazonaws</groupId>
  <artifactId>aws-java-sdk</artifactId>
  <version>1.9.30</version>
</dependency>

Any command-line input or output is written as follows:

aws dynamodb query --table-name product --key-conditions file://conditions.json

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Click on the Sign in to the Console button."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail , and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files from your account at http://www.packtpub.com for all the Packt Publishing books you have purchased. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from http://www.packtpub.com/sites/default/files/downloads/36590S_ColorImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
DynamoDB Cookbook
Published in: Sep 2015Publisher: ISBN-13: 9781784393755
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
Tanmay Deshpande

Tanmay Deshpande is a Hadoop and big data evangelist. He currently works with Schlumberger as a Big Data Architect in Pune, India. He has interest in a wide range of technologies, such as Hadoop, Hive, Pig, NoSQL databases, Mahout, Sqoop, Java, cloud computing, and so on. He has vast experience in application development in various domains, such as oil and gas, finance, telecom, manufacturing, security, and retail. He enjoys solving machine-learning problems and spends his time reading anything that he can get his hands on. He has great interest in open source technologies and has been promoting them through his talks. Before Schlumberger, he worked with Symantec, Lumiata, and Infosys. Through his innovative thinking and dynamic leadership, he has successfully completed various projects. He regularly blogs on his website http://hadooptutorials.co.in. You can connect with him on LinkedIn at https://www.linkedin.com/in/deshpandetanmay/. He has also authored Mastering DynamoDB, published in August 2014, DynamoDB Cookbook, published in September 2015, Hadoop Real World Solutions Cookbook-Second Edition, published in March 2016, Hadoop: Data Processing and Modelling, published in August, 2016, and Hadoop Blueprints, published in September 2016, all by Packt Publishing.
Read more about Tanmay Deshpande