<div class="gmail_quote"><br>Hi <br><br>Can anyone tell me how to Implement temporal based event correlation using drools fusion in a load balancing environment.<br>What is the best practice in a situation like this??<br><br>
Use case : To correlate  events which comes into the system with in a time window.<br>
<br>Scenario1:<br>Single System Scenario: that is One working memory<br><br>1.All the events come into the system, <br>2.Temporal based rules are written using Drools-Fusion.<br>3.Correlations takes place if all the events come with in the time window, else the rule expires.<br>

Note: All these takes place with in a single working memory ( Single System)<br><br><br>Scenario2:<br>
Two System Scenario in active/active: that is two working memories<br><br>1.All the events come into the system, <br>
2.Temporal based rules are written using Drools-Fusion.<br>3. Same rules are deployed in both the systems (active/active)<br>4.Both systems are load-balanced, <br>5. Event1 goes to System1,  Event2 goes to System2 and again Event3 goes system1. ( load -balanced)<br>

<br>As a result,   System1 recieves 2 events out of 3 events, and System2 the other 1 event.  <br><br><span style="background-color: rgb(255, 255, 0);">Correlation never happens since I dont recieve all the events in a single working memory.</span><br>

<br>How do we handle this kinda scenario??<br><br>Do we have any best practise that is followed in a clustered or load-balanced environment??<br><br>Pls help me.. I am stuck.<br><br>Regds<br>Chetan<br><br><br><br>
<br><br><br><br>In a single system, Fusion/temporal based correlation works completely fine. <br><br>Use case: <br>I have a situation, where events flow into two active components (both running simultaneosly)<br>
</div><br>