v.25.9New Feature

Users can now use NATS JetStream

Users can now use NATS JetStream to consume messages by specifying the new settings of nats_stream and nats_consumer for the NATS engine. #84799 (Dmitry Novikov).
ClickHouse now supports consuming messages from NATS JetStream by configuring the new engine settings nats_stream and nats_consumer.

Why it matters

This feature enables users to integrate ClickHouse with NATS JetStream, allowing efficient streaming data ingestion directly from NATS message streams. It solves the need for real-time, reliable message consumption within ClickHouse using native support for NATS JetStream.

How to use it

To use this feature, define a table with the NATS engine and specify the nats_stream and nats_consumer settings, for example:

CREATE TABLE example_table (
...columns...
) ENGINE = NATS(
'nats://localhost:4222',
'nats_stream', 'your_stream_name',
'nats_consumer', 'your_consumer_name'
);