System design interview questionHard
ByteDance / TikTok

Design Anonymous Group Messaging

Design a group messaging application where each member has a different masked identity in every group.

1. Problem Statement

Design a group messaging app where members cannot see one another's real identities and each user receives a different anonymous identity in every group.

2. Architecture Discussion Map

Use this as one discussion aid, not a single correct answer. Your design should follow from the requirements, scale, and trade-offs you establish.

Rendering architecture diagram...
Mermaid Source (For AI Bots)
graph LR
    A["Design Anonymous Group Messaging"]
    A --> F1["Group-scoped pseudonym generation"]
    A --> F2["Authorization and identity mapping"]
    A --> F3["Real-time and offline message delivery"]
    A --> F4["Media attachments and fan-out"]
    A --> F5["Moderation, reporting, and privacy"]

3. Key Focus Areas

  • 1
    Group-scoped pseudonym generation
  • 2
    Authorization and identity mapping
  • 3
    Real-time and offline message delivery
  • 4
    Media attachments and fan-out
  • 5
    Moderation, reporting, and privacy

4. What the Interviewer Looks For

The interviewer probes these areas, and the report grades the interview against them.

  • Threat model, scope, and estimation
  • Pseudonymous identity design
  • Messaging, ordering, and delivery
  • Moderation, abuse, and legal access
  • Privacy leakage and data protection

5. What Strong Candidates Should Demonstrate

  • Separate durable account identity from group-scoped pseudonyms.
  • Preserve moderation and abuse investigation without exposing identities to members.
  • Design reliable real-time and offline message delivery.

Want interactive feedback?

Practice drawing this system component-by-component on a live whiteboard while the interviewer probes at your target level.

Continue to Dashboard

Core Concepts

MessagingIdentityPrivacyModeration

Continue preparing

Build a complete software engineer mock interview plan

Prepare by company

Related System Design

Design a Cross-Product Tagging System

Design a shared tagging service that lets users apply tags to entities across multiple Atlassian products, with consistent search and deduplication.

Related System Design

Design a Distributed File System

Design a GFS- or HDFS-style file system that stores petabytes of large files across thousands of servers in one data center for batch processing.

Related System Design

Design a Distributed Message Queue

Design a high-throughput distributed message queue similar to Apache Kafka, with durable replay from stored offsets.