Design weekly comment digest

Quick Overview

This question evaluates understanding of scalable system architecture, integration with external ML services, handling rate limits, reliable scheduling and delivery, data modeling for aggregation and deduplication, and fault-tolerant ranking under load.

Design weekly comment digest

Company: Clickup

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

Design a service that sends a weekly email digest of the top comments on each post to the post owner. Requirements: - Posts receive comments throughout the week. - Once per week, each post owner should receive an email containing the top `N` comments for their post. - Comment quality is determined by an external ML scoring service. - The ML scoring service is rate-limited and cannot score all comments at once at the end of the week. - The system should scale to many posts and comments, tolerate retries and partial failures, and avoid duplicate emails. Describe the architecture, data model, scheduling strategy, how comments are selected and scored over the course of the week, how to handle ML service rate limits, how final ranking is produced, and how the digest email is generated and delivered reliably.

Overview: This question evaluates understanding of scalable system architecture, integration with external ML services, handling rate limits, reliable scheduling and delivery, data modeling for aggregation and deduplication, and fault-tolerant ranking under load.

|Home/System Design/Clickup
Clickup logo
Clickup
Dec 15, 2025
mediumSoftware EngineerOnsiteSystem Design
5
0

Design a service that sends a weekly email digest of the top comments on each post to the post owner.

Requirements:

  • Posts receive comments throughout the week.
  • Once per week, each post owner should receive an email containing the top N comments for their post.
  • Comment quality is determined by an external ML scoring service.
  • The ML scoring service is rate-limited and cannot score all comments at once at the end of the week.
  • The system should scale to many posts and comments, tolerate retries and partial failures, and avoid duplicate emails.

Describe the architecture, data model, scheduling strategy, how comments are selected and scored over the course of the week, how to handle ML service rate limits, how final ranking is produced, and how the digest email is generated and delivered reliably.

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...