How to create an event driven micro-service using AsyncAPI and golang.



How to create an event driven micro-service using AsyncAPI and golang.

How to create an event driven micro-service using AsyncAPI and golang.

This is a quick guide to creating an event-driven or pub-sub micro-service defined by an AsyncAPI contract and a client using golang.

We will create a microservice that exposes Publish and Subscribe endpoints defined by AsyncAPI. We will publish requests to one channel and listen for responses on another.

We’re going to create a ‘Terrible Joke’ service. It will listen for an incoming ‘JokeRequest’ on a channel (Publish) and then publish a ‘JokeResponse’ response to a different outbound channel (Subscribe).

Read the article:
https://quobix.com/articles/asyncapi-pubsub-using-golang/

Find the code at:
https://github.com/daveshanley/asyncapi-tutorials/tree/main/pub-sub

Find out more about Transport and Plank:
https://transport-bus.io
https://github.com/vmware/transport-go

I would love to hear your feedback.

Comments are closed.