Skip to content

Conversation

Doris-Ge
Copy link
Contributor

@Doris-Ge Doris-Ge commented Apr 5, 2023

No description provided.

google-oss-bot and others added 16 commits May 21, 2020 11:49
`SendEachForMulticastDryRun`

1. Add `SendEach`, `SendEachDryRun`, `SendEachForMulticast`,
   `SendEachForMulticastDryRun`
2. Deprecate `SendAll`, `SendAllDryRun`, `SendMulticast`,
   `SendMulticastDryRun`

`SendEach` vs `SendAll`
1. `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.
2. `SendEach` calls fcmClient.Send to send each message
    and constructs a SendResponse with the returned message id or error.
    `SendEach` uses sync.WaitGroup to execute all fcmClient.Send calls
    asynchronously and wait for all of them to complete and construct a
    BatchResponse with all SendResponses.
    Therefore, unlike `SendAll`, `SendEach` does not always returns
    an error for a total failure. It can also return a `BatchResponse`
    with only errors in it.

`SendEachForMulticast` calls `SendEach` under the hood.
@Doris-Ge Doris-Ge requested a review from lahirumaramba April 5, 2023 19:43
@lahirumaramba lahirumaramba changed the title SendEach and SendEachForMulticast for FCM batch send feat(fcm): SendEach and SendEachForMulticast for FCM batch send Apr 5, 2023
Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Please point the base branch to dev

@Doris-Ge Doris-Ge changed the base branch from master to dev April 5, 2023 19:45
@Doris-Ge
Copy link
Contributor Author

Doris-Ge commented Apr 5, 2023

Done. Thank you for the reminder!

@lahirumaramba
Copy link
Member

Thank you @Doris-Ge! One more thing, it looks like fcm-batch-send is out of date... we will need to update it by rebasing with the dev branch.

@Doris-Ge
Copy link
Contributor Author

Doris-Ge commented Apr 5, 2023

Closing this PR because this fcm-batch-send branch was based off master not dev. This is causing problems merging into dev.

@Doris-Ge Doris-Ge closed this Apr 5, 2023
@Doris-Ge
Copy link
Contributor Author

Doris-Ge commented Apr 5, 2023

#552
Created a new fcm-batch-send-dev branch and cherry-picked the commits. Deleting fcm-batch-send.

@Doris-Ge Doris-Ge deleted the fcm-batch-send branch April 5, 2023 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants