{"id":2080,"date":"2019-06-21T04:58:02","date_gmt":"2019-06-21T04:58:02","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=2080"},"modified":"2024-03-29T06:42:21","modified_gmt":"2024-03-29T06:42:21","slug":"dynamodb-core-components","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/","title":{"rendered":"DynamoDB Core Components"},"content":{"rendered":"<h1 style=\"text-align: center;\">DynamoDB Core Components<\/h1>\n<p>&nbsp;<\/p>\n<p>DynamoDB Core Components, in this Tutorial one, can learn About DynamoDB Core Components?. Are you the one who is looking for the best platform which provides information about DynamoDB Core Components? Or the one who is looking forward to taking the <a href=\"https:\/\/www.youtube.com\/channel\/UCwAaWqnH2MqikDMpb1jBspw\">advanced Certification Course<\/a> from India\u2019s Leading <a href=\"https:\/\/prwatech.in\/aws-training-institute-in-pune\/\">AWS Training institute<\/a>? Then you\u2019ve landed on the Right Path.<\/p>\n<p>The Below mentioned Tutorial will help to Understand the detailed information about DynamoDB Core Components, so Just Follow All the Tutorials of India\u2019s Leading Best <a href=\"https:\/\/prwatech.in\/aws-training-institute-in-pune\/\">AWS Training institute<\/a> and Be a Pro AWS Developer.<\/p>\n<p>In AWS DynamoDB, tables, items, and attributes are the core components that you work with them. A\u00a0<em>table<\/em>\u00a0in DynamoDB is a collection of\u00a0<em>items<\/em>, and each item is a collection of\u00a0<em>attributes<\/em>. DynamoDB uses primary keys to uniquely identify each item in a table and secondary indexes to provide more querying flexibility to the user. You can use DynamoDB Streams to capture the data modification events in DynamoDB tables.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>1).Tables, Items, and Attributes<\/strong><\/p>\n<p><strong>2).Primary Key<\/strong><\/p>\n<p><strong>3).Secondary Indexes<\/strong><\/p>\n<p><strong>4).DynamoDB API<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Table, Items, and Attributes:<\/h3>\n<p>a) A <b>table can<\/b>\u00a0be visualized as a group of items. Taking an example of Employee records, you will have Employee Name, Employee ID, Address and Phone Number all such items will be stored in a table.<\/p>\n<p>b) An <b>item is<\/b>\u00a0a set of attributes in a table. You can also understand an item as a set of attributes that can uniquely define your\u00a0entry in a table. For example, an item in Employee records will identify a single employee.<\/p>\n<p>c) An <b>attribute is<\/b>\u00a0a single field that is attached to an item. E.g. Employee Name.<\/p>\n<p>&nbsp;<\/p>\n<h3>Primary Key<\/h3>\n<p>A primary key is a unique attribute that is necessary while creating a table, it cannot be null at any given point. Hence, while inserting an item into the table, a primary key attribute is a must. E.g. Employee ID is the primary key for the table Employee records. Two items cannot have a similar primary key. DynamoDB supports two types of Primary key.<\/p>\n<p>&nbsp;<\/p>\n<h3>Simple Primary Key:<\/h3>\n<p>A simple primary key is also known as the Partition key, this is basically a single attribute. AWS DynamoDB uses the Partition key\u2019s value to distinguish items in a table. E.g. Employee ID in an Employee records table.<\/p>\n<p>&nbsp;<\/p>\n<h3>Composite Primary Key:<\/h3>\n<p>A composite primary key is also known as the Partition Key and Sort key. This type of key is generally made up of two items. The primary component is the Partition key and the secondary component is the Sort key. E.g., in the Car Details table with Brand name and Model number as a composite primary key.<\/p>\n<p>&nbsp;<\/p>\n<h3>Secondary Indexes<\/h3>\n<p>These indexes allow you to query a table data with an alternate key. Though DynamoDB does not force their use, they used to optimize querying.<\/p>\n<p>DynamoDB comprises of two types of secondary indexes:<\/p>\n<p><strong>a) Global Secondary Index<\/strong>: This index use to possess a partition and sort keys, which can differ from table keys.<\/p>\n<p><strong>b) Local Secondary Index<\/strong>: This index use to possess a partition key identical to the table; however, its sort key differs.<\/p>\n<p>&nbsp;<\/p>\n<h3 style=\"line-height: 1.10526;\">DynamoDB API<\/h3>\n<p>DynamoDB is a database tool and to interact with an application, it requires API. The APIs in DynamoDB is:<\/p>\n<p><span style=\"color: #00ccff;\"><strong>Control Plane, Data Plane and DynamoDB Streams<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<h3>a)\u00a0\u00a0Control Plane:<\/h3>\n<p>Control Plane consists of operations responsible for \u201c<em>Creating<\/em>\u201d and \u201c<em>Managing<\/em>\u201d a DynamoDB table. The API operations that can be used are as follows:<\/p>\n<p><strong>\u2666 CreateTable<\/strong>: Creates a new table.<\/p>\n<p><strong>\u00a0DescribeTable<\/strong>: Provides information about the table.<\/p>\n<p><strong>ListTable<\/strong>: Returns all the table names in your list.<\/p>\n<p><strong>\u2666 DeleteTable<\/strong>: Deletes the table and all its dependencies from DynamoDB.<\/p>\n<p>&nbsp;<\/p>\n<h3>b)\u00a0\u00a0 Data Plane:<\/h3>\n<p>In the data plane, you perform CRUD (\u201c<em>Create<\/em>\u201c, \u201c<em>Read<\/em>\u201c, \u201c<em>Update<\/em>\u201c, and \u201c<em>Delete<\/em>\u201d) operations with the following tools:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2086\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/3-1.jpg\" alt=\"DynamoDB Core Components\" width=\"850\" height=\"300\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/3-1.jpg 655w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/3-1-300x106.jpg 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>c)\u00a0\u00a0\u00a0 DynamoDB Stream:<\/h3>\n<p>DynamoDB Stream is a service used to track data stream that is loaded into a table and retrieved from a table. To modify the streaming, the user can use the following commands given below:<\/p>\n<p><strong>\u2666 ListStream<\/strong>: It gives a list of all streams.<\/p>\n<p><strong>\u2666\u00a0DescribeStream<\/strong>: It gives details about the stream and the resources used.<\/p>\n<p><strong>GetShardIterator<\/strong>: It gives a Shard iterator that is a data structure to store information about the stream.<\/p>\n<p><strong>\u2666 GetRecords<\/strong>: Using Shard iterator GetRecords retrieves information about streams.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2087\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/2-1.jpg\" alt=\"DynamoDB Core Components\" width=\"850\" height=\"322\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/2-1.jpg 671w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/2-1-300x114.jpg 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>DynamoDB Accelerator (DAX)<\/h3>\n<p>Recently DynamoDB has introduced a new feature called DynamoDB accelerator.<\/p>\n<p>DAX is a write-through caching layer for DynamoDB. It has exactly a similar API as DynamoDB, and if you\u2019ve enabled it, you can able to read and write to DynamoDB through it. DAX keeps track of what data was written to DynamoDB and only stores it if a write was acknowledged by DynamoDB.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2088\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/1-1.jpg\" alt=\"DynamoDB Core Components\" width=\"850\" height=\"506\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/1-1.jpg 669w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/1-1-300x178.jpg 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Global Tables In DynamoDB<\/h3>\n<p><strong>Amazon DynamoDB global tables provide<\/strong>\u00a0a fully managed solution used to deploy a multi-region, multi-master database, without having to build and maintain your own replication solution.<\/p>\n<p>When you create a global table in DynamoDB, you can specify the AWS regions where you want the table to be available.<\/p>\n<p>DynamoDB performs all of the necessary operations to create identical tables in these regions, and propagate ongoing data changes to all of them.<\/p>\n<p>DynamoDB global tables are useful for massively scaled applications, with globally dispersed users through the AWS cloud platform. In such an environment, users expect very fast application performance.<\/p>\n<p>Global tables provide automatic multi-master replication to AWS regions worldwide, so you can deliver low-latency data access to your users no matter where they are located.<\/p>\n<p style=\"text-align: center;\"><strong style=\"color: #0000ff;\">#<\/strong><span style=\"color: #0000ff;\">\u00a0<\/span><strong style=\"color: #0000ff;\">Last but not least, always asks for help!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>DynamoDB Core Components &nbsp; DynamoDB Core Components, in this Tutorial one, can learn About DynamoDB Core Components?. Are you the one who is looking for the best platform which provides information about DynamoDB Core Components? Or the one who is looking forward to taking the advanced Certification Course from India\u2019s Leading AWS Training institute? Then [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1654,31],"tags":[360],"class_list":["post-2080","post","type-post","status-publish","format-standard","hentry","category-amazon-dynamodb","category-aws","tag-dynamodb-core-components"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What are DynamoDB Core Components? - Prwatech<\/title>\n<meta name=\"description\" content=\"In AWS DynamoDB, tables, items, and attributes are the core components that you work with them. A\u00a0table\u00a0in DynamoDB is a collection of\u00a0items\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What are DynamoDB Core Components? - Prwatech\" \/>\n<meta property=\"og:description\" content=\"In AWS DynamoDB, tables, items, and attributes are the core components that you work with them. A\u00a0table\u00a0in DynamoDB is a collection of\u00a0items\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-21T04:58:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-29T06:42:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/3-1.jpg\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/\",\"url\":\"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/\",\"name\":\"What are DynamoDB Core Components? - Prwatech\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/3-1.jpg\",\"datePublished\":\"2019-06-21T04:58:02+00:00\",\"dateModified\":\"2024-03-29T06:42:21+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"In AWS DynamoDB, tables, items, and attributes are the core components that you work with them. A\u00a0table\u00a0in DynamoDB is a collection of\u00a0items\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/3-1.jpg\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/3-1.jpg\",\"width\":655,\"height\":231},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DynamoDB Core Components\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What are DynamoDB Core Components? - Prwatech","description":"In AWS DynamoDB, tables, items, and attributes are the core components that you work with them. A\u00a0table\u00a0in DynamoDB is a collection of\u00a0items","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"What are DynamoDB Core Components? - Prwatech","og_description":"In AWS DynamoDB, tables, items, and attributes are the core components that you work with them. A\u00a0table\u00a0in DynamoDB is a collection of\u00a0items","og_url":"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2019-06-21T04:58:02+00:00","article_modified_time":"2024-03-29T06:42:21+00:00","og_image":[{"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/3-1.jpg","type":"","width":"","height":""}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/","url":"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/","name":"What are DynamoDB Core Components? - Prwatech","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/3-1.jpg","datePublished":"2019-06-21T04:58:02+00:00","dateModified":"2024-03-29T06:42:21+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"In AWS DynamoDB, tables, items, and attributes are the core components that you work with them. A\u00a0table\u00a0in DynamoDB is a collection of\u00a0items","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/3-1.jpg","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/3-1.jpg","width":655,"height":231},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/aws\/amazon-dynamodb\/dynamodb-core-components\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"DynamoDB Core Components"}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=2080"}],"version-history":[{"count":14,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2080\/revisions"}],"predecessor-version":[{"id":11174,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2080\/revisions\/11174"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=2080"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=2080"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=2080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}