Stream¶
Use IBM Confluent Connectors and Apache Kafka to capture and transport high-throughput enterprise event streams from databases, applications, SaaS platforms, mainframes, and IoT devices into a durable, scalable streaming backbone.
Product mapping
IBM Confluent — Connectors and Kafka — fully managed source/sink connectors, Change Data Capture (CDC), and durable Apache Kafka event streaming.
GitHub Repository
The complete source code and examples are available in the GitHub repository:
Included Assets¶
| Asset | Description |
|---|---|
| supply-chain-risk-control-tower | Real-time event streaming reference — managed Kafka topics, producer scripts, CDC simulation, and enterprise event ingestion |
| bob-modes | IBM Bob Data Ingestion mode |
Quick Start¶
Browser simulation (no Kafka cluster required):
python -m http.server 8080 --directory data/streamhouse/stream/assets/supply-chain-risk-control-tower/code/ui
Python dry run:
cd data/streamhouse/stream/assets/supply-chain-risk-control-tower
cp .env.example .env
python -m scrc.risk_engine --dry-run
Full IBM Confluent deployment: Provision infrastructure with Terraform, register schemas, and run the full streaming pipeline. See assets/supply-chain-risk-control-tower/README.md.
What the Asset Demonstrates¶
The supply-chain asset covers:
- Managed Kafka topic provisioning and partition sizing
- JSON Schema contracts with Schema Registry and compatibility enforcement
- Python Confluent producers with Schema Registry-aware serialization
- Reference Apache Flink SQL for risk aggregation over event streams
- Terraform IaC for Confluent environment, cluster, topics, and service accounts
- Carbon React dashboard consuming a live Kafka bridge
- Integration points for IBM watsonx.ai, watsonx Orchestrate, and IBM Cloud services
Bob Skills¶
| Skill | Description |
|---|---|
| data-streaming-confluent | Works with IBM Confluent for Kafka topic provisioning, partition sizing, retention policies, and event producer/consumer configuration |
| confluent-iac-terraform | Infrastructure-as-Code guidance for automated provisioning of Confluent Cloud Kafka clusters, service accounts, and managed connectors |
Installing skills
Download the skill .zip files and copy the skill folders to ~/.bob/skills (global) or <project>/.bob/skills (project-level). See the Data Skills and Modes page for full installation instructions.
Why It Matters¶
Traditional data movement relies on batch polling or scheduled ETL jobs that introduce hours or days of latency. In modern enterprises, events happen continuously: orders are placed, sensors detect anomalies, inventory updates, and transactions clear. Stream establishes the capture and transport foundation of the Streamhouse architecture, streaming changes the instant they occur with strict ordering and persistence guarantees.
Business Value¶
Key outcomes
| Outcome | What It Means |
|---|---|
| Sub-second data freshness | Replace polling and nightly batch delays with continuous event capture and transport |
| Eliminate custom integration glue | Pre-built managed connectors for databases (Oracle, PostgreSQL, DB2, MongoDB), SaaS, and message queues |
| Reliable event persistence | Distributed, fault-tolerant Kafka topic logs ensure zero data loss with replay capabilities |
| Decentralized data access | Tap into live data streams at the source without forcing monolithic data consolidation |
| Production-grade scalability | Scale from gigabytes to terabytes per day with guaranteed throughput and low latency |
When to Use¶
Use Stream when:
- You need Change Data Capture (CDC) from relational databases or mainframes into event streams.
- Applications, IoT sensors, or microservices generate high-frequency operational events.
- Multiple downstream consumers need access to the same event stream with independent read positions.
- You want to decouple source systems from downstream consumers using a resilient event buffer.
Batch vs Streaming
If data freshness requirements are measured in hours or days and real-time triggers are not needed, a batch pipeline with DataStage may suffice. See ETL / ELT.
Core Capabilities¶
| Capability | Component | What It Does |
|---|---|---|
| Capture | Confluent Managed Connectors | 120+ pre-built connectors capturing data from databases, SaaS (Salesforce, ServiceNow), messaging systems, and object stores |
| Capture | Change Data Capture (CDC) | Captures row-level database inserts, updates, and deletes in real time without impacting source DB performance |
| Transport | Apache Kafka Topics | High-throughput, distributed, ordered event logs with configurable retention and partitioning |
| Transport | Multi-Region & Hybrid Sync | Cluster Linking securely mirrors topics across clouds and on-premises environments without extra proxies |
Reference Architecture¶
flowchart LR
subgraph SOURCES["Data Sources"]
DB["Relational Databases<br/>(Oracle, DB2, Postgres)"]
SAAS["SaaS Applications<br/>(Salesforce, ERP)"]
IOT["IoT & Edge Devices"]
end
subgraph CAPTURE["Capture Layer"]
CONN["IBM Confluent Connect<br/>(Managed Source Connectors & CDC)"]
end
subgraph TRANSPORT["Transport Layer"]
KAFKA["IBM Confluent Kafka<br/>• Partitioned Topics<br/>• Distributed Storage<br/>• Cluster Linking"]
end
subgraph DOWNSTREAM["Streamhouse Downstream"]
FLINK["Transform (Flink SQL)"]
GOV["Govern (Schema Registry)"]
SERVE["Serve (RTCE & Tableflow)"]
end
SOURCES --> CONN
CONN --> KAFKA
KAFKA --> FLINK
KAFKA -.-> GOV
FLINK --> SERVE
What to Demonstrate¶
- Connect a database or simulated event generator using a Confluent managed connector.
- Publish transactional business events into a partitioned Kafka topic.
- Observe real-time ingestion metrics, throughput, and consumer lag in the Confluent Cloud console.
- Demonstrate event replay by rewinding a consumer offset to reprocess historical events.
- Show topic mirroring or cross-region replication using Cluster Linking.
Design Considerations¶
Topic and partition planning
- Choose partition counts based on expected peak throughput and downstream parallel consumer requirements.
- Set event keys intentionally to ensure strict in-order processing for related entities (e.g.,
order_idorcustomer_id). - Define topic retention policies (time-based vs compaction) according to downstream consumption models.
- Implement dead-letter queues (DLQ) for unparseable or malformed source messages.
IBM Products Used¶
| Product | Role |
|---|---|
| IBM Confluent | Fully managed Kafka service, connectors, enterprise security, and multi-cloud streaming infrastructure |
| Confluent Cloud Connectors | Managed source and sink connectors for enterprise data capture |
| Confluent Cloud Apache Kafka | Durable, scalable event-streaming backbone for the Streamhouse transport layer |