PracHub
QuestionsPremiumLearningGuidesInterview PrepCoaches
|Home/System Design/Anthropic

Design a one-to-one chat system

Last updated: Apr 8, 2026

Quick Overview

This System Design question evaluates a candidate's ability to architect a scalable, real-time one-to-one chat system, testing competencies in real-time protocols, presence detection, durable message storage, delivery state and ordering guarantees, deduplication, and the appropriate use of messaging technologies like Redis and Kafka.

  • medium
  • Anthropic
  • System Design
  • Software Engineer

Design a one-to-one chat system

Company: Anthropic

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Technical Screen

Design a one-to-one chat system for a web application. Assumptions: - Each user is active on at most one browser device at a time. - Group chat is out of scope. - The system should support real-time messaging between two users. Discuss the following: - How clients connect and exchange messages in real time. - How the system determines whether a user is online. - How to handle message delivery when the recipient is offline. - How to store messages, conversation metadata, unread counts, and delivery state. - How to preserve message ordering and avoid duplicate sends. - Whether Redis or Kafka should be used in different parts of the system, and why. - The core ideas behind Kafka and when it is or is not a good fit for chat delivery.

Quick Answer: This System Design question evaluates a candidate's ability to architect a scalable, real-time one-to-one chat system, testing competencies in real-time protocols, presence detection, durable message storage, delivery state and ordering guarantees, deduplication, and the appropriate use of messaging technologies like Redis and Kafka.

Related Interview Questions

  • Design a prompt playground - Anthropic (hard)
  • Scale Duplicate File Detection - Anthropic (medium)
  • Design One-to-One Chat - Anthropic (medium)
  • How to stream a large file to 1000 hosts fastest - Anthropic (medium)
  • Design guardrails and fallback for LLM reliability - Anthropic (hard)
Anthropic logo
Anthropic
Mar 28, 2026, 12:00 AM
Software Engineer
Technical Screen
System Design
27
0
Loading...

Design a one-to-one chat system for a web application.

Assumptions:

  • Each user is active on at most one browser device at a time.
  • Group chat is out of scope.
  • The system should support real-time messaging between two users.

Discuss the following:

  • How clients connect and exchange messages in real time.
  • How the system determines whether a user is online.
  • How to handle message delivery when the recipient is offline.
  • How to store messages, conversation metadata, unread counts, and delivery state.
  • How to preserve message ordering and avoid duplicate sends.
  • Whether Redis or Kafka should be used in different parts of the system, and why.
  • The core ideas behind Kafka and when it is or is not a good fit for chat delivery.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Anthropic•More Software Engineer•Anthropic Software Engineer•Anthropic System Design•Software Engineer System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.