One way bus with RSB

8 views
Skip to first unread message

Ayende Rahien

unread,
Oct 25, 2009, 6:24:04 PM10/25/09
to rhino-tools-dev
FYI,
I am going to shortly push an addition to RSB that provide one way bus:

public interface IOnewayBus
{
    void Send(params object[] msgs);
}


This can only send, and it is completely stateless. I need it for a single scenario, and that is what it is doing.
There is no configuration support for that, I hope that someone will step up for implementing it, for right now, I am using it like this:

var oneWay = new OnewayBus(new[]
{
    new MessageOwner
    {
        Endpoint = bus.Endpoint.Uri,
        Name = "System",
    },
}, new MessageBuilder(container.Resolve<IMessageSerializer>(), null));

oneWay.Send(...);

The only logic it contains is knowing where to send the messages to based on their owners.

Damian Hickey

unread,
Oct 27, 2009, 8:51:33 AM10/27/09
to Rhino Tools Dev
This is great. I only spiked at rhino-esb last Friday and our
(current) scenario is fire-and-forget (aka one-way).

Will give it a spin shortly.
Reply all
Reply to author
Forward
0 new messages