본문 바로가기

AWS Database/AWS DynamoDB

(8)
[AWS Certificate]-DynamoDB Streams DynamoDB Streams 24 Hours time-ordered log of all table-write activity React to changes to DynamoDB tables in real time Can be read by AWS Lambda, EC2, ES, Kinesis ... Use cases: Replication, Archival, Notifications, Log processing DynamoDB Streams are organized into shards Records are not retroactively populated in a stream after enabling it Simply enable streams from DynamoDB console Four supp..
[AWS Certificate]-DynamoDB Encryption DynamoDB Encryption Server-side Encryption at Rest Enabled by default Uses KMS 256-bit AES Encryption Can use AWS owned CMK, AWS managed CMK, or customer managed CMK Encrypts primary key, secondary indexes, streams, global tables, backups and DAX clusters Encryption in transit Use VPC endpoints for applications running in a VPC Use TLS endpoints for encrypting data transit DynamoDB Encryption Cl..
[AWS Certificate]-DynamoDB Backup & Restore Backup and Restore in Dynamo DB Automatically encrypted, cataloged and easily discoverable Highly Scalable - create or retain as many backups for tables of any size Backup operations complete in seconds Backup are consistent within seconds across thusands of partitions No provisioned capacity consumption Does not affect table performance or availability Backups are preserved regardless of table ..
[AWS Certificate]-DynamoDB Accelerator (DAX) DAX(DynamoDB Accelerator)란 In-Memory Caching, microsecond latency Sits between DynamoDB and Client Application (acts a proxy) Saves costs due to reduced read load on DynamoDB Helps prevent hot partitions Minimal code changes required to add DAX to your existing DynamoDB app Supports only eventual consistency (strong consistency requests pass-through to DynamoDB) Not for write-heavy applications ..
[AWS Certificate]-DynamoDB Storing Larger Item DynamoDB - Storing larger items DynamoDB supports item sizes up to 400 KB each This includes attribute name and attribute value (=entire JSON object) Options for storing larger items Compress large attribute values, OR Store large attribute values in S3 and store the corresponding S3 path in DynamoDB DynamoDB - Large Objects Pattern DynamoDB - Indexing S3 objects metadata DynamoDB Operations Tab..
[AWS Certificate]-DynamoDB Best Practice DynamoDB Best Practices Efficient Key Design Partition key should have many unique values Distribute reads / writes uniformly across partitions to avoid hot partitions Store hot and cold data in separate tables Consider all possible query patterns to eliminate use of scans and filters Choose sort key depending on your application's needs Use indexes based on when your application's query pattern..
[AWS Certificate]-DynamoDB Partition DynamoDB Partitions Store DynamoDB table data (physically) Each (physical) partition = 10GB SSD volume Not to be confused with table's partition/hash key (which is a logical partition) One partition can store items with multiple partition keys A table can have multiple partitions Number of table partitions depend on its size and provisioned capacity Managed internally by DynamoDB Provisioned cap..
[AWS Certificate]-DynamoDB Amazon DynamoDB - Overview Non-relational Key-Value store 클라우드 완전 관리형, 서버리스, NoSQL 데이터베이스 Fast, Flexible, Cost-effective, Fault Tolerant, Secure Multi-region, multi-master database (Global Tables) Backup and restore with PITR (Point-in-time Recovery) 모든 규모에서 한 자리수 밀리초 성능 제공(Single-digit millisecond performance at any scale) DAX를 사용한 In-memory 캐싱 (DynamoDB Accelerator, microsecond latency) API를 통..