开发者

What's the fastest Perl IPC/message queue for a single machine?

I'm working on a (primarily) Perl project and want to use a message queue to isolate proces开发者_C百科ses from each other. I have a work flow like this:

Input -> Receiver -> Processor(s) -> Output(s)

I need to handle several hundred transactions/second, so speed my biggest motivator. What is the fastest message queue system for this type of setup?

All of my processes run on the same machine, so I can use UNIX sockets or temp-files if it means better performance.

So far my two favorites are IPC::DirQueue and beanstalkd. Anyone have experience with both and can make conclusions about which is faster?

What else is available that would make a super-fast work queue on a single machine?


I don't know about IPC::Dirqueue or beanstalkd, but I've had good success with spread (with either the Spread or Spread::Message modules). It's easy to do multi-process (with another daemon running) and also multi-machine. The nice thing is that since it's group based you can easily attach another listener if you want to do things like logging, statistics or debugging without having to alter (or slow down) your processors.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜