Architecture¶
Processing Model¶
Delivery Guarantees¶
Inobi provides at-most-once delivery semantics. Events are processed as they arrive and are not retried or reprocessed on failure. A single event can result in multiple alerts.
On restart, the engine can resume from where it left off: file inputs can continue reading from the previous file position, and Kafka inputs can resume from the consumer group's committed offset.
State Management¶
The key-value store is persistent (BadgerDB on disk) and survives restarts. Keys are automatically scoped per key type and rule ID, preventing rules from accessing each other's state. The store uses TTL-based expiration.
There is no checkpointing of pipeline state. Aggregation windows are held in memory only. Windows emit events on graceful shutdown.
Time¶
Windows can be tumbling (non-overlapping) or sliding (overlapping).
Time can be measured in two ways: processing time or event time. Processing time uses arrival time and windows close based on the real-time clock. Event time uses timestamps embedded in events and windows close based on a watermark derived from the maximum observed event timestamp. Out-of-order events are accepted within a configurable grace period. If no events arrive for a defined period, the watermark advances to flush pending windows.
Event time windowing supports both live streams and historical/batch data replay, since window advancement is driven by event timestamps rather than the real-time clock.