DEV Community

Cover image for System Design: Stock Exchange
Daniel
Daniel

Posted on

11

System Design: Stock Exchange

How would you design a Stock Exchange meant to operate at scale?

Estimated Usage

  • 500 million order per day
  • Uniform usage throughout the day
  • 200 listed companies on the market
  • 1:1 Buy to Sell orders

Functional Requirements

  • Users should be able to put in orders to buy or sell
  • Users should be able to cancel orders
  • Buy orders should be matched to sell orders with the same price if they exist
  • User accounts have a balance where they have to preload funds in order to place a buy order
  • User should be able to check the current price

Nonfunctional Requirements

  • 99.999% reliability
  • Price checks need to be updated within 3000 milliseconds

Try to submit your solution on LeetDesign, share the link in the comments and I'll give you feedback on how you did!

An image of the problem

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (1)

Collapse
 
bigbeard profile image
ShinJustinHolly3317

No sharing here?😢

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay