Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

Partition key and sort key

What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.

Partition key and sort key Bad keys create hot partitions and slow queries. PK spreads data. SK orders items that share a PK for range queries. Design from access patterns first: what will you Query? userId + createdAt lets you list one user's notes newest first.
Partition key and sort key · Download PNG
Read card text

What this card says

Why do we need it?

Bad keys create hot partitions and slow queries.

What is it?

PK spreads data. SK orders items that share a PK for range queries.

How to do it

Design from access patterns first: what will you Query?

PK userId SK noteId

Example

userId + createdAt lets you list one user's notes newest first.

See all AWS revision cards