Skip to content

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

Merged
chong-shao merged 2 commits into
masterfrom
increase_batch_send_limit
Oct 23, 2019
Merged

fix(fcm): Increase the multicast request count limit to 500.#321
chong-shao merged 2 commits into
masterfrom
increase_batch_send_limit

Conversation

@chong-shao

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown

@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
Copy Markdown
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.

@hiranya911 hiranya911 left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown

@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

hiranya911 commented Oct 23, 2019

Copy link
Copy Markdown
Contributor

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

Bonythomasv commented Oct 24, 2019 via email

Copy link
Copy Markdown

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