Svet Voloshin

Salesforce CTA

Technical Architect

CTA Coach

Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin
Svet Voloshin

Salesforce CTA

Technical Architect

CTA Coach

Blog Post

Platform Events (with Pub/Sub API)

October 7, 2024 Presentations
Platform Events (with Pub/Sub API)

This deck explains Platform Events, a Salesforce feature enabling asynchronous communication and real-time updates within and outside Salesforce.

  • Event-Driven Architecture: It decouples event producers and consumers, simplifying communication in connected systems (e.g., order fulfillment, lead reassignment).
  • Platform Events on the Platform: Use cases include creating/deleting reciprocal Account-Contact Relationships for Person Accounts to improve user experience and data cleanliness.
  • Pub/Sub Methods: Publishing events can be done via Flow, Process Builder, or Apex Triggers. Subscribing options include CometD, EMP Connector, and the latest Pub/Sub API.
  • Components of Event-Driven Systems: Events, Event Messages, Event Producers, Event Channels, Event Consumers, and Event Bus are explained.
  • Custom Platform Events: These enable custom notifications (e.g., order information, printer ink levels) and are defined like custom objects.
  • Platform Event Fields: Standard and Custom fields are covered, along with system fields like ReplayId and EventUuid.
  • Publish Behavior: Options include “Publish After Commit” (for transactional integrity) and “Publish Immediately” (for real-time logging).
  • Replaying Events: Subscribers can retrieve missed events within the retention window using Replay ID.
  • High-Volume Platform Events: These offer scalability for millions of events, with asynchronous publishing and separate event allocations.
  • Streaming Monitor App: This tool (available on AppExchange or GitHub) helps monitor various streaming events.
  • Salesforce Event Bus: The legacy version (multi-tenant, built on Apache Kafka) and the new independent runtime version (for scalability and microservices) are discussed.
  • Pub/Sub API: Generally available since June 2022, it’s an RPC framework based on gRPC, offering benefits like better performance, bidirectional streaming, and HTTP/2 support.
  • Working with Pub/Sub API: Options include using the MuleSoft connector, building a custom client, or referencing developer documentation and GitHub repositories.
  • Additional Resources: Links to relevant Salesforce documentation and Trailhead modules are provided.

Overall, the deck offers a comprehensive overview of Platform Events, their benefits, use cases, and implementation methods, including the latest Pub/Sub API. It’s a valuable resource for anyone looking to leverage event-driven architecture in Salesforce.

Write a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.