v.25.9New Feature
Users can now use NATS JetStream
Users can now use NATS JetStream to consume messages by specifying the new settings ofnats_streamandnats_consumerfor the NATS engine. #84799 (Dmitry Novikov).
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 theNATS 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'
);