Skip to main content

Sinks

Sinks are destinations for join and window results. LiteJoin evaluates your SQL queries and forwards matching results to one or more configured sinks.

HTTP Webhook

Sends results as JSON POST requests to a URL.
Results are sent as JSON in the request body.

Kafka

Produces results as messages to a Kafka topic.

SSE (Server-Sent Events)

Streams results to browser clients via Server-Sent Events. Ideal for real-time dashboards and UIs.

Endpoints

The SSE sink exposes three HTTP endpoints:

Browser Example

Replay on Connect

Add ?replay=true to receive a snapshot of current results as SSE events before switching to live streaming:
Replay events include "_replay": true so your client can distinguish initial state from live updates.

SQLite

Writes results to a local SQLite database for querying by external apps.

Routing Joins to Sinks

Each join or window specifies its target sink by name:
Multiple joins can route to the same sink, and you can configure multiple sinks of different types.