My intention is to merge attributes from two streams in siddhi.
I'm using the "join" with window attribute to merge two streams in my siddhi query and inputting the result of the join to another stream to enrich it.
The window attributes (window.time(1 sec) or window.length(1)) works well when the incoming events are coming at a regular interval of 1 sec or more.
When (say for example 10 or 100) events are sent at the same time(within a second). Then the result of the join is not in expected terms.
from EventInputStreamOne#window.time(1 sec) as i
join EventInputStreamTwo as s
on i.variable2 == s.variable2
select i.variable1 as variable1, i.variable2 as variable2, s.variable2 as variable2
insert into EventOutputStream;
Kindly let me know whether is there any way to merge two streams where the incoming events has to be treated/processed uniquely even when the number of events sent at a time(within a second) are large.