ACID, Catching, CDN, DS Flashcards
What does ACID stands for and what does it mean?
A: Atomicity. Either the entire transaccion success or fails.
C: Consistency. All db rules are enforced or rollback.
I: Isolation: No transaction is affected by other in progress.
D: Durability. Once commited, it stays, even if the system crashes after.
Cap Theorem
A db can only enforce two of:
Consistency
Availability
Partition-Tolerance
What is a Data Lake, how do you scheme and query it?
Approach for big ammount of unstructured data. Thrown as text files (csv, json) into ex. Amazon S3.
Schemed by Amazon Glue, queried by Amazon Athena
How does catching work?
Horizontally Scalled Servers
In memory (fast)
Apps with more reads than writes
Writes invalidate catching
Expiration policy
Hotspots and Cold-start is a problem
Eviction policies for cache
LRU: Least Recently Used (Double Linked List)
LFU: Least Frequently used
FIFO: First in first out
Catching Technologies
Memcached: In memory key/value store. Open source.
Redis: More features, snapshots, replication, transactions, pb/sub, advanced data structures.
ElasticCache AWS.
How does CDN Work?
Geographically distributed edge locations.
Distributed Static Content
AWS CloudFront, Akamai
Mention Resilency strategies
Replicate data as a backup
Load Balancers with Geolocation
Distributed content across AZ and regions
Over provide
What are Distributed Storage Solutions?
Services for scalable, available and secure fast object storage. S3.
How does HDFS (Haddop distributed file system) work?
Files are broken up into “blocks” replicated across your server. Replication is rack-aware.
A “name node” or master coordinate operations, it has backups.
Clients read from nearest replica.