[zeromq-dev] .NET Example

mitcheloc mitcheloc at gmail.com
Sat Apr 25 09:07:40 CEST 2009

Thanks Martin!
In regard to your comment about writing to a database. That is one of the
major features I was looking for in queue management software. I do not want
to keep track of and maintain a database schema at every host I have set up
to run a piece of my service.

I will be using the queue software to distribute the load of processing a
task across many servers... I.e.

Step 1. Receive and store audio file from user on server A
Step 2. Send file to server B to be converted to a different format.
Step 3. Send file to server C to have it delivered via e-mail.
Step 4. Send message to server D to have the meta data stored in a
relational database table.

Now you can see the problem if I were to store the file in an outbound queue
and the server were to lose power. I can't have a file disappear from within
the system. So in my application some sort of fault tolerant mechanisms
should be used here.

I really appreciate your reply but it looks like in my case I will have to
look at another queue software that has this sort of feature.

ØMQ does look like a good project, and one feature that specifically caught
my eye was the amount of message per second and the sending rate was in the
megabits.. or was it gigabits?!!! made it really impressive.

I will keep ØMQ in mind for a future project.

Thank you,
Mitchel Constantin

On Sat, Apr 25, 2009 at 1:25 AM, Martin Sustrik <sustrik at fastmq.com> wrote:

> Hi Mitchel,
>  Congrats on the product, ØMQ looks really neat.
>> I've been evaluating messaging systems for the last week and would really
>> like to try out ØMQ.
>> Are there any C# or .NET examples available?
> Have a look at performance tests (cs_local_thr.cs, cs_remote_thr.cs etc.)
> Use C++ man page for detailed info on the API. Function names, parameter
> names and semantics are the same for all languages:
> http://www.zeromq.org/local--files/area:docs-v06/api_thread_t.pdf
>  I did add libclrzmq.dll to one of my .NET projects. However, I couldn't
>> figure out what the next step was.
>> Does ØMQ offer persistent storage for messages? (Basically, to CYA in the
>> event that a server went down and came back up.)
> 0MQ doesn't have a server. It uses "brokerless" model. Thus you can choose
> either to communicate directly between 2 applications or you can write your
> own mini-broker. Have a look at "chat" example. The "chatroom" component is
> actually a mini-broker consisting of a single queue.
> As for persistent messages, no, they are not supported at the moment
> (although on-disk offload of messages is supported). You'll have to write
> your messages into database by hand. However, note that storing message into
> database decreases performance by approximately two orders of magnitude, so
> you should decide whether it's worth of it.
> Hope this helps.
> Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090425/a99acfac/attachment.htm>

More information about the zeromq-dev mailing list