PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches
|Home/System Design/Stripe

Design ledger and bikemap integration

Last updated: May 19, 2026

Quick Overview

This question evaluates competency in designing strongly consistent financial ledgers and integrating an external routing service, testing data modeling, distributed transactions, linearizability and idempotency, scalability, security, API design, and observability in the System Design domain.

  • hard
  • Stripe
  • System Design
  • Software Engineer

Design ledger and bikemap integration

Company: Stripe

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

##### Question Design a ledger system with robust consistency and scalability guarantees. Explain how you would integrate an external Bikemap library or service into a larger application, covering API design, data flow, error handling, and deployment considerations.

Quick Answer: This question evaluates competency in designing strongly consistent financial ledgers and integrating an external routing service, testing data modeling, distributed transactions, linearizability and idempotency, scalability, security, API design, and observability in the System Design domain.

Related Interview Questions

  • Design a Distributed Metrics Counter - Stripe (hard)
  • Design a superhero incident dispatch system - Stripe (medium)
  • Design a Merchant Ledger Service - Stripe (medium)
Stripe logo
Stripe
Jul 29, 2025, 8:05 AM
Software Engineer
Onsite
System Design
225
0

System Design: Strongly Consistent Ledger and External Service Integration

Context and Goal

You are asked to design two components in a production-grade environment:

  • A financial ledger with strong consistency and high scalability.
  • An integration of an external "Bikemap" routing library/service into a larger application.

Assume:

  • Money movement requires correctness over availability. Writes must be strongly consistent. Reads can be tuned for performance while preserving correctness.
  • Bikemap is a third-party routing API used to fetch bicycle routes/metadata; think of it as a network API with SLAs, rate limits, and versioned contracts.

Part A — Ledger System Requirements

Design a ledger that provides:

  1. Consistency and correctness
    • Double-entry accounting (every transaction balances to zero).
    • Immutability and auditability (no destructive updates; reversible corrections).
    • Idempotent writes; exactly-once effects externally.
    • Strong write consistency (linearizable writes, serializable transactions).
  2. Scalability and performance
    • High write throughput; horizontal scaling.
    • Efficient balance reads (point-in-time and as-of time).
  3. Reliability and security
    • Multi-AZ durability, backups, disaster recovery.
    • Encryption at rest/in transit; access controls.
  4. Interfaces and operations
    • Well-defined APIs (create account, transfer, hold/release, reverse, query balance, list transactions).
    • Observability, schema evolution, and operational playbooks.

Describe: data model, write/read paths, sharding strategy, multi-account transaction handling, audit guarantees, idempotency, and failure handling.

Part B — Integrate an External Bikemap Service

Explain how you would integrate an external Bikemap library/service into a larger application, covering:

  1. API design
    • Internal domain API that remains stable even if the provider changes.
    • Versioning, contracts, and auth/secrets management.
  2. Data flow
    • Request flow, caching, rate limiting, retries, timeouts, and circuit breakers.
    • Sync vs async flows and background jobs.
  3. Error handling and resilience
    • Error taxonomy, fallback strategies, and observability.
  4. Deployment considerations
    • Environment promotion (dev/staging/prod), canaries, feature flags, infrastructure, and testing strategies.

Solution

Show

Comments (0)

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 7,500+ 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.