35,99 €
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 like high-availability, reliability and infinite scalability. DynamoDB can be easily integrated with massive data crunching tools like 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 amongst its peers. The design of DynamoDB is so neat and clean that it has inspired many NoSQL databases to simply follow it.
This book will get your hands on some engineering best practices DynamoDB engineers use, which can be used in your day-to-day life to build robust and scalable applications. You will start by operating with DynamoDB tables and learn to manipulate items and manage indexes. You will also discover how to easily integrate applications with other AWS services like EMR, S3, CloudSearch, RedShift etc. A couple of chapters talk in detail about how to use DynamoDB as a backend database and hosting it on AWS ElasticBean. This book will also focus on security measures of DynamoDB as well by providing techniques on data encryption, masking etc.
By the end of the book you’ll be adroit in designing web and mobile applications using DynamoDB and host it on cloud.
Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:
Seitenzahl: 255
Veröffentlichungsjahr: 2015
Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form, or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author nor Packt Publishing, and its dealers and distributors, will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: September 2015
Production reference: 1210915
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-375-5
www.packtpub.com
Author
Tanmay Deshpande
Reviewers
Sergio Alcantara
Kenny Ha
Volker Kueffel
Dr. Jun-young Kwak
Commissioning Editor
Pramila Balan
Acquisition Editor
Shaon Basu
Content Development Editor
Divij Kotian
Technical Editor
Naveenkumar Jain
Copy Editor
Rashmi Sawant
Project Coordinator
Neha Bhatnagar
Proofreader
Safis Editing
Indexer
Hemangini Bari
Production Coordinator
Komal Ramchandani
Cover Work
Komal Ramchandani
Tanmay Deshpande is a Hadoop and big data evangelist. He currently works with Symantec Corporation as a senior software engineer in Pune, India. He has interests 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 finance, telecom, manufacturing, security, and retail. He enjoys solving machine learning problems and likes to spend his time reading anything that he can get his hands on. He has a great interest in open source technologies and has been promoting them through his talks. He has been invited to various colleges to conduct brainstorming sessions with students on the latest technologies.
Before Symantec Corporation, he worked with Infosys, where he worked as the lead Big Data/Cloud developer. He was a core team member of the Infosys Big Data Edge platform. Through his innovative thinking and dynamic leadership, he successfully completed various projects.
Before he wrote this book, he also authored two books, Mastering DynamoDB and Cloud Computing. He regularly blogs at http://hadooptutorials.co.in
This is the third book in a row for me, and I can't stop myself from imagining this to be real without my grandparents' love and care. I know that they are there somewhere and constantly blessing me with their best wishes all the time. I would like to dedicate this book to my grandparents, Late Mrs. Usha and Late Mr. Bhaskar Deshpande, Mrs. Malati and Late Mr. Madhukar Budukh.
I would like to thank my wife, Sneha, for standing beside me through thick and thin. She has been the source of inspiration and motivation to achieve bigger and better in life. I appreciate her patience to allow me to dedicate more time for this book and understanding what it means to me, without any complaints.
I would like to thank my mom, Mrs. Manisha Deshpande, my dad, Mr. Avinash Deshpande, and my brother, Sakalya, for encouraging me to follow my ambitions and for making me what I am today.
Above all, I would like thank the Almighty for giving me power to believe in my passion and pursue my dreams. This would not have been possible without the faith I have in him!
Sergio Alcantara has been building cloud-based platforms since the beginning of Amazon Web Services. Over the years, he has built the backend infrastructure for mobile and web applications that empowered GPS data, big data, and sports gaming. He has taken advantage of cloud computing to build highly reliable and scalable platforms.
Among his latest projects, there are several that use DynamoDB in different ways, but two of them use DynamoDB as their main and only database. In one project, he utilizes DynamoDB to store large quantities of data (big data), and in the other, he took advantage of DynamoDB's high scalability to satisfy the demands of high traffic social and sports betting pool applications.
He also created several open source libraries, all of which are listed in his GitHub profile (https://github.com/serg-io). The most notable of these libraries being backbone-dynamodb, which extends Backbone, a popular JavaScript library, in order to allow the developer to store Backbone data models in DynamoDB.
Kenny Ha is currently working as a Senior Systems Architect at a local private company in San Diego. He is passionate about learning new technologies, especially about the mobile internet and data structures. He developed a passion for programming and data structures in the fall of 1992, at the University of California, San Diego (UCSD) and has been devoted to it ever since. Nowadays, he's intrigued with the entire mobile internet ecosystem and is trying to learn more about it.
All this is thanks to his childhood best friend, who advised him to switch his major from Electrical Engineering to Computer Science. He appreciates this advice till date and is very proud of his decision. His university years were all about learning and doing what interests him, which is programming, more than doing his required coursework. Throughout his career, he has designed scalable distributed enterprise systems with strong data structures and database concepts that he learnt in his university.
He has worked on many projects that involved distributed computing and processing. He realized that technology has evolved fairly rapidly, starting from the old CORBA days to the modern days of distributed service-oriented web services. He's currently involved with learning more advanced theoretical concepts related to computer science, in order to understand the theoretical concepts taught in universities and transform them into programmable implementation of working code, which includes mobile advancements. One of the exciting projects he has designed is a Global Positioning System project. He designed a hybrid database structure to manage the mobile GPS devices on golf carts and automobile industries. These hybrid database structures included a RDBMS and NoSQL(DynamoDB) to persist high-volume GPS coordinates in millions. He said that the most fun and exciting part of the project was a multi-threaded parallel Java program, which persisted data to DynamoDB while a Node.JS program projected the GPS coordinates on the web page to allow for the viewing of the golf carts traveling in real time.
The most important concept here is that the business requirements will always dictate the architectural designs of a system. Therefore, make sure to adopt the best practices of good software designs for effectiveness, efficiency, and user-friendliness. In the future, there will always be new innovative ecosystems that will disrupt the current technology and market trends, including the mobile Internet. We are definitely looking forward to these ecosystems being taught at universities.
You can visit http://oneglobalonline.com for more information on global technology and mobile market trends.
I would like to thank Packt Publishing for giving me the opportunity to review the DynamoDB Cookbook. I'm very proud and feel fortunate to be a part of a great team of reviewers.
Volker Kueffel has been a software engineer and architect for almost two decades, and he has been developing software since he was a teenager. A physicist by trade, he has worked on large-scale data systems in various verticals of the software industry, spanning from online travel, mobile, and enterprise applications to online advertising. He has worked with a wide variety of AWS services for several years and introduced DynamoDB in one of his projects, which became the backbone of a large data collection system holding several terabytes of data. He is a native of Germany and currently lives with his family in San Francisco, California.
Dr. Jun-young Kwak is currently a senior software engineer (Backend) at Spokeo, Inc., where he is seeking practical means to apply Big Data-driven AI approaches to complex distributed systems. He received his PhD from the Department of Computer Science at the University of Southern California. He was one of the USC Annenberg Fellows. During his PhD tenure, he has done research on multi-agent decision making in sustainability, specifically focusing on multi-objective optimization in energy domains, sequential decision making under uncertainty, and human-agent interaction/negotiation. He was also a member of the Teamcore Research Group at USC led by Professor Milind Tambe. Before joining USC, he worked as a robotics programmer at Agent Dynamics, Inc. and was a visiting scholar at the Robotics Institute, Carnegie Mellon University in Pittsburgh. He was doing research on multi-agent coordination and control for unmanned systems, specifically, the ACCAST system (Advanced Command and Control of Autonomous System Teams) and the USAR (Urban Search And Rescue) projects. The ACCAST project was supported by DoD. He was mainly working with professors, Katia Sycara and Paul Scerri, at Intelligent Software Agents Lab, CMU RI. Before he started working, he did research on path planning and rough terrain navigation for his master's degree at CMU RI. This project was part of the Mars Technology Program supported by JPL, NASA. His research included planning algorithms under uncertainty, extending particle RRT, identifying the optimal vehicle models, and reducing the execution errors using various learning techniques. He worked with professor Reid Simmons.
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view 9 entirely free books. Simply use your login credentials for immediate access.
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.
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.
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.
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.
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:
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.
This section contains the steps required to follow the recipe.
This section usually consists of a detailed explanation of what happened in the previous section.
This section consists of additional information about the recipe in order to make the reader more knowledgeable about the recipe.
This section provides helpful links to other useful information for the recipe.
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:
Any command-line input or output is written as follows:
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."
Warnings or important notes appear in a box like this.
Tips and tricks appear like this.
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 <[email protected]>, 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.
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.
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.