v.22.7New Feature

Implement NATS Table Engine for Pub/Sub Functionality in ClickHouse

Implement NATS table engine, which allows to pub/sub to NATS. Closes #32388. #37171 (tchepavel). (Kseniia Sumarokova)
Implemented the NATS table engine in ClickHouse, enabling native publish/subscribe integration with NATS messaging system.

Why it matters

This feature addresses the need for seamless streaming data ingestion and consumption by allowing ClickHouse to directly interact with NATS, a popular lightweight messaging system. It simplifies real-time data pipelines and enhances ClickHouse’s capabilities in event-driven architectures.

How to use it

Users can create a table with the NATS engine specifying the connection parameters to the NATS server. The table engine supports subscribing to NATS subjects to consume messages or publishing data back to NATS topics, enabling direct pub/sub operations within ClickHouse SQL queries.