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.
More on Storage and Databases
Compare the S3 storage classes.BeginnerWhat is S3's consistency model?IntermediateHow does S3 versioning and delete work?BeginnerHow do S3 lifecycle rules work?IntermediateHow do bucket policies, ACLs and Block Public Access interact?IntermediateWhat are the S3 server-side encryption options?Advanced