AWS/AWS Database

AWS DynamoDB 데이터베이스

ColinKang 2022. 4. 13. 17:09

table 만 생성하면 됨 : 서비스 레벨 : 글로벌

partition key : unique 해야함, unique, not null

ACID 트랜잭션 지원

 

파티션

기본키 : 복합 기본키 구성 가능 : 파티션 키 + 정렬 키

기본키는 최대한 균등하게 분산 

Hashkey방식

 

 Capacity : 

RCU : Read Capacity Unit : 초당 4KB, 몇번을 읽느냐 

WCU : Write Capacity Unit : 초당 1KB, 몇번을 쓰느냐

 

Provisioned 방식 : RCU, WCU를 미리 할당 하는 방식, RCU, WCU 1000 : 다 사용하면, 에러남

Ondemand 방식 : RCU, WCU 사용 만큼 비용

Adaptive Capacity : 파티션 별로 RCU, WCU가 적용되는데, 다른 덜 사용한 파티션의 capacity를 가져다 사용

WCU 400, 4개 partition이면, 1 partition당 100이 max인데 1,2,3이 50사용하고, 4가 100을 넘기면 이전에는 에러 났는데

1,2,3의 미사용 capacity를 사용가능

Amazon DynamoDB Accelerator

 

 

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStarted.html

 

Getting Started with DynamoDB and AWS SDKs - Amazon DynamoDB

Thanks for letting us know this page needs work. We're sorry we let you down. If you've got a moment, please tell us how we can make the documentation better.

docs.aws.amazon.com

https://docs.aws.amazon.com/cli/latest/reference/dynamodb/scan.html

 

scan — AWS CLI 1.22.95 Command Reference

Note: You are viewing the documentation for an older major version of the AWS CLI (version 1). AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. F

docs.aws.amazon.com

 

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.html

 

Using Expressions in DynamoDB - Amazon DynamoDB

Thanks for letting us know this page needs work. We're sorry we let you down. If you've got a moment, please tell us how we can make the documentation better.

docs.aws.amazon.com

https://aws.amazon.com/ko/dynamodb/dax/

 

Amazon DynamoDB Accelerator(DAX)

DynamoDB와 마찬가지로 DAX는 완전관리형입니다. 따라서 하드웨어나 소프트웨어 프로비저닝, 설정 및 구성, 소프트웨어 패치, 분산 캐시 클러스터 운영 또는 확장 시 여러 인스턴스에 데이터 복제

aws.amazon.com

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.html

 

In-Memory Acceleration with DynamoDB Accelerator (DAX) - Amazon DynamoDB

In-Memory Acceleration with DynamoDB Accelerator (DAX) Amazon DynamoDB is designed for scale and performance. In most cases, the DynamoDB response times can be measured in single-digit milliseconds. However, there are certain use cases that require respons

docs.aws.amazon.com

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/BackupRestore.html

 

Using On-Demand Backup and Restore for DynamoDB - Amazon DynamoDB

Using On-Demand Backup and Restore for DynamoDB You can use the DynamoDB on-demand backup capability to create full backups of your tables for long-term retention, and archiving for regulatory compliance needs. You can back up and restore your table data a

docs.aws.amazon.com