BTW, here's what I did.
In Program.cs replaced the code for barista with:
var barista1 = new RemoteAppDomainHost(typeof(BaristaBootStrapper))
.Configuration("Barista1.config");
barista1.Start();
var barista2 = new RemoteAppDomainHost(typeof(BaristaBootStrapper))
.Configuration("Barista2.config");
barista2.Start();
Removed Barista.config and added:
Barista1.config:
<bus threadCount="1"
loadBalancerEndpoint="msmq://localhost/starbucks.barista.balancer"
numberOfRetries="5"
endpoint="msmq://localhost/starbucks.barista1"
/>
<messages>
<add name="Starbucks.Messages.Cashier"
endpoint="msmq://localhost/starbucks.cashier"/>
</messages>
Barista2.config:
<bus threadCount="1"
loadBalancerEndpoint="msmq://localhost/starbucks.barista.balancer"
numberOfRetries="5"
endpoint="msmq://localhost/starbucks.barista2"
/>
<messages>
<add name="Starbucks.Messages.Cashier"
endpoint="msmq://localhost/starbucks.cashier"/>
</messages>
On Fri, Jun 5, 2009 at 12:39, Simone Busoli <[email protected]> wrote:
> Any hint about where to look to figure out what's going on?
>
>
> On Fri, Jun 5, 2009 at 12:31, Ayende Rahien <[email protected]> wrote:
>
>> No, it is not supposed to do that. Only one message should be sent from
>> the LB
>>
>>
>> On Fri, Jun 5, 2009 at 5:05 AM, Simone Busoli <[email protected]>wrote:
>>
>>> Some question about load balancing, I'm not sure I understand the concept
>>> completely.In the starbucks example the barista(s) uses a load balancer,
>>> so I suppose you can add another barista (using the same load balancer but
>>> with a different own endpoint) and everything would work as expected. For
>>> expected I mean that only one of them will prepare the drink, but trying it
>>> I see that each barista will prepare the drink
>>> instead, and the customer will receive two drinks.
>>> Is this what it's supposed to do?
>>>
>>>
>>>
>>
>> >>
>>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Rhino Tools Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---