Summary
In this chapter, we covered platform events in detail and discussed several ways in which we can both publish and consume them. We began this chapter by discussing what is meant by the term event-driven architecture and described how an event bus allows us to both publish and consume events and has an operating model that can be thought of as being analogous to how Twitter operates.
The next section discussed the key use cases for platform events and how we can use platform events to decouple applications to make them easier to scale and grow. We also discussed how we can connect to external systems more simply through the use of platform events.
With our understanding of these use cases in place, we then moved on to how we can define a platform event and how a platform event is defined as metadata within Salesforce. We then looked at several ways of publishing events through the use of Apex, Process Builder, flows, and the Salesforce REST API. We noted how for all of...