Match a job Paths Subjects Questions Quizzes Pricing
Overview Read Practice

Practice — SQL vs NoSQL & Data Modeling for Scale (6 questions)

Pro content

Sign up free, then start a 14-day Pro trial — no card needed.

Intermediate Open Free

Choosing a Store for a Notifications Service Permalink →

You are designing a notifications service: 200 million users, each user accumulates up to a few thousand notifications (read/unread), the dominant query is "give me this user's latest 50 notifications", writes arrive from many producers (likes, comments, follows) at ~30,000/s peak, and there is no requirement for joins or ad-hoc analytical queries on this data.

  1. Which storage model best fits this workload, and why?
  2. Design the partition key and sort key (or equivalent) for the dominant query.
  3. What is the one requirement that, if added later, would force you to reconsider the choice?

Share this question

Advanced Open Pro

Single-Table Design for a Blog Platform

Unlock this question →
Intermediate Open Pro

Normalising an Order System That Keeps Breaking Reports

Unlock this question →
Advanced Open Pro

A Leaderboard That Melts One Partition

Unlock this question →
Intermediate Open Pro

Justifying (or Rejecting) a New Store

Unlock this question →
Intermediate Open Free

One Rename, 40,000 Writes Permalink →

A document store models "a user's display name" by denormalizing it directly into every post and comment document that user has ever made, so reads never need a join — a feed query just reads posts, no lookup required. User alice_99 has posted and commented 40,000 times over 3 years. She renames herself once.

What does that single rename cost, write-wise, in this design?

Share this question

We use cookies for product analytics to improve OmniAtlas. See our Privacy Policy.