Closed theabhinavdas closed 2 weeks ago
@theabhinavdas You might get some better answers for conceptual questions by posting on Stack Overflow or requesting a design consult. (I can get the link if you want.)
Edit: re your second question about timeout
, as you've said, it's meant to run indefinitely and listening to messages, but since these are just samples, they need a terminating condition. (We run them as part of CI.) So your normal client code wouldn't do that.
@feywind Understood, thank you. I'll cross-post to Stack Overflow. Happy to get a design consult so please do share the link! Marking as closed.
What I'm trying to do:
I am using pub/sub to move processing of some tasks to the background. The use-case has known transient errors that may be retried. I believe this calls for the use of a pull subscription vs. a push subscription as it gives me more control on flow. Looking for some architecture that ensures max throughput while being resilient to failure.
Questions:
timeout
in this example? I expect the subscriber to run always and continuously process incoming messages.