edamov / pushok

PHP client for Apple Push Notification Service (APNs) - Send push notifications to iOS using the new APNs HTTP/2 protocol with token-based (JWT with p8 private key)
MIT License
378 stars 121 forks source link

Performance Question #47

Closed ozgurhangisi closed 5 years ago

ozgurhangisi commented 5 years ago

Currently we use old apns method (with pem cert) and we can send 5000 message in a minute per server (we use aws t2.micro servers with 1 GB RAM).

Is http2 method faster than the old one ? Approximately How many pushes can you send in a minute with this library ? (I know it depends on many factors like cpu, network speed etc... But I just need an average number to understand if it's worth to try the new one)

edamov commented 5 years ago

@ozgurhangisi I didn't test this library with such big amount of messages.

ozgurhangisi commented 5 years ago

@edamov Thanks for the response. So we developed our own http2 library with p12 cert. I can give you some numbers :) with old binary method we were sending 1000 pushes in 11-12 seconds. With our new library we send 50.000 in a second with the same servers. But I didn't test your library. These are our library's numbers.

edamov commented 5 years ago

@ozgurhangisi Thank you for the information

neilmorton commented 5 years ago

@edamov Thanks for the response. So we developed our own http2 library with p12 cert. I can give you some numbers :) with old binary method we were sending 1000 pushes in 11-12 seconds. With our new library we send 50.000 in a second with the same servers. But I didn't test your library. These are our library's numbers.

@ozgurhangisi Would you be able to share the code you wrote for your high performance solution please?

mfscripts commented 4 years ago

@edamov Thanks for the response. So we developed our own http2 library with p12 cert. I can give you some numbers :) with old binary method we were sending 1000 pushes in 11-12 seconds. With our new library we send 50.000 in a second with the same servers. But I didn't test your library. These are our library's numbers.

@ozgurhangisi Is this something you can share, or share pointers as to how you achieved the throughout? We have similar requirements.

yosus commented 3 years ago

I posted some stats info here.