Design Dashboard Search Across Charges, Customers and Invoices
Last updated: November 29, 2026
Quick Overview
Design the search behind the Stripe Dashboard search bar, letting a merchant type an email, last four digits, amount, id prefix or free text and get relevant payments, customers, invoices and subscriptions from their own account within a few hundred milliseconds.
Stripe
November 29, 20260
0
0 solved
Design the search behind the Stripe Dashboard search bar, letting a merchant type an email, last four digits, amount, id prefix or free text and get relevant payments, customers, invoices and subscriptions from their own account within a few hundred milliseconds.
Support agents and finance teams at Stripe merchants live in the Dashboard, and finding "the charge for jane at example.com last Tuesday for 49 dollars" quickly is a daily task. The interviewer checks strict tenant isolation, near-real-time indexing from the primary datastore, query understanding for structured tokens, and sensible handling of very large accounts.
What the Interviewer Expects
- Enforce account isolation in the index design, not only in application code
- Index from a change data capture stream so new objects are searchable within seconds
- Parse structured tokens (ids, emails, amounts, card last four, dates) before free-text matching
- Rank by exact-match strength and recency, grouped by object type
- Handle huge accounts without hurting small ones (routing and sharding by account)
- Respect data sensitivity: never index full card numbers, and honor redaction and deletion
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How would you support filters like `amount>100 status:failed` in the same box?
- How do you handle Connect platforms that need to search across their connected accounts?
- What is your plan for reindexing everything after a schema change?
- How would you keep results consistent right after a merchant edits a customer's email?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: one search box over several object types; exact lookups by id, email, last four, amount, metadata values; fuzzy text over names and descriptions; results grouped by type with the best matc...
High-Level Design
- Source of truth stays in the primary document store. A CDC pipeline publishes inserts and updates per object into a log.
- Indexer workers map each object to a search document with onl...