PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Stripe

Design a superhero incident dispatch system

Last updated: May 31, 2026

Quick Overview

This question evaluates system design and distributed systems competencies, including geospatial indexing, real-time location ingestion, low-latency matching algorithms, stateful trip lifecycle management, scalability, and fault tolerance.

  • medium
  • Stripe
  • System Design
  • Software Engineer

Design a superhero incident dispatch system

Company: Stripe

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

## System Design: Superhero Dispatch (Uber-like) System Design a system that dispatches superheroes to real-world incidents (e.g., fires, robberies, monster attacks) across a city or globally. ### Scenario - Civilians (or sensors) create **incident requests** with location and details. - The platform finds and assigns an appropriate **superhero** to respond. - Superheroes continuously publish their **live location** while available and en route. ### Functional requirements 1. **Create incident**: Accept a new incident with: - `incident_type` (fire/medical/crime/etc.) - `location` (lat/lon) - `priority` (P0–P3) - optional constraints (needs flying hero, water powers, max response time) 2. **Hero availability**: Heroes can go online/offline and set capability metadata. 3. **Matching/dispatch**: - Find a suitable hero near the incident. - Prefer shortest ETA while satisfying constraints. - Support reassignment if hero rejects/times out. 4. **Trip lifecycle**: Track states such as `CREATED -> MATCHING -> ASSIGNED -> EN_ROUTE -> ARRIVED -> RESOLVED/CANCELED`. 5. **Real-time updates**: - Civilians can see assignment + hero ETA. - Heroes receive incident details and navigation updates. 6. **Reliability**: No double-assigning the same hero to two incidents; handle retries/idempotency. ### Non-functional requirements - Low-latency matching (e.g., p95 < 1–2s for common cases). - High availability; graceful degradation during traffic spikes (e.g., city-wide disaster). - Scalable location ingestion (large number of frequent hero GPS updates). ### What to cover - APIs (high level) - Data model and storage choices - Matching algorithm (including a **geospatial index**) - Architecture/services and communication patterns - Handling failures, race conditions, and hot spots - Scaling plan (partitioning/sharding, caches, queues/streams)

Quick Answer: This question evaluates system design and distributed systems competencies, including geospatial indexing, real-time location ingestion, low-latency matching algorithms, stateful trip lifecycle management, scalability, and fault tolerance.

Related Interview Questions

  • Design a Superhero Dispatch System - Stripe (medium)
  • Design a Distributed Metrics Counter - Stripe (hard)
  • Design a Merchant Ledger Service - Stripe (medium)
  • Design a local activity counter service - Stripe (hard)
  • Design ledger and bikemap integration - Stripe (hard)
Stripe logo
Stripe
Feb 12, 2026, 12:00 AM
Software Engineer
Onsite
System Design
9
0
Loading...

System Design: Superhero Dispatch (Uber-like) System

Design a system that dispatches superheroes to real-world incidents (e.g., fires, robberies, monster attacks) across a city or globally.

Scenario

  • Civilians (or sensors) create incident requests with location and details.
  • The platform finds and assigns an appropriate superhero to respond.
  • Superheroes continuously publish their live location while available and en route.

Functional requirements

  1. Create incident : Accept a new incident with:
    • incident_type (fire/medical/crime/etc.)
    • location (lat/lon)
    • priority (P0–P3)
    • optional constraints (needs flying hero, water powers, max response time)
  2. Hero availability : Heroes can go online/offline and set capability metadata.
  3. Matching/dispatch :
    • Find a suitable hero near the incident.
    • Prefer shortest ETA while satisfying constraints.
    • Support reassignment if hero rejects/times out.
  4. Trip lifecycle : Track states such as CREATED -> MATCHING -> ASSIGNED -> EN_ROUTE -> ARRIVED -> RESOLVED/CANCELED .
  5. Real-time updates :
    • Civilians can see assignment + hero ETA.
    • Heroes receive incident details and navigation updates.
  6. Reliability : No double-assigning the same hero to two incidents; handle retries/idempotency.

Non-functional requirements

  • Low-latency matching (e.g., p95 < 1–2s for common cases).
  • High availability; graceful degradation during traffic spikes (e.g., city-wide disaster).
  • Scalable location ingestion (large number of frequent hero GPS updates).

What to cover

  • APIs (high level)
  • Data model and storage choices
  • Matching algorithm (including a geospatial index )
  • Architecture/services and communication patterns
  • Handling failures, race conditions, and hot spots
  • Scaling plan (partitioning/sharding, caches, queues/streams)

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Stripe•More Software Engineer•Stripe Software Engineer•Stripe 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.