Design the Nightly Neighborhood Digest Email Pipeline

Last updated: November 29, 2026

Quick Overview

Design a system that sends tens of millions of members a personalized daily or weekly digest email of top posts from their neighborhood, respecting each member's frequency settings, time zone and unsubscribe status.

Nextdoor
System Design
Software Engineer
Nextdoor
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design a system that sends tens of millions of members a personalized daily or weekly digest email of top posts from their neighborhood, respecting each member's frequency settings, time zone and unsubscribe status.

Email digests are one of Nextdoor's largest engagement channels, and a broken run means millions of missed or duplicated emails. The interviewer looks for a batch pipeline with clear stages, idempotent sends, time zone scheduling, and protection of sender reputation.

What the Interviewer Expects
  • Break the work into candidate selection, per-member assembly, rendering and sending
  • Schedule by local time zone instead of one global run
  • Make sends idempotent with a per member per digest key
  • Respect unsubscribes and frequency preferences checked at send time
  • Throttle to the email provider and monitor bounces and complaints
Key Topics to Cover
Batch pipelines
Idempotency
Time zone scheduling
Email deliverability
Rate limiting
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • The job crashes at 60% through. How do you resume without double sending?
  • How do you avoid emailing a post that was removed by moderation an hour before send?
  • How would you A/B test the subject line or the number of posts in the digest?
  • How would you cut cost if 70% of digests are never opened?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Daily and weekly digests, delivered around 7 am local time, top 5 to 10 posts from the member's audience. Never send twice for the same digest, never send to unsubscribed or bounced addresses. Scale: ...

High-Level Design

Stage 1 (per neighborhood, hourly by time zone): compute top candidate posts per neighborhood from the engagement store, since members of a neighborhood share most candidates. Stage 2 (per member): re...


Submit Your Answer
Markdown supported

Related Questions