M9-005M9: Senior ML & AI System DesignRecSys, Ads & Search ArchitectureMedium
⚡Flashcard Drill➔Mastery:

Design a Notification Timing, Volume & Unsubscribe-Guard System

🎯 Active Recall Self-Check (Draft First, Verify After)
Login-free practice tracker: recall core answer, audit pitfalls, and log review status.
Step 1 · Draft your concise answer & assumptions
Step 2 · Check Pitfalls & Follow-up Inquiries
Next: M9-006 →
📐 Mathematical Definition
U(i)=popen(i)−λ⋅poptout(i),Cap(u)≤BdailyU(i) = p_{\text{open}}(i) - \lambda \cdot p_{\text{optout}}(i),\quad \text{Cap}(u) \le B_{\text{daily}}
⚡ One-Sentence Core Answer
Target persuadable users via Uplift Modeling and solve daily send-volume vs permanent opt-out trade-offs using Lagrangian multipliers.

📌 Key Takeaways

  • •
    L1 Asymmetric Cost: one channel opt-out costs ~50x a single push click
  • •
    L2 Causal Uplift: filter out Sure-Things who open organically and focus strictly on Persuadables
  • •
    L2 Dual Solver: adjust Lagrangian penalty lambda online to maximize net opens under fixed volume caps
  • •
    L3 Quiet Hours: enforce local-timezone delivery windows and sliding 7-day caps in Redis

📐 Mathematical Derivations

Dual optimization reduces global constrained knapsack scheduling to a lightweight per-user threshold adjusted every 5 minutes.

🏭 Production Trade-offs

Replacing raw P(open) rankers with Uplift scores trims 30% redundant pushes while defending DAU and cutting uninstalls.
⚠️ Common Interview Pitfalls
  • ✕
    Spamming active loyal users who already open the app organically every morning
  • ✕
    Dispatching batch notifications without respecting recipient timezone quiet hours
🎯 Interviewer Follow-up Inquiries
  • ?
    How do holdout ghost-control groups measure long-term channel churn cleanly?
  • ?
    How do you stagger send queues smoothly across hourly timezone peaks?
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.
🎯 Drill This Card Now➔
📚

Associated Knowledge Base Guides & Mindmaps

← PreviousM9-004: Design an E-Commerce Semantic + Lexical Product Search & Re-Ranking Engine📋 Back to BankNext →M9-006: Design a Sub-10ms Real-Time Payment Fraud Detection System