immobiliare / ApnsPHP

ApnsPHP: Apple Push Notification & Feedback Provider
BSD 3-Clause "New" or "Revised" License
1.43k stars 454 forks source link

Horrible Performance on push to many #146

Open ghost opened 7 years ago

ghost commented 7 years ago

Pushing to 16500 Devices takes over 2 minutes. Is it allways so slow or is it me?

Hissvard commented 4 years ago

Been encountering this as well, sending to 10,000 targets was enough to bring down the whole thing for 20 minutes.

In case anyone has the same issue, I've found no solution other than just migrating to Firebase rather than communicating directly with APN.

In old projects I've been implementing a queue so they're sent 20 at a time and it doesn't seem to blow up, depending on your case it might also be possible to use Google's batchImport functionality to convert APN tokens to Firebase ones.