1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-30 08:06:40 +02:00
go-micro/examples/broker/README.md

10 lines
297 B
Markdown
Raw Normal View History

2020-12-26 17:17:20 +02:00
# Broker
2021-01-20 23:28:48 +02:00
The [broker](https://godoc.org/github.com/asim/go-micro/broker#Broker) is an interface for PubSub.
2020-12-26 17:17:20 +02:00
## Contents
- main.go - uns pub-sub as two go routines for 10 seconds.
- producer - publishes messages to the broker every second
- consumer - consumes any messages sent by the producer