In rare cases, customers using the Streaming API (CometD) to subscribe to Change Data Capture (CDC) or Platform Events may experience a situation where zero events are delivered over extended periods — even though events exist within the 72-hour retention window — ultimately resulting in an invalid replayId error as events are purged from the Event Bus.
⚠️ This is a known limitation of the CometD / Streaming API protocol and does not affect the Pub/Sub API, which includes replay tightening semantics.
Customers may observe one or more of the following:
403: Unknown Client due to Streaming API session stickiness, this happens regardless.replayId but continues to receive zero events
The recommended long-term solution is to migrate from CometD / Streaming API to the Pub/Sub API. The Pub/Sub API:
replayId is automatically advanced past events from other orgs/channels that are not relevant to the subscriber, and the tightened replayId is returned to the clientnum_requested parameter, which allows the client to control the rate of event delivery and avoid being overwhelmed by bursts. See: Flow Control in Pub/Sub APIreplayId when no events are available, allowing the client to distinguish between "no new events" and "still seeking through backlog"005321562

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.