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

question: Channel List Component Reaches Rate Limit Due to QueryChannel for Each New Channel on Campaign Creation

Open LongJohnSilver1504 opened this issue 8 months ago • 5 comments

Hello there:

When a campaign is created with thousands of users, the Channel List component starts to perform a queryChannel for each newly created channel. This behavior causes the application to quickly reach the rate limit, particularly in the view of the user who creates the campaign.

Steps to Reproduce:

1.	Create a campaign with a large number of users (e.g., thousands).
2.	Observe the Channel List component’s behavior in the user’s view who created the campaign.
3.	Notice that a queryChannel is triggered for each new channel created, leading to rapid rate limit exhaustion.

Current Behavior: The Channel List component makes a queryChannel request for every newly created channel, which is not scalable for campaigns with a large number of users.

How I could solve this problem?

Thanks

LongJohnSilver1504 avatar Jun 28 '24 12:06 LongJohnSilver1504