Skip to content

performance firebase-admin-java (9.2.0) #890

@KrishnakanthYachareni

Description

@KrishnakanthYachareni
  • Library version: 9.2.0
  • Firebase Product: Messaging

In one of the firebase-admin-java PR mentioned that, sendEach sends one HTTP request to V1 Send endpoint for each message in the array. sendAll sends only one HTTP request to V1 Batch Send endpoint to send all messages in the array.

  1. But after comparing the debug logs of both calls, I discovered that they both make the same number of HTTP calls for the same number of device tokens. So what's the improvement in the new sendEach method?
  2. I have tried to understand the difference between the sendEachAsync and sendEachForMulticastAsync methods in terms of performance. However, both methods seem to make the same number of REST calls to FCM based on the number of device tokens in the message. Can you clarify this further?
  3. Is there a method similar to the BATCH endpoint where only one REST call is made for multiple device tokens?
  4. Once we upgrade to the latest version of firebase-admin (9.2.0) from our current version (7.0.1), will there be any performance improvements in terms of the number of REST calls made to FCM? Are there any other benefits to upgrading to the latest version with respect to the client application? (Aside from the deprecated batch endpoint, are there any other changes?)

I appreciate your response.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions