Using Platform Events
The first type of integration we will look at is integrating through the use of an event bus and Platform Events. Platform Events make it easy for us to build simple integrations between applications that are event-driven and follow a fire-and-forget paradigm.
As we will discuss, we can use Platform Events to integrate not just with external applications but also across our application, allowing us to decouple our application for improved performance and easier development.
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 and publish a platform event using a variety of different mechanisms
- How to handle and subscribe to platform events on the Salesforce platform
- The relationship between platform events and the Change Data Capture functionality
- How to test Platform Events