mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-24 10:07:04 +02:00
10 lines
298 B
Markdown
10 lines
298 B
Markdown
# Broker
|
|
|
|
The [broker](https://godoc.org/github.com/micro/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
|