[Python] Is Using Queues in a Daisy Chain for Multiprocessing a Bad Practice? [closed]

Discussão em 'Python' iniciado por Stack, Dezembro 20, 2024.

  1. Stack

    Stack Membro Participativo

    I am wondering if it is considered bad practice to use queues in a daisy chain fashion.

    Here is my setup:

    In the context of operating an instrument, I am using multiprocessing with one producer that sends data every second to two workers via two separate queues:

    • One worker saves the raw data.
    • The other worker performs calculations on the data.

    After completing the calculations, the second worker sends the analyzed data to a third worker using another queue. This third worker is responsible for plotting the data.

    Is it considered bad practice to structure the workflow in this way?

    Continue reading...

Compartilhe esta Página