yudapc / golang-pub-sub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang Pub/Sub with Redis

How to Install

  • Copy env.sh.sample to env.sh

  • Setup redis password and topic name in file env.sh

  • Apply env with source env.sh

  • Install dependencies go mod tidy


How to run

Run subscriber: go run subscriber/subscriber.go

Run publsiher: go run publisher/publisher.go

About


Languages

Language:Go 72.0%Language:Shell 28.0%