Activity Forums Salesforce® Discussions What is the difference between Streaming API PushTopic,Generic Streaming and Platform events ?

  • What is the difference between Streaming API PushTopic,Generic Streaming and Platform events ?

    Posted by Prachi on October 16, 2019 at 5:30 am

    What is the difference between Streaming API PushTopic, Generic Streaming and Platform events in salesforce ?

    Saddam replied 4 years, 6 months ago 3 Members · 2 Replies
  • 2 Replies
  • Laveena

    Member
    October 16, 2019 at 1:48 pm

    Hi Prachi,

    Very generally, the Streaming API was created primarily to update UI components(Source) where as Platform Events are for integrations via a Message Bus.

    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.

    Generic Streaming via the Streaming API is similar to Push Topics but is not bound to specific changes to Salesforce data. Instead you control when to publish an event. The trade off is that the payload of the event is a 3000 character string rather than a defined structure like that of a PushTopic.

    Platform Events provide the defined notification structure of a PushTopic with a more flexible model than Generic Streaming for raising and subscribing to the events. They can be published and subscribed to via Apex in addition to the APIs.

    Thanks

  • Saddam

    Member
    October 16, 2019 at 1:56 pm

    Hi,

    Very generally, the Streaming API was created primarily to update UI components(Source) where as Platform Events are for integrations via a Message Bus.

    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.

    Generic Streaming via the Streaming API is similar to Push Topics but is not bound to specific changes to Salesforce data. Instead you control when to publish an event. The trade off is that the payload of the event is a 3000 character string rather than a defined structure like that of a PushTopic.

    Platform Events provide the defined notification structure of a PushTopic with a more flexible model than Generic Streaming for raising and subscribing to the events. They can be published and subscribed to via Apex in addition to the APIs.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos