Stream sample configs
Ready-to-use stream pipeline configurations for Kafka (plaintext, SASL/SSL, Confluent Cloud) and NATS+JetStream sources.
All examples below use the current Nilus pipeline shape with spec.type: stream:
type: nilus
spec:
type: streamStreaming pipelines pull records in micro-batches and write them to the configured sink. Tune batch_size and the per-source timeout (batch_timeout for Kafka, timeout for NATS) so the consumer fills batches without blocking the sink.
Kafka
NATS+JetStream
Validation notes
Use
type: nilusandspec.type: streamfor streaming connectors. Misclassifying a stream asspec.type: batchcauses Nilus to run the pipeline once instead of staying connected.Set
run_in_loop: trueundersource.optionsso the consumer keeps pulling new batches.Prefer
incremental_strategy: appendfor streaming sinks. Usemergeonly when the destination has a stable primary key and you genuinely need deduplication.Project all credentials through
spec.use.projection. Never inline literal usernames, passwords, tokens, or NKeys seeds.Keep
batch_sizealigned with what the sink can absorb in a single write; oversized batches cause back-pressure, undersized batches under-utilize the pipeline.
Related docs
Optimize sink datasets: tune
incremental_strategy: append,batch_size, partitioning, and other dataset-shape settings for streaming sinks.
Last updated
Was this helpful?