Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Streaming Event Features
The Lightning Platform offers several types of streaming events. To determine which event
meets your use case, compare the features of the various events.
| Feature | Change Data Capture Event | Platform Event | PushTopic Event (Legacy) | Generic Event (Legacy) |
|---|---|---|---|---|
| Define a custom schema as strongly typed fields | N/A | ![]() |
N/A | ![]() |
| Include user-defined payloads | N/A | ![]() |
N/A | ![]() |
| Publish custom events via one or more APIs | N/A | ![]() |
N/A | ![]() |
| Publish events via Apex | N/A | ![]() |
N/A | ![]() |
| Publish declaratively using Process Builder and Flow Builder | N/A | ![]() |
N/A | ![]() |
| Publish to specific users | N/A | ![]() |
N/A | ![]() |
| Subscribe via CometD using JavaScript, Java, and other languages | ![]() |
![]() |
![]() |
![]() |
| Subscribe via Pub/Sub API | ![]() |
![]() |
![]() |
![]() |
| Subscribe via Apex triggers | ![]() |
![]() |
![]() |
![]() |
| Filter subscriptions | ![]() |
![]() |
![]() |
![]() |
| Receive auto-published event notifications for Salesforce record changes | ![]() |
N/A | ![]() |
N/A |
| Choose the fields to include in event notifications for Salesforce record changes | ![]() |
N/A | ![]() |
N/A |
| Receive a versioned event schema | ![]() |
![]() |
![]() |
![]() |
| Get field-level security | ![]() |
![]() |
![]() |
![]() |
| Get record-sharing support | ![]() |
N/A | ![]() |
N/A |
| Encrypt field data with Shield Platform Encryption | ![]() |
![]() |
![]() |
![]() |
| Replay retained event notifications | ![]() |
![]() |
![]() |
![]() |
| Event retention period | 3 days | 3 days* | 1 day | 1 day |
* Standard-volume platform events are retained for 1 day.

