Chapter 2
Data and Storage
Databases, indexes, replication, partitioning, consistency, unique IDs and object storage.
Beginner
10 min2NoSQL FamiliesBeginner
8 min3Indexing: B-Trees, LSM Trees and Secondary IndexesIntermediate
9 min4Replication: Leaders, Followers and LagIntermediate
9 min5Partitioning, Sharding and Consistent HashingIntermediate
9 min6Consistency, the CAP Theorem and QuorumsIntermediate
9 min7Unique ID Generation: UUIDs, Counters and SnowflakeIntermediate
9 min8Blob and Object StorageIntermediate
10 minChapter quiz
Data and Storage · 6 questions
1.Two users try to buy the last item at the same time. Which approach prevents overselling?
2.A chat app needs the 50 newest messages of a conversation at 10,000 writes per second. Which store fits best?
3.Which statement about adding database indexes is correct?
4.With asynchronous replication, a user posts a comment and immediately sees it missing after a reload. What is the best fix?
5.A cluster uses hash(key) mod N and grows from 4 to 5 nodes. What happens, and what is the better design?
6.N = 3 replicas, W = 2, R = 2. Which statement is true?
0 of 6 answered

