Example golang plugin for kafka
zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties & kafka-server-start /usr/local/etc/kafka/server.properties
kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
kafka-configs --zookeeper localhost:2181 --alter --entity-type topics --entity-name test --add-config retention.ms=30000
Import ./apidefinitions/kafka-test.json
into Tyk Dashboard as a new API
docker cp kafka.so tyk-pro-docker-demo_tyk-gateway_1:/opt/tyk-gateway/middleware
docker restart tyk-pro-docker-demo_tyk-dashboard_1
jq -rc . sample.json | kafka-console-producer --broker-list localhost:9092 --topic test
$ curl http://localhost:8080/kafka-test/get { "id": "123", "status": "Active" }