https://github.com/zhayt/simple-pub-sub
Simple pub sub with kafka
https://github.com/zhayt/simple-pub-sub
Last synced: 3 months ago
JSON representation
Simple pub sub with kafka
- Host: GitHub
- URL: https://github.com/zhayt/simple-pub-sub
- Owner: zhayt
- Created: 2024-06-07T12:19:19.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-06-07T12:22:59.000Z (12 months ago)
- Last Synced: 2025-01-10T09:11:51.496Z (4 months ago)
- Language: Go
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kafka Getting Started
Simple pub sub with kafka
# How to Run
### With Makefile
1. Deploy kafka and zookeeper
```shell
make build
```
2. Start producer
```shell
make run-producer
```
3. Start consumer
```shell
make run-consumer
```
### Manually
1. Deploy kafka and zookeeper
```shell
./run.sh
```
2. Start producer
```shell
go run producer/main.go --bootstrap-server localhost:9093 --topic {Topic}
```
3. Start consumer
```shell
go run consumer/main.go --bootstrap-server localhost:9093 --topic log
```