Skip to content

kafka presentation using Go, in a poc presented in a live

License

Notifications You must be signed in to change notification settings

jeffotoni/gokafka.poc

Repository files navigation

gokafka.poc

A repository where you have an excellent example of a game made with a Game made in Go using Webassembly, communicating with kafka and everything running in GKE.

We have the game compiled for webassembly, we have the Apis in Go exposing to be consumed by the game and communicating with pkg kafka and some examples of kafka using docker examples using confluent, kafka bitnami and kafka fast where I did a summer clean to test the location using docker.


logo


ping server

$ curl -i -XPOST localhost:8181/ping

Create Topic

$ curl -i -XPOST -H "Content-type:application/json" \
localhost:8181/topic \
-d '{"name":"mytopic8", "partition":3, "replication_factor":1}'

List all topic

$ curl -i -XGET -H "Content-type:application/json" \
localhost:8181/topic

Delete topic

$ curl -i -XDELETE -H "Content-type:application/json" \
localhost:8181/topic/mytopic8

Producer

$ curl -i -XPOST -H "X-Key-User:12121212121" \
-H "Content-type:application/json" localhost:8181/producer \
-d '{"key":"x100001", "name":"jefferson otoni","score":3000}'