Skip to content

How can I know if my ApnsClient is not able to cope with the amount of notifications I'm sending through it? #956

Answered by jchambers
michaeldiener asked this question in Q&A
Discussion options

You must be logged in to vote

Well, to answer your question directly, you can measure the number of in-flight messages with a metrics listener; you can figure out how many messages are in flight by measuring the difference between the number of notifications sent and the number accepted/rejected by the server.

That said, if your goal is to actually control how many messages are in flight, I recommend implementing flow control outside of Pushy; please see the flow control section of the "best practices" wiki page for details.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@michaeldiener
Comment options

Answer selected by michaeldiener
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants