Hi??as you say,within an S4 cluster, events are dispatched according to their 
key + hashing and mod . To broadcast, use a null key.
However,when I dispatch an event with a stream without keyfinder,it is not 
really broadcasted.
The real situation is:
I builded 4 nodes running in cluster1.Idispatched an event with a stream 
without keyfinder.
The result is that ,of the four nodes,two received the event,one received the 
event twice,and the remained one didn't receive the event.
I don't know where I was wrong.Would you like to help me?


------------------ ???????? ------------------
??????: "Matthieu Morel"<[email protected]>;
????????: 2013??4??15??(??????) ????11:15
??????: "s4-user"<[email protected]>; 

????: Re: ?????? event dispatch




On Apr 15, 2013, at 15:50 , ?????? wrote:





As you say,within an S4 cluster, events are dispatched according to their key + 
hashing and mod.
I want to dispatch events in adapter app and dispatch events by hashing on one 
string which I set myself.How to implement?



Have a look at the KeyFinder , it is used to identify extract keys from events.


Matthieu



------------------ ???????? ------------------
??????: "Matthieu Morel"<[email protected]>;
????????: 2013??4??15??(??????) ????9:35
??????: "s4-user"<[email protected]>; 

????: Re: event dispatch



Hi,

within an S4 cluster, events are dispatched according to their key + hashing 
and mod , so there is no round-robin. To broadcast, use a null key.

Across S4 clusters inter-app communication, (e.g. when injecting events from an 
adapter), keyless events (null key) are distributed in a round robin fashion.

Hope this helps,

Matthieu



On Apr 14, 2013, at 04:35 , ?????? wrote:

> Hi,I am new to S4.I want to know how to dispatch events to nodes.
> Including:
> How to dispatch events in a round robin fashion?
> How to dispatch one event to all nodes?
> How to dispatch one event to a particular node?
> Thanks!

.

Reply via email to