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
2021-01-20 21:28:48 +00:00

10 lines
297 B
Markdown

# Broker
The [broker](https://godoc.org/github.com/asim/go-micro/broker#Broker) is an interface for PubSub.
## 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