[rabbitmq-discuss] wct + pubsub

Alexis Richardson alexis.richardson at cohesiveft.com
Wed Sep 24 11:27:48 BST 2008


Andrius

On Wed, Sep 24, 2008 at 11:22 AM, Andrius Norkaitis
<Andrius.Norkaitis at oryo.lt> wrote:
> Thanks. I'll take close look at .NET Client documentation and try it.
> I have looked at WCF examples already, but I still don't get how to achieve
> pubsub using WCF.
> I can use Duplex Services as example and create my own pubsub implementation
> but in this case I would need to manage the list of subscribers with their
> callback channels (and with multiple auto created queues of each subscriber
> as I guess).
> How to do pubsub with WCF using RabbitMQ exchanges and routing? Maybe it can
> be achieved only using plain .NET client implementation and not WCF?

You need to use a RabbitMQ topic exchange.  It does not matter whether
you use the C# .NET client, or the full WCF integration, because both
perform the same *underlying* AMQP action of publishing to an
exchange.  It is the topic exchange and routing key that gives you the
pubsub behaviour you want.  See the user guide for more info.

alexis





> Andrius
>
>
> -----Original Message-----
> From: alexis.richardson at gmail.com [mailto:alexis.richardson at gmail.com] On
> Behalf Of Alexis Richardson
> Sent: 2008.09.24 12:38
> To: Andrius Norkaitis
> Cc: rabbitmq-discuss at lists.rabbitmq.com
> Subject: Re: [rabbitmq-discuss] wct + pubsub
>
> Andrius
>
>
> On Wed, Sep 24, 2008 at 10:25 AM, Andrius Norkaitis
> <Andrius.Norkaitis at oryo.lt> wrote:
>> Hello,
>>
>> I'm .NET developer and want to implement pubsub in WAN using RabbitMQ.
>> Publishers would publish orders and they must be delivered to all
>> Subscribers which are online and matches  some criterions (etc. city,
> order
>> type). I wonder is RabbitMQ suitable for this? Can RabbitMQ do routing for
>> me or should I implement pubsub myself?
>
> RabbitMQ can do this.  See the User Guide on the dotnet downoad page,
> specifically section 3.3 for this case.
>
>
>> Can this be done with WCF?
>
> Yes - the same web page provides a WCF guide as well ;-)
>
>
>
>> Any examples or other reference where can I start would be appreciated.
>
> Please try the above PDFs and let us know if you get stuck!
>
> alexis
>
>
>
>
>
>>
>> Thanks for help in advance.
>>
>>
>>
>> Best regards,
>>
>> Andrius
>>
>>
>>
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>
>>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>




More information about the rabbitmq-discuss mailing list