본문 바로가기
Database#Database#AWS조회 35

DynamoDB Partition Key란?

정의

DynamoDB 데이터 분산 기준 키. Hotspot 방지가 설계의 핵심.

Partition Key

DynamoDB는 PK로 데이터를 자동 샤드한다. 특정 키에 쏠리면 throttle.

설계 팁

  • 고유성 높은 키 (timestamp 단독 X)
  • Composite key (partition + sort)
  • Write sharding 패턴

🔗 함께 보면 좋은 용어

Database 전체 →