From the course: Building Event-Driven Applications In Go
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Events and event handlers in Go
From the course: Building Event-Driven Applications In Go
Events and event handlers in Go
- [Instructor] Let's talk about events and event handlers. First of all, what's an event? An event can be defined as a significant change in state of a data object or business entity. In the context of software engineering and event-driven architecture, events are typically messages or data points that generated by one system component, usually what we call a publisher or a producer, and then consumed by another component, usually called a subscriber, a listener, or a handler. And event can be anything that has happened within the scope of the business communication structure. Events are both fact and a notification, and they represent something that has happened in the real world. Think of an event as a record or a recording of an action that just took place. Think of it just like an error log or an information log record that takes place in the flow of an application. An event is seen as a single source of truth about an action that took place. And therefore, it must contain all the…