-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
Please use multiple streams to speed up iOS push notifications #15
Comments
Funny you bring this up, this is the last major thing to address before |
That's fantastic. If you need help testing/benchmarking, let us know. I'd be super interested in your thoughts on chatterbox for this, even if you don't decide to use it. |
I'm thoroughly impressed with chatterbox. Didn't take very long to get it working, and it handles async responses like a champ. It also made fetching the I pushed a branch of the new changes to play with (not refactored in the slightest). I still haven't read through chatterbox's source thoroughly enough to understand how it behaves with concurrent stream ids, but I'm guessing it should play nice with Apple's servers. From my basic testing so far I've had no problems sending pushes and getting proper responses. |
Thanks for working on this. I upgraded to Pigeon 0.8.0 but I'm seeing the following error when running my tests:
Am I missing a dependency? |
I guess that's Chatterbox -- I don't know how to get it and don't see anything in the readme. |
okay. 👍 |
It's pretty speedy now. Thanks Henry. Since chatterbox isn't on hex and isn't a dependency of Pigeon, it could use some documentation for adding it to There's no recent tag so I'm just using the latest commit for now: {:chatterbox, ">= 0.0.0", github: "joedevivo/chatterbox", ref: "a01a71bc2713921a60430522cf7323cfa99ffc0e"}, /cc @joedevivo |
There's a 0.3.0 tag that's pretty recent |
Does mix not auto install github dependencies or am I missing something here? Chatterbox 0.3.0 is listed in the |
@hpopp: I guess not, as I had to add it to our mix.exs to install it. Thanks. |
Sorry to open this issue again, but I got the same error when I try to start a second time the server. here my conf:
I did not succeed to user "0.3.0" Steps:
|
Probably better to open a new issue since this one is closed and might get lost.
|
Do you have |
Ok I will create a new issue and send to you all info I have |
HTTP/2 supports multiple streams, but it seems like Pigeon currently waits for a response before sending another notification. When timing a push of 1,000 notifications it seemed to be taking > 100ms per notification.
By not waiting for the response before the next push, Pigeon could be sending 20+ notifications concurrently, cutting the time down dramatically.
The number of streams is dynamic, so there is no optimal number of concurrent notifications to send (unfortunately).
The text was updated successfully, but these errors were encountered: