https://github.com/jeffotoni/gokafka.poc
kafka presentation using Go, in a poc presented in a live
https://github.com/jeffotoni/gokafka.poc
go go-examples golang golang-library
Last synced: about 1 year ago
JSON representation
kafka presentation using Go, in a poc presented in a live
- Host: GitHub
- URL: https://github.com/jeffotoni/gokafka.poc
- Owner: jeffotoni
- License: mit
- Created: 2020-09-09T20:36:38.000Z (over 5 years ago)
- Default Branch: beta
- Last Pushed: 2021-03-04T22:06:50.000Z (over 5 years ago)
- Last Synced: 2025-02-10T03:29:29.231Z (over 1 year ago)
- Topics: go, go-examples, golang, golang-library
- Language: Go
- Homepage:
- Size: 22.4 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
### ping server
```bash
$ curl -i -XPOST localhost:8181/ping
```
### Create Topic
```bash
$ curl -i -XPOST -H "Content-type:application/json" \
localhost:8181/topic \
-d '{"name":"mytopic8", "partition":3, "replication_factor":1}'
```
### List all topic
```bash
$ curl -i -XGET -H "Content-type:application/json" \
localhost:8181/topic
```
### Delete topic
```bash
$ curl -i -XDELETE -H "Content-type:application/json" \
localhost:8181/topic/mytopic8
```
### Producer
```bash
$ curl -i -XPOST -H "X-Key-User:12121212121" \
-H "Content-type:application/json" localhost:8181/producer \
-d '{"key":"x100001", "name":"jefferson otoni","score":3000}'
```