Newer Version Available

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

Streaming API Limits

Limits protect shared resources. These default limits are for basic consumers of Streaming API.

If your application exceeds these limits, or you have scenarios for which you need to increase the number of clients per topic or the number of concurrent clients across all topics, contact Salesforce.

PushTopic Streaming Limits

The following limits apply to PushTopic Streaming in all API versions.

Description Performance and Unlimited Editions Enterprise Edition All other supported editions
Maximum number of topics (PushTopic records) per org 100 50 40
Maximum number of clients (subscribers) per topic 2,000 1,000 20
Maximum number of concurrent clients (subscribers) across all topics 2,000 1,000 20
Maximum number of events within a 24–hour period 1,000,000 200,000 50,000 (10,000 for free orgs)
Socket timeout during connection (CometD session) 110 seconds 110 seconds 110 seconds
Timeout to reconnect after successful connection (keepalive) 40 seconds 40 seconds 40 seconds
Maximum length of the SOQL query in the Query field of a PushTopic record 1,300 characters 1,300 characters 1,300 characters
Maximum length for a PushTopic name 25 characters 25 characters 25 characters

For free orgs, the maximum number of events within a 24-hour period is 10,000. Free orgs include Developer Edition orgs and trial orgs (all editions), such as partner test and demo orgs created through the Environment Hub. Sandboxes get the same limits as their associated production orgs.

Note

Generic Streaming Limits

Description Performance and Unlimited Editions Enterprise Edition Professional Edition Free Orgs
Maximum streaming channels per org 1,000 1,000 1,000 200
Maximum events within a 24-hour period with Generic Streaming (API version 36.0 and earlier) 100,000 100,000 100,000 10,000
Maximum events within a 24-hour period with Durable Generic Streaming (API version 37.0 and later) 1,000,000 200,000 100,000 10,000

Free orgs include Developer Edition orgs and trial orgs (all editions), such as partner test and demo orgs created through the Environment Hub. Sandboxes get the same limits as their associated production orgs.

Note

Generic Streaming has the same limits for the maximum number of clients and maximum number of concurrent clients as PushTopic Streaming. The following limits apply to Generic Streaming and Durable Generic Streaming.

Description Performance and Unlimited Editions Enterprise Edition All other supported editions
Maximum clients (subscribers) per generic streaming channel 2,000 1,000 20
Maximum concurrent clients (subscribers) across all generic streaming channels 2,000 1,000 20