question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Retries on push notifications

See original GitHub issue

PushNotificationListener could use its own notification queue to schedule retries.

See discussion at: https://groups.google.com/d/msgid/killbilling-users/CAJE4nfvdYty4SYyCfe1m94uoJWqaZwLGPCJwAAwCsB4Ht-o50A%40mail.gmail.com

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pierrecommented, Jul 25, 2016

Do you think we can ask for a status = 404 here?

I think we should keep the logic as is: if the destination app is down (e.g. connect timeout), or unavailable (e.g. returns 500) or misconfigured (e.g. returns 301), we should assume the notification wasn’t received and we should retry later (i.e. send it again).

Does “retry” means insert this event into notification queue again?

We should create a new queue, independent of the queue of the original event, responsible for these events. The queue would be similar to the one handling payment retries and do some sort of exponential delay retries over the span of, say, a few days (configurable).

I would also suggest we always insert in this new queue (effective date == now()) and attempt to send in the notification queue callback, to avoid blocking the external bus (since the HTTP POST can take some time). @sbrossie thoughts?

Does it make sense?

0reactions
matias-aguero-hscommented, Jul 29, 2016

@pierre I created a PR https://github.com/killbill/killbill/pull/589 with this feature implemented.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Amazon SNS message delivery retries - AWS Documentation
The delivery policy defines how Amazon SNS retries the delivery of messages when server-side errors occur (when the system that hosts the subscribed ......
Read more >
Rretry mechanism of push notification to offline mobile phone
It's stored for only a limited period of time. The notification is delivered to the device when the device becomes available.
Read more >
Mobile Push Message queuing, retry and expiry mechanism
Message store, forward and retry mechanisms. Automatic queuing of concurrent messages with message queuing capability; Messages not received will be stored ...
Read more >
Push notifications - Kill Bill Documentation
Push notifications are a convenient way to get notified about events from the system. One can register a callback, i.e, a valid URL...
Read more >
Apple Push Notifications - Resend on Failure? - Stack Overflow
My goal is to send a notification to 100 people and if 10 of them fail to be delivered, have those 10 failures...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found