Skip to content

Multiprocessing / multithreading with BLEAK to avoid asyncio data loss and connection failure #570

Answered by hbldh
sunshineinsandiego asked this question in Q&A
Discussion options

You must be logged in to vote

I felt that this was more of a question on how to implement something with Bleak than an issue.

If the non-interrupted stream is the top priority, you should definitely run it in a separate process, and pass the data from it to another process handling the plotting. Do this through an external queue, e.g. RabbitMQ or Mosquitto is my recommendation.

In the asyncio framing, the live plottning will most surely hinder the notifications from arriving in time.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sunshineinsandiego
Comment options

Answer selected by sunshineinsandiego
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #555 on June 07, 2021 09:25.