#development #golang #pattern #reading-list

🔗 Let's Write a Simple Event Bus in Go
levelup.gitconnected.com

Event Driven architecture is a highly-scalable paradigm in computer science. It allows us to asynchronously process events by multiple parties.

An Event Bus is an implementation of the pub/sub pattern where publishers are publishing data and interested subscribers can listen to them and act based on data. This allows loose coupling of publishers from subscribers. Publishers publish data events to the event bus, and the bus is responsible for delivering them to subscribers. The traditional approach to implementing an event bus involves using callbacks. Subscribers usually implement an interface and then the event bus propagates data via the interface. With Go's concurrency model we know that channels can be used in most places to replace callbacks. In this article, we focus on how to use channels for implementing an event bus.

continue reading on levelup.gitconnected.com

⚠️ This post links to an external website. ⚠️