Firebase Topic Subscription Limit

744 views
Skip to first unread message

Mehedi Hasan

unread,
Feb 25, 2020, 11:49:45 PM2/25/20
to Firebase Google Group
Hi Team,
From documentation we can see that, in a single request we can subscribe 1000 firebase tokens to a specific topic. However, we have customer bases much more (in millions actually). So we are planning to do the below:

1. At server side, we will use multi-threaded subscriber application. We are planning to use 10 threads in parallel, in each thread we will send one subscription request containing 1000 fcm tokens. In that scenario, we will effectively get us 10x capacity to subscribe to a specific topic. 

2. We can split one topic in to multiple sub topics. And from server side we can subscribe 1000 users in each sub topic, at the same instance. This willl also increase the throughput of effective number of subscription.

Our end goal is subscribing this huge customer base we have to a topic in the minimum possible time.  Is our approach ok or Firebase will support that?

Kato Richardson

unread,
Feb 26, 2020, 1:38:48 PM2/26/20
to Firebase Google Group
Hello Mehedi,

A single device can subscribe to 2K topics. For batch import, you can subscribe up to 1K in a single batch. I could be missing something, but I don't see anything here that says you're limited to 1K subscribers per topic.

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/c41ca44d-4ede-4693-a165-27e784359ad6%40googlegroups.com.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Mehedi Hasan

unread,
Feb 26, 2020, 4:20:54 PM2/26/20
to fireba...@googlegroups.com
Sorry Kato, I could not make my question clear. For bacth import, we can subscribe 1k users in a single request. Can we use a multiple threads to create separate batches and subscribe them at once? For example if we have10 batch with 1k users each and a java application with 10 parallel threads, can we fire the subsciption request in all 10 threads in parallel?

Regards
Mehedi 

Reply all
Reply to author
Forward
0 new messages