Design a Stock Exchange

Advanced · 24 min read · High-Level Design, Case Studies: Advanced

Order books, price-time matching, sequencing, determinism and low latency.

This is an Advanced lesson, part of Premium. What it covers:

  • 1. Clarify the problem
  • 2. Requirements
  • 3. Capacity estimation
  • 4. Order book and matching
  • 5. API
  • 6. High-level design
  • 7. Deep dives
  • 8. Failure modes
  • 9. Trade-offs summary
  • 10. What interviewers look for
  • Interview questions
  • Practice
  • Further reading

Previous: Design Metrics Monitoring & Alerting · Next: Recurring Design Patterns