Category
DynamoDB 設計・実装ガイド(シングルテーブル設計/コスト/Streams/Global Tables/セキュリティ/技術選定)
DynamoDBは「速くて落ちないKVS」ではなく、正しさ・コスト・スケール・安全をコードの構造で設計するためのプリミティブ群です。本クラスタは、アクセスパターン起点のキー設計と冪等性・トランザクション(正しさ)、オンデマンド/プロビジョンドの損益分岐とホットパーティション回避(コストと性能)、Streamsによるイベント駆動とGlobal TablesのマルチリージョンDR(拡張性と回復性)、IAM最小権限・LeadingKeysによる行レベル分離・暗号化・VPCエンドポイント(セキュリティ)、そしてRDBとの技術選定までを扱います。本番でDynamoDBを稼働させたマルチテナント決済基盤(本番二重課金0件)の知見を根拠に、速く・安く・安全に作る設計を、AWS公式仕様に忠実な実コードで体系化します。
6 articles in total
Foundational guide
Foundational guide (start here)
DynamoDB Single-Table Design & Production Reliability Patterns — The Complete Guide (2026 Edition): Idempotency, Conditional Writes, and Transactions in Real Code
We explain DynamoDB single-table design — from access-pattern-driven key design (PK/SK, GSI overloading) through idempotency, conditional writes, atomic balance updates, TransactWriteItems, and consistency — in real AWS SDK v3 TypeScript code faithful to the AWS official specs.
Related practical articles
- AWSDynamoDBアーキテクチャ設計サーバーレスTerraform
DynamoDB Capacity, Cost, and Performance Design Complete Guide (2026 Edition): On-Demand vs. Provisioned, Auto Scaling, Avoiding Hot Partitions, Cost Optimization
An explanation of the capacity design that decides DynamoDB's pricing and performance, faithful to the AWS official spec. From the break-even of on-demand vs. provisioned, the correct counting of RCU/WCU, the 3000/1000 partition limit and hot-key avoidance, warm throughput, Auto Scaling, to cost optimization via TTL and table classes — summarized from a production viewpoint with real Terraform / AWS SDK v3 code.
23 min read - AWSDynamoDBマルチリージョンDRアーキテクチャ設計
DynamoDB Global Tables × Multi-Region × Disaster Recovery (DR) Complete Guide (2026 Edition): MREC/MRSC Consistency, Conflict Resolution, RTO/RPO Design, PITR, Cost
We explain multi-active multi-region distribution with DynamoDB Global Tables, faithful to the AWS official specs. We systematize DR design — the difference between eventual consistency (MREC) and multi-region strong consistency (MRSC) and how to choose, last-writer-wins conflict resolution, RTO/RPO and failover, PITR (35 days) and backups, and the cost of replicated write units — in real Terraform/TypeScript code.
25 min read - AWSDynamoDBセキュリティIAMマルチテナント
DynamoDB Security Complete Guide (2026 Edition): IAM Least Privilege, Fine-Grained Access Control (LeadingKeys), Encryption at Rest/in Transit, VPC Endpoints
An explanation of DynamoDB security faithful to the AWS official spec. From row-level multi-tenant isolation with dynamodb:LeadingKeys, column restriction with dynamodb:Attributes, least-privilege IAM ARNs per table/index/stream, always-on encryption at rest and 3 kinds of KMS keys, mandatory TLS and aws:SecureTransport, to VPC gateway/interface endpoints — summarized from a production viewpoint with IAM-policy JSON and real Terraform code.
25 min read - AWSDynamoDBイベント駆動冪等性サーバーレス
DynamoDB Streams × Event-Driven Architecture / CDC Complete Guide (2026 Edition): Safely Propagating Change Data with Lambda and EventBridge Pipes
We explain — faithfully to the AWS official specs — the production design of capturing change data (CDC) with DynamoDB Streams and safely propagating it downstream with Lambda / EventBridge Pipes. From view types, 24-hour retention, and per-item ordering guarantees to BatchSize/ParallelizationFactor/BisectBatchOnFunctionError/DLQ, idempotent consumers, materialized views, search-index sync, Outbox integration, and fan-out, summarized in real TypeScript / Terraform code.
25 min read - AWSDynamoDBPostgreSQLアーキテクチャ設計技術選定
When should you use DynamoDB — a technology-selection guide for choosing between it and Amazon RDS/Aurora (PostgreSQL) (2026 edition)
Explains which to choose between DynamoDB (NoSQL) and Amazon RDS/Aurora (PostgreSQL) with a decision framework faithful to the AWS official specs. From the 4 axes of access pattern, scale, consistency, and query flexibility, through a comparison table, a flowchart, the cost view, hybrid configurations including Zero-ETL, to the antipattern of forcing NoSQL and failing — it answers the pre-order decision.
19 min read