-
1. Re: Master / Worker Pattern & jvm
marklittle Feb 11, 2008 5:23 AM (in response to charliem)We've been doing some work in that area with a customer. It's possible with the 4.2.1 ESB, but it'll be a lot easier in the next community and platform releases.
If you have to roll your own, then you could use the event manager, for instance (if you don't want to tie yourself to JMS, say). Stripe the data in whatever way makes sense for you and then publish a notification on to the event bus. Depending on how you want to implement this, the event listeners could compete for the work. If they do the message receipt and work in the scope of the same transaction, then a failure will obviously place the work back in the pool for some other listener to pull. -
2. Re: Master / Worker Pattern & jvm
charliem Feb 11, 2008 9:21 AM (in response to charliem)And concerning my second question (split on several machines) ?
-
3. Re: Master / Worker Pattern & jvm
marklittle Feb 11, 2008 9:46 AM (in response to charliem)If the workers are connected using JMS then they can be on different machines.