MassTransit: Configure queue for multiple API instances
I’m introducing myself into Event-driven architecture using MassTransit with RabbitMQ on localhost and AWS on live environments, using .NET 5 Web APIs.
I’m introducing myself into Event-driven architecture using MassTransit with RabbitMQ on localhost and AWS on live environments, using .NET 5 Web APIs.
I have a queue of users(string of emails) a in c# and I want to send the user his location in this queue.
The documentation for the multiprocessing module shows how to pass a queue to a process started with multiprocessing.Process. But how can I share a queue with asynchronous worker processes started with apply_async? I don’t need dynamic joining or anything else, just a way for the workers to (repeatedly) report their results back to base.
What are the fundamental differences between queues and pipes in Python’s multiprocessing package?
I’m using python 2.7, and trying to run some CPU heavy tasks in their own processes. I would like to be able to send messages back to the parent process to keep it informed of the current status of the process. The multiprocessing Queue seems perfect for this but I can’t figure out how to get it work.
I want a long-running process to return its progress over a Queue (or something similar) which I will feed to a progress bar dialog. I also need the result when the process is completed. A test example here fails with a RuntimeError: Queue objects should only be shared between processes through inheritance.
I need a queue which multiple threads can put stuff into, and multiple threads may read from.