Data Stores Flashcards
Concepts
What are the three types of data persistence?
Persistent, Transient, Ephemeral
Concepts
What is a persistent data store?
Durable data that sticks around after reboots, restarts, power cycles, etc.
Glacier, RDS
Concepts
What is a transient data store?
Temporary data that is stored and passed along to another process or storage
ex. SQS, SNS
Concepts
What is an ephemeral data store?
A temporary store where data is lost after stop.
ex. EC2 Instance store, memcached
Concepts
Explain IOPS
A measure of how fast we can read and write to a device
Concepts
What is throughput?
A measure of how much data can be moved at a time
Concepts
What are the two types of consistency models in data storage?
ACID and BASE
Concepts
What is ACID consistency model?
Atomic - All or nothing
Consistent - Transactions are valid
Isolated - Transactions don’t interfere with each other
Durable - Transactions stick around and won’t disappear.
Concepts
What is the BASE consistency model?
Basic availability - Values availability even if stale
Soft-state - Might not be consistent across all stores
Eventual consistency - Will achieve consistency eventually
Concepts
What is the benefit of ACID over BASE?
Data is always consistent
Concepts
What is the benefit of BASE?
It scales much better than ACID
S3
What kind of Store is S3?
Object Store
S3
What is the maximum object that can be stored in S3?
5TB
S3
What is the maximum PUT size when uploading to S3?
5GB
S3
When is it recommended to use multi-part uploads?
When the file size is larger than 100MB
S3
The S3 “path” is not a file path, but what?
ex: s3://mybucket/finance/april/16/invoice_45675.pdf
A “key”
This key uniquely identifies the record in the file store. The record be