Design Developer Request Logs for Every API Call

Last updated: November 29, 2026

Quick Overview

Design the system that records every Stripe API request and response for each account and lets developers search and inspect them in the Dashboard within seconds, filtered by endpoint, status code, API key, idempotency key and time.

Stripe
System Design
Software Engineer
Stripe
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the system that records every Stripe API request and response for each account and lets developers search and inspect them in the Dashboard within seconds, filtered by endpoint, status code, API key, idempotency key and time.

Being able to see exactly what your integration sent and what Stripe returned is a large part of Stripe's developer experience, and debugging a failed integration usually starts in request logs. The interviewer checks a write path that never slows down the API, a storage design for enormous append-only volume with tenant-scoped queries, and careful handling of sensitive fields.

What the Interviewer Expects
  • Keep logging off the API's critical path with asynchronous, buffered emission
  • Redact secrets and card data before anything is persisted
  • Choose storage for append-only, time-ordered, tenant-scoped data (columnar or wide-column)
  • Design queries around account plus time range with secondary filters
  • Set retention and tiered storage to bound cost
  • Define freshness and completeness targets and how you measure them
Key Topics to Cover
observability
log pipelines
columnar storage
data redaction
multi-tenancy
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you guarantee that a request which returned an error is always visible in logs?
  • How would you support full-text search inside request bodies without exploding cost?
  • How do you handle an account that makes ten thousand requests per second?
  • How would you let a developer export logs for a week to their own warehouse?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: capture method, path, account, API key id (not the key), request and response bodies, status, latency, idempotency key, API version and request id; list and filter by time, status, endpoin...

High-Level Design
  1. Emission: the API frontend builds a log record after the response is sent, runs a redactor (drops card numbers, CVC, secret keys and configured sensitive fields), and pushes it to a local a...

Submit Your Answer
Markdown supported

Related Questions