stream-js icon indicating copy to clipboard operation
stream-js copied to clipboard

add throttle option

Open mikestaub opened this issue 7 years ago • 2 comments

The rate limits are described here. Why not create an option that will automatically throttle the internal calls to those functions instead of having all consumers of this library wrap them manually?

https://getstream.io/docs/js/#rate-limiting

mikestaub avatar Dec 05 '18 07:12 mikestaub

Throttling is worse than an immediate and loud error in almost all cases beside automated flows (eg. data imports, auto-follow, data sync). For critical paths like reading users' feeds (or anything transactional), throttling does not help. Apps on Stream can request rate limit to be increased by reaching out to [email protected]

What's your use-case for using Stream?

tbarbugli avatar Dec 05 '18 09:12 tbarbugli

My use case is a standard social networking app. I am hitting throttling errors during my integration tests.

mikestaub avatar Dec 05 '18 09:12 mikestaub