Skip to content

Glossary: Software Design Patterns in Go

Event bus

Also written: EventBus

The subject in the observer pattern: a value that keeps listeners under event names and calls each one when `Emit` is called. The order code announces "order_placed" without knowing who listens.

Where the book teaches it

Related terms

ObserverListenerPublish/subscribe