Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rate Limit on "Send Extension PubSub Message" #612

Closed
BarryCarlyon opened this issue May 15, 2022 · 2 comments
Closed

Rate Limit on "Send Extension PubSub Message" #612

BarryCarlyon opened this issue May 15, 2022 · 2 comments
Labels
product: docs Documentation on dev.twitch.tv/docs

Comments

@BarryCarlyon
Copy link
Contributor

BarryCarlyon commented May 15, 2022

Brief description

https://dev.twitch.tv/docs/api/reference#send-extension-pubsub-message

I feel the rate limit documetnation on "Send Extension PubSub Message" is not a good representation of the rate limit

Extension PubSub has a rate limit of 100 requests per minute for a combination of Extension client ID and broadcaster ID.

It should read more similar to the behaviour which also leads developers to write better PubSub usage.

And also add a note here about the size of a message

Expected documentation

Extension PubSub has a maximum size of 5kb per message.
Extension PubSub has a rate limit of 1 message per second.
Within a given 60 seconds period you have 40 additional rate limit points to spend.

The Global topic is a seperate rate limit pool to the Channel topic.
Whispers use the channel topic for the channelID that the whisper is routed via.

or based on testing the behaviour

The rate limit is 100 points with a refill of 1 point per second.

Additional context or questions

Basically the rate limit documentation on the endpoint don't give justice to the actual rate limit that is on production.
Which also seems to be different to non helix/deprecated version of this endpoint.

Old:

1 per second with 40 left at the end of a minute and it refrills to full at the end of the minute

New:

refills at 1 per second with a start pool of 100

@BarryCarlyon BarryCarlyon added the product: docs Documentation on dev.twitch.tv/docs label May 15, 2022
@BarryCarlyon
Copy link
Contributor Author

BarryCarlyon commented May 15, 2022

Even then it's not quite 1 per second (you exhaust the limit when you have a script that sends 1 per second you get to the limit and the next second there isn't a point to use and you are stuck throttled as it never regens a point)

@ecressey
Copy link

Ticketed as HLX-2570

@jbulava jbulava closed this as completed Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: docs Documentation on dev.twitch.tv/docs
Projects
None yet
Development

No branches or pull requests

3 participants