How to create a streaming API and microservice via AsyncAPI using golang
This video is a quick guide to creating a simple streaming microservice defined by an AsyncAPI contract and a client using golang.
We will create a microservice that exposes a single streaming API via AsyncAPI.
Our service will broadcast a message containing a random word every second to any subscribers of its channel (one-to-many).
The service offers a single subscription channel, defined as topic/random-word.
Every second, the service broadcasts a random word to all subscribers of that channel.
Read the article
https://quobix.com/articles/asyncapi-streaming-using-golang/
Find the code
https://github.com/daveshanley/asyncapi-tutorials/tree/main/streaming
Find out more about Transport and Plank
https://transport-bus.io
https://github.com/vmware/transport-go
I would love to hear your feedback.
Please find me on Twitter: https://twitter.com/daveshanley
(@daveshanley)
Comments are closed.