TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Best Approach for brokerless Python workers?

1 点作者 febed大约 2 个月前
I&#x27;m developing a custom tool that needs to coordinate multiple long-running worker processes for task execution without relying on external brokers like Redis or RabbitMQ. We want to avoid multiprocessing.Pool due to the setup time required for spawning new processes. Instead, we prefer persistent, warmed-up worker processes that can handle tasks efficiently.<p>Would ZeroMQ still be the best choice for this, or are there other alternatives with minimal overhead?

1 comment

sargstuff大约 2 个月前
Ok, kinda sounds like mixing apples and oranges.<p>Are the multiple long-running worker processes working on distinct tasks (aka each is the equivalent of starting a distinct individual process&#x2F;program with no dependencies)<p>?? worker process that are awaiting data to process ??<p>simplified related bash shell examples :<p>aka guarantee sequencial process running : <a href="https:&#x2F;&#x2F;unix.stackexchange.com&#x2F;questions&#x2F;305039&#x2F;pausing-a-bash-script-until-previous-commands-are-finished" rel="nofollow">https:&#x2F;&#x2F;unix.stackexchange.com&#x2F;questions&#x2F;305039&#x2F;pausing-a-ba...</a><p>vs.<p>wait for all processes to end (can be modified to continual request for next thing(s) to do) : <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;356100&#x2F;how-to-wait-in-bash-for-several-subprocesses-to-finish-and-return-exit-code-0" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;356100&#x2F;how-to-wait-in-ba...</a>