I'm new to Siddhi, and I got several questions:
- Is SiddhiManager thread safe? Is it a good practice one shared instance per JVM?
How to define stream and add query at runtime? It seems it only has siddhiManager.createExecutionPlanRuntime(plan) which will create a new ExecutionPlanRuntime instance. And how to redefine stream and query?
What's inEvents and removeEvents in QueryCallback?
executionPlanRuntime.addCallback("query1", new QueryCallback() { @Override public void receive(long timeStamp, Event[] inEvents, Event[] removeEvents) { EventPrinter.print(timeStamp, inEvents, removeEvents); } });
- How would Siddhi scale, if I have lots of stream and queries?
Thanks!