PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/StubHub

Design Internal Chat and Re-engagement Emails

Last updated: May 31, 2026

Quick Overview

This question evaluates a candidate's competency in designing scalable, real-time messaging systems and re-engagement workflows, covering distributed systems concepts such as WebSocket-based bidirectional communication, presence, cross-server message routing, message persistence, APIs, storage trade-offs, inactivity detection, and email-triggering workflows. Commonly asked in the System Design category, it tests high-level architectural reasoning and practical application of scalability, reliability, and failure-handling trade-offs when integrating persistent WebSocket connections, cross-server routing, and background email jobs in a distributed platform.

  • medium
  • StubHub
  • System Design
  • Software Engineer

Design Internal Chat and Re-engagement Emails

Company: StubHub

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

Design an internal chat system for an event marketplace company. Requirements: - Employees can send and receive one-to-one messages in real time. - Clients use persistent WebSocket connections. - A user may connect to any chat server, so sender and recipient may be connected to different servers. - Messages should be delivered immediately to online users and stored for later retrieval if a user is offline. - Support presence information and basic conversation history. - Explain how bidirectional WebSocket communication is routed across multiple servers. - In the same overall platform, add a workflow that sends an email to customers who have not logged in for 10 days. Discuss the high-level architecture, APIs, storage choices, message routing, inactivity detection, scaling, reliability, and failure handling.

Quick Answer: This question evaluates a candidate's competency in designing scalable, real-time messaging systems and re-engagement workflows, covering distributed systems concepts such as WebSocket-based bidirectional communication, presence, cross-server message routing, message persistence, APIs, storage trade-offs, inactivity detection, and email-triggering workflows. Commonly asked in the System Design category, it tests high-level architectural reasoning and practical application of scalability, reliability, and failure-handling trade-offs when integrating persistent WebSocket connections, cross-server routing, and background email jobs in a distributed platform.

Related Interview Questions

  • Design a Marketing Email System - StubHub (medium)
  • Review getEvents endpoint for readability, performance, scalability, security - StubHub (hard)
  • Design Event Email System - StubHub (medium)
StubHub logo
StubHub
Feb 16, 2026, 12:00 AM
Software Engineer
Onsite
System Design
2
0

Design an internal chat system for an event marketplace company.

Requirements:

  • Employees can send and receive one-to-one messages in real time.
  • Clients use persistent WebSocket connections.
  • A user may connect to any chat server, so sender and recipient may be connected to different servers.
  • Messages should be delivered immediately to online users and stored for later retrieval if a user is offline.
  • Support presence information and basic conversation history.
  • Explain how bidirectional WebSocket communication is routed across multiple servers.
  • In the same overall platform, add a workflow that sends an email to customers who have not logged in for 10 days.

Discuss the high-level architecture, APIs, storage choices, message routing, inactivity detection, scaling, reliability, and failure handling.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More StubHub•More Software Engineer•StubHub Software Engineer•StubHub System Design•Software Engineer System Design
PracHub

Master your tech interviews with 8,000+ 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.