Objective: Let's make HTTP flow supported via Kafka topic channel in order to support stream application.
Enviroment variables:
BROKER
=kafka:9093PUBLISH_TOPIC
=gateway.publishSUBSCRIBE_TOPIC
=gateway.subscribeSUBSCRIBE_GROUP_ID
=gatewayTIMEOUT
=30
- run
./dev.sh run host.docker.internal:9092
Setup the env CGO_ENABLED=0
in order to build app with kafka lib.
Update notes:
# 2023-11-08
go get -u github.com/confluentinc/confluent-kafka-go/v2/kafka
go mod tidy