开发者

Worker design pattern [closed]

开发者 https://www.devze.com 2023-02-10 00:40 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. 开发者_Python百科
Closed. This question needs to be more focused. It is not currently accepting answers.
开发者_Python百科

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 1 year ago.

Improve this question

What is "worker" design pattern?


It could be that you are after a worker thread pattern, where you use a queue to schedule tasks that you want to be processed "offline" by a worker thread. Some solutions will use a pool of worker threads instead of single thread to achieve performance gains by utilising paralelisation.


Something like MapReduce comes to mind. Where multiple tasks can be performed in parallel on worker nodes.

Edit: As @larsmans mentioned, this is known as the Master/Worker pattern.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号