Kafka
Event streaming on OpenShift with Red Hat Streams for Apache Kafka: clients, connectors, change data capture and DC/DR replication.
- 01
Overview
What brokers, topics, partitions and offsets are, and when Kafka is the right choice instead of a message queue or Redis.
Read - 02
Kafka on OpenShift
Install Streams for Apache Kafka and create a KRaft cluster, broker and controller node pools, and topics as custom resources.
Read - 03
Topic design
Choose partitions and keys for order and scale, replication for durability, and retention or compaction for how long data stays.
Read - 04
Producers and consumers
Produce and consume with Spring Boot, Quarkus and .NET. Share the work in a consumer group, and use the HTTP Bridge when you cannot link a client.
Read - 05
Delivery guarantees
Choose at-least-once or exactly-once, make the consumer idempotent, and park poison messages on a dead-letter topic so a payment is never posted twice.
Read - 06
Schema registry
Register Avro, Protobuf and JSON Schema in the Red Hat build of Apicurio Registry, and evolve a payment event without breaking consumers.
Read - 07
Kafka Connect
Run Kafka Connect on OpenShift as a KafkaConnect resource, and move records between a topic and PostgreSQL with a connector.
Read - 08
CDC with Debezium
Stream row changes from PostgreSQL and Oracle with Debezium, and publish domain events through the outbox pattern.
Read - 09
Stream processing
Filter, join and aggregate payment events as they arrive, with Kafka Streams in Quarkus and with Apache Flink SQL.
Read - 10
Kafka for AI
Keep a RAG index up to date from change events, and score transactions for fraud as they arrive on a Kafka topic.
Read - 11
Security
Turn on TLS listeners, authenticate clients, and manage ACLs and quotas as KafkaUser resources.
Read - 12
Monitoring
Scrape broker metrics and consumer lag into Prometheus, alert in Alertmanager, and use the Streams for Apache Kafka console.
Read - 13
Scaling and upgrades
Add brokers, rebalance partitions with Cruise Control, keep older records on tiered storage, and upgrade Kafka with a rolling restart.
Read - 14
DC/DR with MirrorMaker 2
Replicate topics and consumer offsets to a DR site with MirrorMaker 2, and fail over and back without posting a payment twice.
Read