0.16.0

Compatibility

Pairs withKafka Broker
ProductNotiway Notify

Installation

Environment Variables

VariableRequiredDefaultDescription
Infra__Plugins__Buffer__NameYesSet to Kafka
Infra__Plugins__Buffer__VersionYesSet to 0.16.0
Infra__Plugins__Buffer__Config__BootstrapServersYesKafka broker addresses (e.g., localhost:9092)
Infra__Plugins__Buffer__Config__TopicNonotiwayKafka topic to consume from
Infra__Plugins__Buffer__Config__GroupIdNonotiway-gatewayConsumer group ID for coordinated consumption
Infra__Plugins__Buffer__Config__AutoOffsetResetNolatestWhere to start reading when no committed offset exists (latest or earliest)

Infrastructure

  1. Running Kafka cluster — v2.8+ recommended (KRaft mode supported).
  2. Create the topic before starting Notiway, or enable auto-topic creation on the cluster.

Docker Compose

docker-compose.yml
services:
  notiway:
    image: notiway/notify:portable-0.5.0
    ports:
      - "5000:8080"
    environment:
      - Infra__Plugins__Buffer__Name=Kafka
      - Infra__Plugins__Buffer__Version=0.16.0
      - Infra__Plugins__Buffer__Config__BootstrapServers=kafka:9092
      - Infra__Plugins__Buffer__Config__Topic=notiway
      - Infra__Plugins__Buffer__Config__GroupId=notiway-gateway
      - Infra__Plugins__Buffer__Config__AutoOffsetReset=latest

  kafka:
    image: confluentinc/cp-kafka:7.5.0
    ports:
      - "9092:9092"
    environment:
      - KAFKA_NODE_ID=1
      - KAFKA_PROCESS_ROLES=broker,controller
      - KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092,CONTROLLER://0.0.0.0:9093
      - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
      - KAFKA_CONTROLLER_QUORUM_VOTERS=1@kafka:9093
      - KAFKA_CONTROLLER_LISTENER_NAMES=CONTROLLER
      - KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
      - CLUSTER_ID=MkU3OEVBNTcwNTJENDM2Qk