Tagged “Kafka”
6 articles with this tag.
- Kafka architectureHow Kafka works inside: topics, partitions and offsets, brokers and replication (leaders, ISR, min.insync.replicas), KRaft controllers, consumer groups and share groups (queues), retention, compaction and tiered storage, and how to size and operate a cluster.
- Event-driven architectureDesigning systems around events: events vs commands vs queries, the four event patterns (notification, event-carried state transfer, event sourcing, CQRS), choreography vs orchestration, topic and event design, ordering, idempotency, versioning, observability, and when not to go event-driven.
- Producers, consumers & exactly-onceProducing and consuming safely: batching and partitioning, idempotent producers, at-most-once vs at-least-once vs exactly-once, Kafka transactions and read_committed, offset management, rebalancing, retries, dead-letter topics and backpressure, with Spring for Apache Kafka examples.
- Schemas & event contractsTreating events as contracts: Avro vs Protobuf vs JSON Schema, schema registries, compatibility modes (backward, forward, full, transitive), safe and breaking changes, versioning strategies, data contracts, and governance in CI.
- Case study: real-time paymentsA complete design for an event-driven instant payments platform (SEPA Instant / UPI style): requirements, the synchronous and asynchronous split, Kafka topic and key design, idempotency, the ledger, fraud scoring in the stream, notifications, reconciliation, multi-region, security and trade-offs.
- Outbox, CDC & idempotencyThe three patterns that make event-driven systems reliable: the transactional outbox (polling vs log-based CDC with Debezium), the inbox and idempotent consumers, idempotency keys for APIs, deduplication strategies, and ordering.