--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/422a7b1e-d1b8-4107-8ab0-1f3732adcce2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Kir Titievsky,
I use PubSub as a queue of task for calling 3rd party API. Messages in queue are consumed by a cluster of subscribers (using same "Pub/Sub subscription"). Depend on message being processed, the subscriber call certain 3rd party API.
If the call failed with some error code or RTO, I want Pub/Sub to resend the message to retry the process until some "max retry value".
On Tuesday, March 7, 2017 at 11:32:21 PM UTC+7, Kir Titievsky wrote:
Hi, Ifran,You cannot get this information for an individual message from Pub/Sub. You might be able to solve the problem you are after by looking at the age of the message as well as to diagnose problems with multiple messages by looking at service metrics in Stackdriver.Could you tell us more about what resend count might help you do?k
On Tue, Mar 7, 2017 at 11:21 AM, Irfan Ismail <is.ir...@gmail.com> wrote:
Hi all,
Is it possible to know how many times message have been resent by Pub/Sub, for example cause by acknowledgement deadline expires? Some thing like message.getResendCount()
Thanks.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsubscrib...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/422a7b1e-d1b8-4107-8ab0-1f3732adcce2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/165ed343-1af3-4402-9e10-072d452b1bed%40googlegroups.com.
Irfan, There's another way to handle this: if the 3rd party API call fails, you publish another message with the same content as the original but a message attribute that contains a count of failed calls. You then acknowledge the original message.This solution has some limitations:- You code must not crash before handling the 3rd party API error;- You will sometimes get the same message more than once.But overall this should help isolate most of the "bad messages" without losing any.Let me know if this might work for you.k
On Tue, Mar 7, 2017 at 12:13 PM, Irfan Ismail <is.ir...@gmail.com> wrote:
Hi Kir Titievsky,
I use PubSub as a queue of task for calling 3rd party API. Messages in queue are consumed by a cluster of subscribers (using same "Pub/Sub subscription"). Depend on message being processed, the subscriber call certain 3rd party API.
If the call failed with some error code or RTO, I want Pub/Sub to resend the message to retry the process until some "max retry value".
On Tuesday, March 7, 2017 at 11:32:21 PM UTC+7, Kir Titievsky wrote:
Hi, Ifran,You cannot get this information for an individual message from Pub/Sub. You might be able to solve the problem you are after by looking at the age of the message as well as to diagnose problems with multiple messages by looking at service metrics in Stackdriver.Could you tell us more about what resend count might help you do?k
On Tue, Mar 7, 2017 at 11:21 AM, Irfan Ismail <is.ir...@gmail.com> wrote:
Hi all,
Is it possible to know how many times message have been resent by Pub/Sub, for example cause by acknowledgement deadline expires? Some thing like message.getResendCount()
Thanks.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/422a7b1e-d1b8-4107-8ab0-1f3732adcce2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/165ed343-1af3-4402-9e10-072d452b1bed%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsubscrib...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/422a7b1e-d1b8-4107-8ab0-1f3732adcce2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsubscrib...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/165ed343-1af3-4402-9e10-072d452b1bed%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/8a8c5175-b62d-4656-9774-5d284059ce49%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsubscrib...@googlegroups.com.