Newer Version Available

This content describes an older version of this product. View Latest

Platform Event Allocations

Learn about the allocations available for platform event definitions, publishing and subscribing to platform events, and event delivery in CometD clients.
Description Performance and Unlimited Editions Enterprise Edition All other supported editions
Maximum number of platform event definitions that can be created in an org 100 50 5
Maximum number of event notifications published per hour 100,000 100,000 1,000
Maximum number of delivered event notifications within a 24-hour period, shared by all CometD clients1 50,000 25,000 10,000
Maximum number of concurrent CometD clients (subscribers) per platform event channel or across all platform event channels2 2,000 1,000 20
Maximum number of processes that can subscribe to a platform event 500 500 500
Maximum number of active processes that can subscribe to a platform event 50 50 50

1To request a higher number of events delivered to CometD clients, contact Salesforce to purchase an add-on license. The add-on license increases your daily limit of delivered events by 100,000 more events. For example, for Unlimited Edition, the add-on license increases the daily limit of delivered events from 50,000 to 150,000 events. You can purchase multiple add-ons to meet your event requirements for CometD clients. To avoid deployment problems and degradation in service, we recommend that the number of events delivered to CometD clients not exceed 5 million per day. If you require more external events, contact your Salesforce representative to understand how the product can scale to meet your needs.

2This allocation is similar to the concurrent clients allocation in Streaming API for PushTopic and generic events.

Platform events that originate from an installed managed package share the org’s allocation for the maximum number of platform event definitions.

Note

High-Volume Platform Event Allocations

For the pilot, the following allocations for high-volume platform events apply to all editions.

Description Value
Maximum number of event notifications published per hour 250,000
Maximum number of delivered event notifications within a 24-hour period, shared by all CometD clients 1,000,000

In addition to the allocations specific to high-volume platform events, other allocations defined for standard-volume platform events are shared with high-volume platform events.

The maximum event message size that you can publish is 1 MB.

Subscribers on the Lightning Platform (non-CometD clients including Apex triggers, processes, and flows) don’t count against the 24-hour CometD event delivery limit. The number of event messages that an Apex trigger, process, or flow can process depends on how long the processing takes for each subscriber. The longer the processing time, the longer it takes for the subscriber to reach the tip of the event stream.

Note