Meqwz
Meqwz

Reputation: 1491

Getstream.io - Sending one message to many channels

What is the best pattern for sending one message from one user to many 'messaging' channels? In my case, it could be as many as 300 or more. From reviewing the documentation, it looks like I need to query the channels 30 at a time, then iterate through those channels and send a message to each one. That seems very cumbersome and I was wondering if there was a better way. Would using Mult-Tenant and Teams be a solution somehow?

Upvotes: 0

Views: 565

Answers (1)

ferhatelmas
ferhatelmas

Reputation: 3978

Unfortunately, the way you explained (query -> send -> repeat) is the solution.

A batch endpoint would be useful but it might be more involved than expected due to unread message maintenance, push notifications, etc.

However, it's not there today and not planned for very soon either.

Upvotes: 1

Related Questions