Skip to content Skip to sidebar Skip to footer

Topics_message_rate_exceeded When Sending More Than One Message In A Short Period Of Time

I need to send more than one message to a single topic in just one second. I have three Android devices and I'm trying to send multiple downstream messages to a topic (the three de

Solution 1:

This is the expected behavior for GCM/FCM. Sending multiple messages to a topic in a short amount of time will cause this error.

I think this serves as a safety net for GCM/FCM against flooding and is also about handling the traffic. Just imagine if you have a 1000 subscribers then you send multiple multiple messages in less than a second to that topic.

You should implement a delay (about 5-10 seconds) for each message you send to the topic.

Also mentioned by @Eran's answer here (which is based from the docs):

Topics Message Rate Exceeded The rate of messages to subscribers to a particular topic is too high. Reduce the number of messages sent for this topic, and do not immediately retry sending.

Post a Comment for "Topics_message_rate_exceeded When Sending More Than One Message In A Short Period Of Time"