Replies: 1 comment 1 reply
-
Hard to say what the issue is, but a single process should easily be able to handle 5 symbols worth of trade/ticker data. Your queueing system may be the issue - I'm not sure how performant those are/arent for processing lots of small messages. You probably should only use something that supports asyncio, so while the data is being put somewhere for your other process to handle it, the I/O is not blocking the rest of the system |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
We want to subscribe to several exchanges and some of them with more a hundred symbols.
We are launching several processes with multiprocessing.Process, sending the information we want to a mp.manager.queue.
Then several processes consume the queue.
However, even decreasing the number of exchanges and symbols (5 symbols, 2 exchanges, subscribing to ticker and trades), we don't seem able to keep up with the queue.
We try to accumulate a fair enough quantity of updates per symbol before sending them to postgres.
Any help would be welcome. Not necessarily in fixing mine, but it would be great to know how others addressed this issue.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions