<aside> 💡

Thing to know — queues are faster than db calls.

</aside>

Benefits of decoupling the orderbook

Screenshot 2026-05-07 at 10.36.54 AM.png

  1. Can horizontally scale the primary backend
  2. Primary backend can directly talk to db to take care of simpler calls like signup/signin/get existing orders etc.
  3. If orderbook crashes, rest of the backend still remains intact

Problems of decoupling the orderbook

  1. Issue still remains the same. The in memory orderbook will get lost if the orderbook ever crashes. We’ll come to its fix later