Siddhi 5.1 Features¶
New features of Siddhi 5.1
Information on new features of Siddhi 5.1 can be found in the release blog.
Development and deployment¶
SQL like language for event processing¶
- Siddhi Streaming SQL allows writing processing logic for event consumption, processing, integration, and publishing as a SQL script.
Web based editor¶
- Siddhi Editor provides graphical drag-and-drop and source-based query building capability, with event flow visualization, syntax highlighting, auto-completion, and error handling support.
- Event simulation support to test the apps by sending events one by one, as a feed, or from CSV or database.
- Ability to export the developed apps as
.siddhifiles, or as Docker or Kubernetes artifacts with necessary extensions.
- Siddhi test framework provides tools to build unit, integration, and black-box tests, to achieve CI/CD pipeline with agile DevOps workflow.
- App version management supported by manging
.siddhifiles in a preferred version control system.
Multiple deployment options¶
- Embedded execution in Java and Python as libraries.
- Run as a standalone microservice in bare-metal, VM, or Docker.
- Deploy and run as a standalone or as distributed microservices natively in Kubernetes, using Siddhi Kubernetes operator.
Consume and publish events with various data formats¶
- Consume and publish events via
Change Data Capture (CDC)(From
Google Cloud Storage, and
- Support message formats such as
- Rate-limit the output based on time and number of events.
- Perform load balancing and failover when publishing events to endpoints.
Data filtering and preprocessing¶
- Filter event based on conditions such as value ranges, string matching, regex, and others.
- Clean data by setting defaults, and handling nulls, using
if-then-elsefunctions, and many others.
- Support data extraction and reconstruction of massages.
- Inline mathematical and logical operations.
- Inbuilt functions and 60+ extensions for processing
regex, and others.
- Ability to write custom functions in
Data store integration with caching¶
- Query, modify, and join the data stored
in-memorytables which support primary key constraints and indexing.
- Query, modify, and join the data stored in stores backed by systems such as RDBMS (
- Support low latency processing by preloading and caching data using caching modes such as
Service integration and error handling¶
- Support for calling
gRPCservices in a non-blocking manner to fetch data and enrich events.
- Handle responses accordingly for different response status codes.
- Various error handling options to handle endpoint unavailability while retrying to connect, such as;
- Logging and dropping the events.
- Waiting indefinitely and not consuming events from the sources.
- Divert the events to error stream to handle the errors gracefully.
- Aggregate of data using
count, average (
distinctCount, and standard deviation (
- Event summarization based on time intervals using
sliding time, or
- Event summarization based on number of events using
sliding length, and
- Support for data summarization based on sessions and uniqueness.
- Ability to run long running aggregations with time granularities from seconds to years using both in-memory and databases via
- Support to aggregate data based on
group byfields, filter aggregated data using
havingconditions, and sort & limit the aggregated output using
- Execution of rules based on single event using
matchfunctions, and many others.
- Rules based on collection of events using data summarization, and joins with streams, tables, windows or aggregations.
- Rules to detect event occurrence patterns, trends, or non-occurrence of a critical events using complex event processing constructs such as
Serving online and predefined ML models¶
- Serve pre-created ML models based on
PMMLthat are built via Python, R, Spark, H2O.ai, or others.
- Ability to call models via HTTP or gRPC for decision making.
- Online machine learning for clustering, classification, and regression.
- Anomaly detection using markov chains.
Scatter-gather and data pipeline¶
- Process complex messages by dividing them into simple messages using
tokenizefunction, process or transform them in isolation, and group them back using the
- Ability to modularize the execution logic of each usecase into a single
.siddhifile (Siddhi Application), and connect them using
in-memorysink to build a composite event-driven application.
- Provide execution isolation and parallel processing by partitioning the events using keys or value ranges.
- Periodically trigger data pipelines based on time intervals, and cron expression, or at App startup using
- Synchronize and parallelize event processing using
- Ability to alter the speed of processing based on event generation time.
Realtime decisions as a service¶
- Act as an HTTP or gRPC service to provide realtime synchronous decisions via
- Provide REST APIs to query
named-aggregations, and database backed stores such as RDBMS, NoSQL DBs to make decisions based on the state of the system.
Snapshot and restore¶
- Support for periodic incremental state persistence to allow state restoration during failures.