The Pub/Sub API
In June 2022, Salesforce released the Pub/Sub API, a completely new API to allow systems to connect to Salesforce and both publish and subscribe to platform event channels. The Pub/Sub API has several great features (aside from publishing) that make it a much better modern solution for integrating external systems with Salesforce platform events:
- Broad language support through the gRPC API
- Flow control to manage processing on the external system based on resources
- Schema information availability
- Improved performance through HTTP/2
Most of these are properties of the gRPC API, which we covered in the previous chapter, but they are worth reiterating here as should you have a requirement to consume platform events in an external system, the Pub/Sub API is now the preferred option.
It is also important for Salesforce developers (and perhaps even more so for Salesforce Architects) to appreciate that the Pub/Sub API and underlying event bus system...