Streams Reference (Website Summary)
CDC streams are how MonoTS performs reliable data synchronization from local tables to Kafka, Delta Lake, or the filesystem. Full detail lives in docs/streams.md.
Management SQL
CREATE STREAM [IF NOT EXISTS] <name> WITH (
'key' = 'value'
);
SHOW STREAMS;
SHOW STREAM <name>;
SHOW STREAM STATUS FOR <name>;
DROP STREAM <name>;
DROP STREAM <name> WITH CHECKPOINT;
Global properties
| Property | Required | Description |
|---|---|---|
sink.type | Yes | filesystem, delta, or kafka |
source.table | Yes | One table per stream |
cdc.mode | No | batch or hybrid |
cdc.auto_end | No | End after historical export (true / false) |
Sinks
Apache Kafka
- Default
cdc.mode:hybrid - Format: JSON only
- Keys:
sink.kafka.brokers,sink.kafka.topic - Best for real-time row sync into message queues
Delta Lake
- Default
cdc.mode:batch - Keys:
sink.delta.path, optionalsink.delta.endpoint(S3-compatible) - Credentials via
AWS_*env vars for object storage - Best for analytical Data Lake landing zones
Filesystem
- Default
cdc.mode:batch - Key:
sink.filesystem.path - Best for local or NFS Parquet export
Guarantees
Server-driven push, at-least-once, automatic checkpoints. Downstream should handle duplicates.