How to Use Platform Events With MuleSoft’s Salesforce Connector

Salesforce introduced Platform Events with its Summer ‘17 release (API v40). While the Anypoint Connector for Salesforce has supported Streaming API Events, the following description from Salesforce might be helpful to understand the difference between Platform Events and Streaming API Events.

Platform Events

Platform Events enable you to deliver secure, scalable, and customizable event notifications within Salesforce or through external sources. Platform Event fields are defined in Salesforce and they determine the data that you send and receive. Apps can publish and subscribe to Platform Events on the Force.com Platform using Apex or using CometD in external systems. https://goo.gl/XPw6Nc #DataIntegration #ML

Push and Reliability

ICYDK: In push architectures, one of the main challenges is delivering data reliably to receivers. There are many reasons for this:

* Most push architectures (including those developed by our company) use the publish-subscribe messaging pattern, which is unreliable.
* TCP’s built-in reliability is not enough to ensure delivery, as modern network sessions span multiple connections.
* Receivers can’t tell the difference between data loss and intentional silence.
* There is no one size fits all answer.

The last point trips up developers new to this problem space, who may wish for push systems to provide “guaranteed delivery.” If only it were that simple. Like many challenges in computer science, there isn’t a best answer, just trade-offs you are willing to accept. https://goo.gl/wHdEp1 #DataIntegration #ML