Skip to content

fix(fcm): Increase the multicast request count limit to 500. #321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 23, 2019

Conversation

chong-shao
Copy link
Contributor

@chong-shao chong-shao commented Oct 22, 2019

Increase the multicast request count limit to 500.

Testing

  • Updated the related tests.

RELEASE NOTE: Number of messages per batch increased to 500.

@Bonythomasv
Copy link

@chong-shao is n't it better to make this configurable ?
my understanding is that , we can send upto 1000 devices with a single API call. so making this configurable will provide more flexibility for the clients.

@chong-shao
Copy link
Contributor Author

Hi @Bonythomasv We are experimenting with the 1000 limit and we would like to set the recommended maximum size in our SDK to be 500 for now.

@chong-shao is n't it better to make this configurable ?
my understanding is that , we can send upto 1000 devices with a single API call. so making this configurable will provide more flexibility for the clients.

Copy link
Contributor

@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

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

LGTM

@hiranya911 hiranya911 removed their assignment Oct 23, 2019
@hiranya911 hiranya911 changed the title feat(fcm): Increase the multicast request count limit to 500. fix(fcm): Increase the multicast request count limit to 500. Oct 23, 2019
@chong-shao chong-shao merged commit c33579d into master Oct 23, 2019
@chong-shao chong-shao deleted the increase_batch_send_limit branch October 23, 2019 23:03
@Bonythomasv
Copy link

@chong-sao. Are you seeing any knows issues with 1000 ?

We used the FCM http directly, we send 100s services per API call and but we would like to switch to admin sdk and this 500 hard limit is going to be a problem for us.

Can I PR to make this configurable with default value as 500

@hiranya911
Copy link
Contributor

hiranya911 commented Oct 23, 2019

FCM v1 API only supported 100 messages per batch until a few days ago. It's the legacy FCM API that supported batches of up to 1000. We want to get the v1 API limit bumped up to 1000, but we want to do it in phases. So until all SDKs are there, we'd advise users to not send batches larger than 500 to the v1 API.

PS: We also don't want this to be a configurable limit. It needs to be enforced as a hard limit.

@Bonythomasv
Copy link

Bonythomasv commented Oct 24, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants