

{"id":185378,"date":"2021-05-10T15:04:24","date_gmt":"2021-05-10T09:34:24","guid":{"rendered":"https:\/\/www.jigsawacademy.com\/?p=185378"},"modified":"2021-05-11T18:18:51","modified_gmt":"2021-05-11T12:48:51","slug":"blogs-tutorial-dynamodb-tutorial","status":"publish","type":"post","link":"https:\/\/www.jigsawacademy.com\/blogs\/tutorial\/dynamodb-tutorial\/","title":{"rendered":"Amazon\u2019s DynamoDB Tutorial \u2013 A Simplified Guide For 2021"},"content":{"rendered":"\n<h2>INTRODUCTION<\/h2>\n\n\n\n<p>With the gushing rush of data flow, Amazon DynamoDB tutorial provides a non-SQL or non-relational database (commonly known as NoSQL) providing a mechanism for storage, processing and retrieval of data. It also allows graphs, documents, columns among its data model.<\/p>\n\n\n\n<ol><li><strong><a href=\"#1.Dynamo-DB?\" class=\"rank-math-link\">Dynamo DB?<\/a><\/strong><\/li><li><strong><a href=\"#2.Terms-related-to-DynamoDB--\" class=\"rank-math-link\">Terms related to DynamoDB<\/a><\/strong><\/li><li><strong><a href=\"#3.DynamoDB-Streams\" class=\"rank-math-link\">DynamoDB Streams<\/a><\/strong><\/li><li><strong><a href=\"#4.Accessing-Amazon-DynamoDB\" class=\"rank-math-link\">Accessing Amazon DynamoDB<\/a><\/strong><\/li><li><strong><a href=\"#5.Features-of-DynamoDB\" class=\"rank-math-link\">Features of DynamoDB<\/a><\/strong><\/li><li><strong><a href=\"#6.DynamoDB-API\" class=\"rank-math-link\">DynamoDB API<\/a><\/strong><\/li><li><strong><a href=\"#7.DynamoDB-Stream\" class=\"rank-math-link\">DynamoDB Stream<\/a><\/strong><\/li><li><strong><a href=\"#8.DynamoDB:-Case-Studies\" class=\"rank-math-link\">DynamoDB: Case Studies<\/a><\/strong><\/li><li><strong><a href=\"#9.Demo:-Creating,-Inserting-And-Querying-A-Table-In-DynamoDB\" class=\"rank-math-link\">Demo: Creating, Inserting And Querying A Table In DynamoDB<\/a><\/strong><\/li><\/ol>\n\n\n\n<h2 class=\"has-vivid-cyan-blue-color has-text-color\" id=\"1.Dynamo-DB?\">1.Dynamo DB?<\/h2>\n\n\n\n<p>DynamoDB tutorial, being a NoSQL database, does not use the common structured query language. It provides fast and predictable performance with seamless scalability, offered by Amazon Web Services (AWS).&nbsp;<\/p>\n\n\n\n<p>A user first stores the data in DynamoDB tables and then interacts with it through PUT and GET queries which are written and read operations, respectively.<\/p>\n\n\n\n<p>DynamoDB consists of 3 basic units referred to as item, table and attribute.<\/p>\n\n\n\n<h2 class=\"has-vivid-cyan-blue-color has-text-color\" id=\"2.Terms-related-to-DynamoDB--\">2.Terms related to DynamoDB &#8211;<\/h2>\n\n\n\n<p>The common terminologies related to DynamoDB are described as below;<\/p>\n\n\n\n<p><strong>Table, Items, Attributes<\/strong><\/p>\n\n\n\n<ol><li>A table is an amalgamation of rows and columns. For example; In Student Details, you will have Student Name, Student ID, Roll No., Standard and Residential Address.<\/li><li>A bunch of attributes in a table is called an item. For example, many attributes that uniquely define an entry inserted into a table are called an item. As an example, an item in Student Details will identify a single student.<\/li><li>A single field that is attached to an item is called an attribute\u2014for example, Student Name.<\/li><\/ol>\n\n\n\n<p><strong>1. Primary Key<\/strong><\/p>\n\n\n\n<p>A unique attribute that is essential for the creation of a table is known as the Primary Key.<\/p>\n\n\n\n<p><strong>&nbsp;2. Simple Primary Key<\/strong><\/p>\n\n\n\n<p>A simple primary key is also known as the Partition key, and this is in real; a single attribute. DynamoDB with the help of the Partition key\u2019s value to differentiate items inserted in the table. Example: Student ID in the Student Details table.<\/p>\n\n\n\n<p><strong>&nbsp;3. Composite Primary Key<\/strong><\/p>\n\n\n\n<p>A composite primary key is also referred to as the Partition Key, and the Sort key having 2 elements.<\/p>\n\n\n\n<h2 class=\"has-vivid-cyan-blue-color has-text-color\" id=\"3.DynamoDB-Streams\">3.DynamoDB Streams<\/h2>\n\n\n\n<p>This is an add-on feature provided by Amazon DynamoDB tutorial to track any data modification events in the table in the database.<\/p>\n\n\n\n<h2 class=\"has-vivid-cyan-blue-color has-text-color\" id=\"4.Accessing-Amazon-DynamoDB\">4.Accessing Amazon DynamoDB<\/h2>\n\n\n\n<p>&nbsp; &nbsp;Accessing DynamoDB is very easy to access and can be accessed using the following methods:<\/p>\n\n\n\n<ul><li>Console<\/li><li>CLI (Command Line Interface)&nbsp;<\/li><li>Using API&nbsp;<\/li><\/ul>\n\n\n\n<h2 class=\"has-vivid-cyan-blue-color has-text-color\" id=\"5.Features-of-DynamoDB\">5.Features of DynamoDB<\/h2>\n\n\n\n<p>DynamoDB is created uniquely so that the user can achieve high-performance and run multiple applications that would not be easily manageable with the traditional database system. These add-on features of DynamoDB can be accessed via the following modes:<\/p>\n\n\n\n<p>1. On-demand capacity mode<\/p>\n\n\n\n<p>2. Built-in support for ACID transactions<\/p>\n\n\n\n<p>3. On-demand backup<\/p>\n\n\n\n<p>4. Point-in-time recovery<\/p>\n\n\n\n<p>5. Encryption at rest<\/p>\n\n\n\n<h2 class=\"has-vivid-cyan-blue-color has-text-color\" id=\"6.DynamoDB-API\">6.DynamoDB API<\/h2>\n\n\n\n<p>DynamoDB is a database management tool. The Application Programming Interfaces in DynamoDB tutorial are:<\/p>\n\n\n\n<h3><strong>Control Plane<\/strong><\/h3>\n\n\n\n<p>Control Plane consists of operations responsible for \u201c<em>Creating<\/em>\u201d and \u201c<em>Managing<\/em>\u201d a DynamoDB table. The operations under DynomoDB that can be used are;<\/p>\n\n\n\n<ul><li><strong>CreateTable<\/strong>: Creates a new table.<\/li><li><strong>DescribeTable<\/strong>: Provides information about the table.<\/li><li><strong>ListTable<\/strong>: Returns all the table names in your list.<\/li><li><strong>Delete Table<\/strong>: Deletes the table and all its contents from DynamoDB.<\/li><\/ul>\n\n\n\n<h3><strong>Data Plane<\/strong><\/h3>\n\n\n\n<p>Data Plane consists of \u201cCRUD\u201d operation, i.e. \u201c<em>Create<\/em>\u201c, \u201c<em>Read<\/em>\u201c, \u201c<em>Update<\/em>\u201c, and \u201c<em>Delete<\/em>\u201d options to perform different actions on your table. Multiple operations can be done on a table. The operations here are as follows:<\/p>\n\n\n\n<ul><li><strong>Creating Data<\/strong><\/li><\/ul>\n\n\n\n<ol><li><strong>Put Item<\/strong><\/li><li><strong>Batch Write Item<\/strong><\/li><\/ol>\n\n\n\n<ul><li><strong>Reading Data<\/strong><\/li><\/ul>\n\n\n\n<ol><li><strong>GetItem<\/strong><\/li><li><strong>BatchGetItem<\/strong><\/li><li><strong>Query<\/strong><\/li><li><strong>Scan<\/strong><\/li><\/ol>\n\n\n\n<ul><li><strong>Updating Data<\/strong><\/li><\/ul>\n\n\n\n<ol><li><strong>UpdateItem<\/strong><\/li><\/ol>\n\n\n\n<ul><li><strong>Deleting Data<\/strong><\/li><\/ul>\n\n\n\n<ol><li><strong>DeleteItem<\/strong><\/li><li><strong>BatchWriteItem<\/strong><\/li><\/ol>\n\n\n\n<h2 class=\"has-vivid-cyan-blue-color has-text-color\" id=\"7.DynamoDB-Stream\">7.DynamoDB Stream<\/h2>\n\n\n\n<p>DynamoDB Stream is a service to track data stream already loaded and retrieved into a table. To modify the streaming, the user can use the following commands according to the requirement;<\/p>\n\n\n\n<ul><li>ListStream<\/li><li>DescribeStream<\/li><li>GetShardIterator<\/li><li>GetRecords<\/li><\/ul>\n\n\n\n<h2 class=\"has-vivid-cyan-blue-color has-text-color\" id=\"8.DynamoDB:-Case-Studies\">8.DynamoDB: Case Studies<\/h2>\n\n\n\n<p><strong>&nbsp;<\/strong>&nbsp;Some of the case studies are;<\/p>\n\n\n\n<ol><li>MLB Advanced Media<\/li><li>&nbsp;Amazon DynamoDB has aided MLBAM to scale up the support for games on a single day and power the queries and support for fast data retrieval.<\/li><li>Expedia<\/li><li>&nbsp;&nbsp;Expedia\u2019s real-time analytics application collects data for test &amp; learn experiments to scale up to higher and higher.<\/li><li>Nexon<\/li><li>&nbsp;&nbsp;DynamoDB is their primary database for blockbuster mobile game HIT.&nbsp;<\/li><\/ol>\n\n\n\n<h2 class=\"has-vivid-cyan-blue-color has-text-color\" id=\"9.Demo:-Creating,-Inserting-And-Querying-A-Table-In-DynamoDB\">9.Demo: Creating, Inserting And Querying A Table In DynamoDB<\/h2>\n\n\n\n<p>Let\u2019s find out how to create a table in DynamoDB.<\/p>\n\n\n\n<p><strong>Step 1:<\/strong>&nbsp;Navigate to the DynamoDB section in AWS.<\/p>\n\n\n\n<p><strong>Step 2:&nbsp;<\/strong>Fill in with the necessary details and click on \u201c<em>Create<\/em>\u201c.<\/p>\n\n\n\n<p><strong>Step 3:&nbsp;<\/strong>You can view your table being created. Click on \u201c<em>Overview<\/em>\u201d to understand your table, click on \u201c<em>Items<\/em>\u201d to edit, insert and query on the table. There are many more options you can use to understand your table better.<\/p>\n\n\n\n<p>Likewise, once the table is created, data can be inserted as per the requirements of the user.<\/p>\n\n\n\n<h2>CONCLUSION<\/h2>\n\n\n\n<p>For managing data, DynamoDB tutorial uses b-trees and hashing. And If I talk about the advantages, it includes complete control over the data, data being accessible at any point of time, no internet connectivity required, and most importantly, it&#8217;s free to use.<\/p>\n\n\n\n<p>If you are interested in making a career in the Data Science domain, our 11-month in-person&nbsp;<strong><a href=\"https:\/\/www.jigsawacademy.com\/post-graduate-diploma-in-data-science-pgds-certification-training\/\" target=\"_blank\" rel=\"noreferrer noopener\">Postgraduate Certificate Diploma in Data Science<\/a>&nbsp;<\/strong>course can help you immensely in becoming a successful Data Science professional.&nbsp;<\/p>\n\n\n\n<h2>ALSO READ<\/h2>\n\n\n\n<ul><li><strong><a href=\"https:\/\/www.jigsawacademy.com\/blogs\/data-science\/data-representation\">Data representation: A Comprehensive Overview (2021)<\/a><\/strong><\/li><li><strong><a href=\"https:\/\/www.jigsawacademy.com\/blogs\/data-science\/advanced-data-structures\">7 Important Advanced Data Structures: Simplified<\/a><\/strong><\/li><li><strong><a href=\"https:\/\/www.jigsawacademy.com\/blogs\/data-science\/data-governance-tools\/\">10+ Best Data Governance Tools (2021)<\/a><\/strong><\/li><li><strong><a href=\"https:\/\/www.jigsawacademy.com\/blogs\/data-science\/mongodb-interview-questions\">20 Important MongoDB Interview Questions &amp; Answers<\/a><\/strong><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>INTRODUCTION With the gushing rush of data flow, Amazon DynamoDB tutorial provides a non-SQL or non-relational database (commonly known as NoSQL) providing a mechanism for storage, processing and retrieval of data. It also allows graphs, documents, columns among its data model. Dynamo DB? Terms related to DynamoDB DynamoDB Streams Accessing Amazon DynamoDB Features of DynamoDB [&hellip;]<\/p>\n","protected":false},"author":188,"featured_media":185411,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9792],"tags":[10203,10199,10200,10206,10204,10202,10198,10201],"form":[1499],"acf":[],"_links":{"self":[{"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/posts\/185378"}],"collection":[{"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/users\/188"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/comments?post=185378"}],"version-history":[{"count":0,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/posts\/185378\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/media\/185411"}],"wp:attachment":[{"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/media?parent=185378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/categories?post=185378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/tags?post=185378"},{"taxonomy":"form","embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/form?post=185378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}