Integrations using platform events
In this chapter, we have seen that platform events are powerful tools that enable us to communicate between different parts of the application both programmatically and declaratively. We have also seen that events can be captured off-platform as well as on-platform to enable us to integrate with external applications.
When looking to integrate both new applications or domains on the Salesforce platform, or when integrating with external applications, platform events can provide us with a simple and scalable way to integrate. But what are the instances where you should use platform events for integration, and when should you consider other options?
Firstly, you should consider whether your use case is truly event-driven or not. Can you define one or more independent events for the integration? This might seem simple but will require you to think of your business processes more deeply and determine when such an independent event occurs or whether...