tardis-dev / serum-vial

Real-time WebSocket market data API for Serum
Mozilla Public License 2.0
173 stars 60 forks source link

Question: Performance recommendations #28

Closed lenchik-ponchik closed 3 years ago

lenchik-ponchik commented 3 years ago

First of all thanks for a great project!

How should I start this application if I need all non-deprecated markets from serum-ts/markets.json? Are there any secrets? Why it's working so well on your public example?

If I start the application with 10 markets or less — everything works just fine.

If I increase the number of markets to more than 80 — messages come with a delay of up to 5 minutes.

For context, I am trying to build an application, that saves all trades on all markets to DB for generating OHLCV data + generating real-time charts.

Thanks.

thaaddeus commented 3 years ago

Hi @lenchik-ponchik which Solana RPC node you're using? Default one? it must be that you're getting rate limited by Solana RPC node which serum-vial is using as a data source. For Demo server I'm running dedicated solana RPC node so it's working fine.