{"id":10785,"date":"2024-05-19T04:08:47","date_gmt":"2024-05-19T01:08:47","guid":{"rendered":"https:\/\/sunucun.com.tr\/bilgi\/?post_type=dt_articles&#038;p=10785"},"modified":"2026-11-12T13:48:19","modified_gmt":"2026-11-12T10:48:19","slug":"aws-dynamodb-why","status":"publish","type":"post","link":"https:\/\/sunucun.com.tr\/blog\/aws-dynamodb-why\/","title":{"rendered":"What Is Amazon DynamoDB? AWS&#8217;s Serverless NoSQL Database"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Amazon DynamoDB<\/strong> is AWS&#8217;s serverless, fully managed, distributed NoSQL database. According to the AWS documentation, it delivers single-digit millisecond performance at any scale. You don&#8217;t set up servers, patch software or plan maintenance windows; DynamoDB has no version numbers and no maintenance windows. Launched in 2012, the service is designed for high-traffic workloads such as shopping carts, game data, session information and IoT.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_90 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/sunucun.com.tr\/blog\/aws-dynamodb-why\/#How_Does_DynamoDB_Work_Core_Concepts\" >How Does DynamoDB Work? Core Concepts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/sunucun.com.tr\/blog\/aws-dynamodb-why\/#Capacity_Modes_On-Demand_and_Provisioned\" >Capacity Modes: On-Demand and Provisioned<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/sunucun.com.tr\/blog\/aws-dynamodb-why\/#Key_Features\" >Key Features<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/sunucun.com.tr\/blog\/aws-dynamodb-why\/#DynamoDB_or_RDS\" >DynamoDB or RDS?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/sunucun.com.tr\/blog\/aws-dynamodb-why\/#How_to_Get_Started_with_DynamoDB\" >How to Get Started with DynamoDB<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/sunucun.com.tr\/blog\/aws-dynamodb-why\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_Does_DynamoDB_Work_Core_Concepts\"><\/span>How Does DynamoDB Work? Core Concepts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Tables, items, attributes:<\/strong> Data is stored as items in tables, and each item contains attributes. Unlike relational databases, items don&#8217;t have to share the same columns.<\/li>\n<li><strong>Primary key:<\/strong> Each item is uniquely identified by a <strong>partition key<\/strong> (optionally combined with a <strong>sort key<\/strong>). Data is distributed by this key, so key design is the foundation of performance.<\/li>\n<li><strong>Data model:<\/strong> Supports both key-value and document models.<\/li>\n<li><strong>Secondary indexes:<\/strong> To query on attributes other than the primary key, you can create up to 5 local secondary indexes (LSI) and, by default, 20 global secondary indexes (GSI) per table.<\/li>\n<li><strong>No JOINs:<\/strong> DynamoDB doesn&#8217;t support JOIN; AWS recommends denormalizing your data to reduce the number of queries.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Capacity_Modes_On-Demand_and_Provisioned\"><\/span>Capacity Modes: On-Demand and Provisioned<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"snc-table-wrap\"><table>\n<thead><tr><th><\/th><th>On-demand<\/th><th>Provisioned<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>Billing<\/td><td>Per read\/write request<\/td><td>For the read (RCU) and write (WCU) capacity per second you reserve<\/td><\/tr>\n<tr><td>Scaling<\/td><td>Automatic; scales to zero with no traffic<\/td><td>You set it; can be adjusted with Auto Scaling<\/td><\/tr>\n<tr><td>Best for<\/td><td>Unpredictable traffic or new applications<\/td><td>Steady, predictable workloads<\/td><\/tr>\n<\/tbody><\/table><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">DynamoDB is in the AWS always-free tier with 25 GB of storage plus 25 RCU and 25 WCU of provisioned capacity. Check current prices on AWS&#8217;s DynamoDB pricing page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Key_Features\"><\/span>Key Features<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>High availability:<\/strong> Data is replicated across three Availability Zones by default, with a 99.99% availability SLA.<\/li>\n<li><strong>Global tables:<\/strong> Replicate data across multiple AWS Regions you choose, all writable (99.999% SLA).<\/li>\n<li><strong>ACID transactions:<\/strong> Change multiple items in one or more tables in a single all-or-nothing request.<\/li>\n<li><strong>Backups:<\/strong> Point-in-time recovery (PITR) restores a table to any second within the last 35 days, and on-demand full backups cover long-term retention.<\/li>\n<li><strong>DynamoDB Streams:<\/strong> Provides item-level changes as a near-real-time stream; used to write triggers with Lambda.<\/li>\n<li><strong>Encryption and access:<\/strong> All data is encrypted by default; access is managed with IAM instead of usernames and passwords.<\/li>\n<li><strong>DAX:<\/strong> A managed in-memory cache for DynamoDB that can bring read latency down to microseconds.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"DynamoDB_or_RDS\"><\/span>DynamoDB or RDS?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"snc-table-wrap\"><table>\n<thead><tr><th>Criterion<\/th><th>DynamoDB<\/th><th>Amazon RDS<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>Data model<\/td><td>NoSQL, key-value and document<\/td><td>Relational (SQL tables)<\/td><\/tr>\n<tr><td>Queries<\/td><td>By key and indexes; no JOINs<\/td><td>Flexible SQL, JOINs and complex reports<\/td><\/tr>\n<tr><td>Server management<\/td><td>None (serverless)<\/td><td>You choose an instance class and storage<\/td><\/tr>\n<tr><td>Scaling<\/td><td>Automatic, up to very high traffic<\/td><td>By upsizing instances and read replicas<\/td><\/tr>\n<tr><td>Good for<\/td><td>Sessions, carts, game state, IoT, event data<\/td><td>E-commerce orders, accounting, CMS, reporting<\/td><\/tr>\n<\/tbody><\/table><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">If your access patterns are known in advance and you need very high scale, DynamoDB fits; if you need flexible queries, JOINs and standard SQL tools, RDS is the better choice. We cover RDS in detail in our article <a href=\"https:\/\/sunucun.com.tr\/blog\/aws-rds-why\/\">what is Amazon RDS<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Get_Started_with_DynamoDB\"><\/span>How to Get Started with DynamoDB<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can create tables with the AWS Console, AWS CLI, NoSQL Workbench or the SDKs. For example, an on-demand table with a <code>UserId<\/code> partition key:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>aws dynamodb create-table \\\n  --table-name Users \\\n  --attribute-definitions AttributeName=UserId,AttributeType=S \\\n  --key-schema AttributeName=UserId,KeyType=HASH \\\n  --billing-mode PAY_PER_REQUEST<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Other articles in the series: <a href=\"https:\/\/sunucun.com.tr\/blog\/aws-lambada-why\/\">AWS Lambda<\/a>, <a href=\"https:\/\/sunucun.com.tr\/blog\/aws-iam-why\/\">AWS IAM<\/a> and <a href=\"https:\/\/sunucun.com.tr\/blog\/aws-eks-why\/\">Amazon EKS<\/a>. If you want to run your application and a MySQL\/PostgreSQL database on a single fixed-cost server, take a look at our <a href=\"https:\/\/sunucun.com.tr\/en\/vds-server\">VDS server<\/a> options.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Amazon DynamoDB is a NoSQL database that needs no server management, scales automatically and delivers consistently low latency. The key to a successful DynamoDB design is defining your access patterns up front and building the partition key, sort key and indexes around them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Amazon DynamoDB is AWS&#8217;s serverless, fully managed, distributed NoSQL database. According to the AWS documentation, it delivers single-digit millisecond performance at any scale. You don&#8217;t set up servers, patch software or plan maintenance windows; DynamoDB has no version numbers and no maintenance windows. Launched in 2012, the service is designed for high-traffic workloads such as&hellip;<\/p>\n","protected":false},"author":1,"featured_media":10702,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1519],"tags":[1527],"class_list":["post-10785","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sanal-sunucu","tag-teknoloji"],"_links":{"self":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/10785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/comments?post=10785"}],"version-history":[{"count":1,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/10785\/revisions"}],"predecessor-version":[{"id":19507,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/10785\/revisions\/19507"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/media\/10702"}],"wp:attachment":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/media?parent=10785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/categories?post=10785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/tags?post=10785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}