Different between Platform-event & Streaming API-
Although both works on the publish/subscribe method, however, the platform-event has more scalability.
- With a PushTopic from the Streaming API, you are limited to receiving events notifications when the configured query and event occur. There is no capacity to manually generate these events beyond causing the criteria required by the query and event.
- Streaming API was created primarily to update UI components(Source) whereas Platform Events are for integrations via a Message Bus.
- PushTopic cannot be used in a trigger, however, platform event can be trigger from different salesforce tool like the process builder, flow, apex, or API.
- Use Platform event for more complex scenarios. Click here to know more about the platform event
To know about other integration API at a glance, pls Click here
No comments:
Post a Comment