Chapter 11: Using Platform Events
So far in our discussion of asynchronous processing, we have focused solely on the ways in which we can run Apex code asynchronously to handle appropriate tasks. While this is one asynchronous programming model available on the Salesforce platform, the primary focus of using the asynchronous methods we have discussed thus far is to allow you to work with an increased set of governor resources to perform some complex functionality, or to run a job at a pre-determined point in the future.
In this chapter, we are going to discuss a different model using platform events. Platform events are a relatively new addition to the Salesforce platform and enable developers and architects to design solutions differently, in a way that allows us to decouple and scale applications more readily.
In this chapter, we will discuss the following:
- What event-driven architecture is and how the event bus works
- When to use platform events
- How to define...