Interview Prep/AWS/Storage and Databases

GSI vs LSI in DynamoDB?

IntermediateConceptStorage and Databases
Answer

A GSI has a different partition and sort key, its own provisioned throughput, is eventually consistent, and can be added any time. An LSI shares the table's partition key with an alternative sort key, supports strong consistency, must be created at table creation, and limits each partition key's item collection to 10 GB.

Default to GSIs. Back-pressure on a GSI can throttle writes to the base table.

aws All AWS questions Roadmap: AWS core services

More on Storage and Databases