stream-chat-python icon indicating copy to clipboard operation
stream-chat-python copied to clipboard

add throttling option to campaigns API?

Open jmensch1 opened this issue 2 months ago • 5 comments

Per your docs, the Campaigns api sends messages at a rate of about 60000 per minute. (https://getstream.io/chat/docs/python/campaign_api/?language=python). Would it be possible to add a throttling option so that these messages get sent more slowly, at a rate specified by the user?

The reason is that we have a server that handles the webhooks for new message events. Normally that server handles at most a few hundred events per minute. If that number were to jump to 60000 / minute without any ramp-up time, the server would undoubtedly crash.

jmensch1 avatar Apr 01 '24 22:04 jmensch1