How can I know if my ApnsClient is not able to cope with the amount of notifications I'm sending through it? #956
-
Hi there! How can I know if my ApnsClient is not able to cope with the amount of notifications I'm sending through it? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
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.