Search

Lessons (10)

  • Kafka vs RabbitMQ & the Kafka Ecosystem

    … integration without code Ready-made connectors move data between Kafka and other systems, configured with JSON instead of …

  • What Is Apache Kafka?

    … append an event const producer = kafka.producer(); await producer.connect(); await producer.send({ topic: "orders", messages: [{ key: "customer …

  • Kafka Producers

    … kafka-1:9092", "kafka-2:9092"] }); const producer = kafka.producer({ idempotent: true, maxInFlightRequests: 5 }); await producer.connect(); export …

  • Delivery Guarantees: At-Most, At-Least & Exactly Once

    … const producer = kafka.producer({ transactionalId: "ledger-writer-1", idempotent: true, maxInFlightRequests: 1 }); await producer.connect(); await consumer.run …

  • Message Queues & RabbitMQ

    … producer and consumer (Node.js, amqplib) js // producer.js import amqp from "amqplib"; const connection = await amqp.connect …

  • Consumers & Consumer Groups

    … no harm. js const consumer = kafka.consumer({ groupId: "email-service" }); await consumer.connect(); await consumer.subscribe({ topic: "shop …

  • Scaling & Health Probes

    … scale consumers on Kafka lag triggers: - type: kafka metadata: bootstrapServers: kafka:9092 consumerGroup: email-service topic: shop.orders …

  • Hexagonal Architecture (Ports & Adapters)

    … its own language ForPlacingOrders , OrderRepository Adapter Code that connects a real technology to a port Express controller, Postgres …

  • Deployments, ReplicaSets & Rollouts

    … APIs, web frontends Interchangeable pods, rolling updates StatefulSet Databases, Kafka, ZooKeeper, Elasticsearch Stable names ( db-0 , db-1 …

  • Behavioral Patterns I: Observer, Strategy, Command, State

    … deliver delivered -- [ ] cancelled -- [ ] You've used it: useReducer in React, XState state machines, TCP connection states, order and …