Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gearman vs ZeroMQ

Has someone some feedback about distributed architectures with these engines? Which is the best, or in which cases which is the best election?

Regards!

like image 604
Christian Avatar asked Apr 07 '11 10:04

Christian


1 Answers

Gearman and ZeroMQ both serve different purposes. ZeroMQ is more like socket programming, or rather:

The socket library that acts as a concurrency framework.

Gearman on the other hand is a distributed job/worker solution. Although pretty bare bones, it does serve the purpose well. Gearman has actual job servers and libraries to create clients with. With ZeroMQ you'd have to build the job server yourself as well.

So, depending on what you want the answer to which to use will differ. If you want to distribute load by dispatching jobs to several servers and clients use Gearman. If you need to do socket programming, or rather network programming with a more general purpose ZeroMQ might be what you need.

like image 138
Htbaa Avatar answered Oct 09 '22 11:10

Htbaa