Skip to Content
Event-Driven Architecture in Golang
book

Event-Driven Architecture in Golang

by Michael Stack
November 2022
Intermediate to advanced
384 pages
8h 47m
English
Packt Publishing
Content preview from Event-Driven Architecture in Golang

6

Asynchronous Connections

The events we have worked with so far in this book have been synchronously handled. The domain events in Chapter 4, Event Foundations, were used to move the side effects of domain-model changes into external handlers.

External handlers were called after the change was made successfully and within the same process. In Chapter 5, Tracking Changes with Event Sourcing, we used events to record each change made to our domain aggregates. When we want to use an aggregate, we read all of the events in sequence to rebuild the current state of the aggregate. With both kinds of events, our system is immediately or strongly consistent because events are always created or read within a single process.

We will be covering the following ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Software Architecture with Golang

Hands-On Software Architecture with Golang

Jyotiswarup Raiturkar

Publisher Resources

ISBN: 9781803238012Supplemental Content