From Platform Events to the Pub/Sub API
summary
Compares the old Platform Events + Streaming API (CometD) stack with the new gRPC Pub/Sub API that runs on a separate Salesforce runtime, uses Avro over HTTP/2, supports bidirectional streams and flow control requesting 10 events, and consolidates publish/subscribe and streaming into one client. Shows a Java PoC that subscribes to Change Data Capture and publishes Platform Events via the Pub/Sub client, pulls batches, parses schemas, hits the Twitter API for hashtag counts, and demonstrates the end-to-end poll working in the live demo.
AI-written summary · about
chapters (15)
- 0:00Introduction and speaker intro
- 2:02Clarifying the topic scope
- 4:38Agenda and session overview
- 5:40Salesforce event bus updates
- 8:33Introducing Pub/Sub API
- 10:18Key gRPC features explained
- 12:27Pull subscriptions and flow control
- 15:18Comparing old and new implementations
- 18:07Code differences overview
- 20:18New Pub/Sub API implementation
- 26:00Demo setup and pizza poll
- 27:04Salesforce configuration demo
- 31:15Server code walkthrough
- 34:17Demo execution and results
- 38:54Resources and closing
