Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
DynamoDB Cookbook

You're reading from  DynamoDB Cookbook

Product type Book
Published in Sep 2015
Publisher
ISBN-13 9781784393755
Pages 266 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Tanmay Deshpande Tanmay Deshpande
Profile icon Tanmay Deshpande

Table of Contents (18) Chapters

DynamoDB Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Taking Your First Steps with DynamoDB Operating with DynamoDB Tables Manipulating DynamoDB Items Managing DynamoDB Indexes Exploring Higher Level Programming Interfaces for DynamoDB Securing DynamoDB DynamoDB Best Practices Integrating DynamoDB with other AWS Services Developing Web Applications using DynamoDB Developing Mobile Applications using DynamoDB Index

Developing services for the sign-up activity for web applications


In the earlier recipe, we created DynamoDB tables based on the need. Now, we will write services to put the data into DynamoDB and get the data back for our application. In this recipe, we will learn how to write services for the sign-up/user registration activity.

Getting ready

To get started with this recipe, you need to know to use the AWS SDK for DynamoDB.

How to do it…

Let's write services to put the data into DynamoDB:

  1. To get started, we will first create a maven project and add the AWS SDK:

    dependency:<dependency>
      <groupId>com.amazonaws</groupId>
      <artifactId>aws-java-sdk-dynamodb</artifactId>
      <version>1.10.4.1</version>
    </dependency>
  2. Next, we will create a model class for the user table. Here, we will use the DynamoDBMapper class to connect to DynamoDB using Object Persistence Model. We will also consider attributes, such as the first name, last name, password, and so on...

lock icon The rest of the chapter is locked
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.
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}