twitter-interviewer

Simulate a Principal Engineer interview on Twitter-scale timeline design.

94|22|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/PrepLabsAI/InterviewMentor --skill twitter-interviewer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: twitter-interviewer
Source: https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/systems-design/twitter-interviewer
Command: npx skills add https://github.com/PrepLabsAI/InterviewMentor --skill twitter-interviewer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps interviewers and candidates practice designing a Twitter-scale system that can generate timelines, manage fan-out, and detect trends at scale.

Core Features & Use Cases

  • Simulator persona: Principal Engineer interviewer focused on timeline architecture, fan-out strategies, social graph storage, and real-time delivery.
  • Interview structure: Phase 1 Requirements & Scope, Phase 2 High-Level Architecture, Phase 3 Deep Dives, Phase 4 Failure Scenarios & Scaling.
  • Adaptive difficulty and scoring: Adjust questions based on responses; provide a structured scorecard with feedback.
  • Visual and interactive prompts: Includes fan-out diagrams and timeline service architecture for discussion.

Quick Start

Begin the interview by invoking this skill and starting Phase 1 with a warm greeting and the first design question.

Frequently Asked Questions about twitter-interviewer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does fan-out work for Twitter timeline generation at scale?

Fan-out for Twitter timeline generation involves pushing tweets to per-user timeline caches in Redis via a scalable write path. A hybrid fan-out strategy is required to handle celebrity accounts efficiently while maintaining sub-200ms latency for real-time delivery.

How do I design a Twitter system design interview for timeline architecture?

Design a Twitter system design interview by structuring phases for requirements, high-level architecture, deep dives, and failure scenarios. Focus on timeline architecture, sharded tweet stores, social graph services, and streaming pipelines for trending-topic detection.

Can I use Redis for caching user timelines in a high-throughput social network?

Yes, Redis is used for per-user timeline caching in a high-throughput social network. It supports a scalable write path for real-time delivery and sub-200ms latency, working alongside a sharded tweet store and graph service.

What is the best way to handle celebrity accounts in a fan-out timeline system?

The best way to handle celebrity accounts in a fan-out timeline system is using a hybrid fan-out strategy. This approach balances the scalable write path and per-user timeline cache in Redis to prevent bottlenecks during viral tweet distribution.

How do I detect trending topics in a real-time streaming pipeline?

Detect trending topics in a real-time streaming pipeline by processing the scalable write path from the sharded tweet store. This pipeline aggregates data for trending-topic detection alongside the timeline generation and social graph storage services.

What are the failure scenarios when scaling a Twitter timeline architecture?

Failure scenarios when scaling a Twitter timeline architecture involve handling bottlenecks in the hybrid fan-out strategy, sharded tweet store availability, and graph service latency. The system design must ensure real-time delivery and sub-200ms timeline generation during these failures.