Using continuous query,

How to achieve event trigger for cache exactly only once per key even if
continuous query is listening in multiple nodes or multiple listener.
example:
1. Scenario 1:
 Node A: Start Continuous query 
 Node B: Start Continuous query 
 Node C: Insert or Update or Delete record ex: number from 1 to 100

Expected Output should be as below
 Node A - 1 ,2,3,4,5....50
 Node B - 51, 52, 53, 54, ... 100
 Above output is the expected output. Here, event per key should be
triggered exactly once across nodes.

Actual Output should be as below
 Node A - 1 ,2,3,4,5,....100
 Node B - 1, 2, 3, 4,5 ... 100
 
If this is not possible in Continuous query, then is there any way to
achieve this.

2. Scenario 2:
To achieve expected output,
 I am using singleton service per Cluster.
    Ex: Cluster A
              - Singleton service with Continuous query for cache
                Here problem is, service is running in only one instance.
How to achieve above output with multiple instance of service?




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to