Skip to Content
Acing the System Design Interview
book

Acing the System Design Interview

by zhiyong tan
January 2024
Intermediate to advanced
472 pages
15h 11m
English
Manning Publications
Content preview from Acing the System Design Interview

4 Scaling databases

This chapter covers

  • Understanding various types of storage services
  • Replicating databases
  • Aggregating events to reduce database writes
  • Differentiating normalization vs. denormalization
  • Caching frequent queries in memory

In this chapter, we discuss concepts in scaling databases, their tradeoffs, and common databases that utilize these concepts in their implementations. We consider these concepts when choosing databases for various services in our system.

4.1 Brief prelude on storage services

Storage services are stateful services. Compared to stateless services, stateful services have mechanisms to ensure consistency and require redundancy to avoid data loss. A stateful service may choose mechanisms like Paxos for strong ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Designing Data-Intensive Applications

Designing Data-Intensive Applications

Martin Kleppmann
Prompt Engineering for LLMs

Prompt Engineering for LLMs

John Berryman, Albert Ziegler

Publisher Resources

ISBN: 9781633439108Publisher SupportPublisher WebsiteSupplemental ContentErrata PageOtherPurchase Link