Reputation: 56
I've been looking for some time now, information about if it's possible to multi thread sending messages to GCM.
We all know that GCM limits sending a message to 1000 devices max (while using Http). So is it possible to create multiple threads to send a message to 1000 devices times an X number of threads to speed up the process ?
My goal is to send out to millions of devices messages as fast as possible, so if there is a better way to do this, please redirect me to whatever information you have.
Thanks in advance !
Upvotes: 0
Views: 208
Reputation: 663
Yes, there is no limit on the number of concurrent requests you make. But as ztan pointed out, you should consider using topics. Or, if topic messaging doesn't work for you, I'd suggest you use CCS (XMPP Connection Server) for better resource utilization. With CCS you can as well open concurrent connections, if you need.
Upvotes: 1