Home / Data Platform / Streaming & CDC

Streaming & CDC

Kafka, Event Hubs, Debezium CDC and ingestion patterns: throughput, offsets, recovery and design. 36 posts.

Streaming & CDC / How-to

Advisory: batch, micro-batch or streaming - deciding how fresh data really needs to be

Real-time pipelines cost more to build and run, and many requests for "real time" don't need it. Turn freshness requests into explicit latency requirements, map them to batch, micro-batch or streaming, account for the operational cost of each, and use hybrid designs where only part of the data must be fast.

3 min readIntermediate

Streaming & CDC / How-to

Optimization: Kafka Connect throughput - tasks, batching, converters and dead-letter queues

Connectors running one task, tiny batches and verbose JSON converters move far less data than the cluster can handle. Measure per-connector throughput and lag, raise tasks to match partitions, tune connector and client batch settings, pick efficient converters, use DLQs instead of stopping on bad records, and size the worker cluster.

3 min readIntermediate

Streaming & CDC / How-to

Optimization: Kafka producer and consumer tuning for throughput and latency

Most Kafka performance problems are client settings, not broker size. Measure where time goes, tune producer batching, linger and compression, keep idempotence and acks safe, tune consumer fetch and poll settings, scale consumers to partitions and check the broker side last.

3 min readAdvanced

Streaming & CDC / How-to

Optimization: sizing Azure Event Hubs - tiers, throughput units, auto-inflate and partitions

Event Hubs namespaces are often sized once for a launch and never revisited, or throttle because partitions were chosen badly. Measure ingress, egress and events per second, choose the tier, set throughput units with auto-inflate and a plan to scale down, pick partition counts for consumer parallelism, and review Capture and retention costs.

3 min readIntermediate

Streaming & CDC / Runbook

Sev1: Kafka offline and under-replicated partitions after a broker loss

Restore a Kafka cluster where partitions are offline or under-replicated after one or more brokers failed. Find affected partitions, bring brokers back, decide on unclean leader election only as a last resort, and rebalance safely.

2 min readAdvanced

Streaming & CDC / How-to

Transformation: from nightly SFTP file drops to event-driven ingestion

Replace cron jobs that poll SFTP folders once a night with ingestion that reacts to each file as it lands. Use managed SFTP into object storage, storage events, Auto Loader or Snowpipe, file validation and a quarantine path.

3 min readIntermediate

Streaming & CDC / Runbook

Transformation: migrate a Kafka cluster from ZooKeeper to KRaft

Move a production Kafka cluster off ZooKeeper before ZooKeeper support disappears. Pre-checks, deploying KRaft controllers in migration mode, moving brokers, finalising, and the rollback window you get before finalisation.

2 min readAdvanced