摘要:
broker是用于消息的订阅和发布,即异步处理,不过通常会使用队列方式替代,很少使用go-micro的broker 默认是http方式 // Broker is an interface used for asynchronous messaging. type Broker interface { 阅读全文
posted @ 2021-04-20 17:28
林锅
阅读(427)
评论(0)
推荐(0)
摘要:
transport 用于服务之间的通信,自定义了socket接口,封装了Send、Recv、Close接口,可以有HTTP、NATS、RPC等实现,默认使用http type Message struct { Header map[string]string Body []byte } type S 阅读全文
posted @ 2021-04-20 15:37
林锅
阅读(313)
评论(0)
推荐(0)

浙公网安备 33010602011771号