Might FCM cause a DDOS?

162 views
Skip to first unread message

Ransom Christofferson

unread,
Feb 2, 2024, 6:30:16 PM2/2/24
to Firebase Google Group
When I send an FCM message to thousands of devices (via the Composer in the console) and include an image in the message, will this cause thousands of simultaneous requests to the image URL?

Or does Firebase stagger the pushing of notifications over a period of time?

Or does Firebase include the binary image data in the push notification (which would cause no hits on the image URL other than Firebase servers fetching the image)?

thanks for any insight you might have.

Arthur Thompson

unread,
Feb 26, 2024, 7:13:20 PM2/26/24
to fireba...@googlegroups.com
Hi,

The message that is sent to devices does not include any binary data. FCM messages are limited to 4000 bytes not enough to include binary data like images.

If a message includes an image URL that image will be fetched by the client at the time the notification is generated. Each client will make its own request for the image so data transfer costs for the image should be taken into consideration.

Hope this clarifies things,
Arthur.

--
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/1b96cf02-dde2-40ec-be1a-22b93bdbd36dn%40googlegroups.com.

Ransom Christofferson

unread,
Feb 27, 2024, 4:00:55 PM2/27/24
to Firebase Google Group
Thanks. In the case where there is a large number of users to send a push message to, do you know if Firebase servers send messages as fast as they can to all targeted users, or do they send in batches over a longer period of time?

Arthur Thompson

unread,
Feb 27, 2024, 4:09:28 PM2/27/24
to fireba...@googlegroups.com
FCM will try to deliver the message to the target audience as soon as possible.

Keep a couple things in mind though:
1. Throughput tops out at around 600K messages per minute, so consider that in your expectations for how fast messages can be delivered.

2. Messages can only be delivered to devices that are online. By default FCM will hold on to messages for devices that are not online and try to deliver them when the device comes back online. You can adjust this behavior with the TTL property.

Reply all
Reply to author
Forward
0 new messages