--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/sA7oZzh45VoJ.
For more options, visit https://groups.google.com/groups/opt_out.
throw an exception in the consumer when you 3rd party is downthen you can have another svc that watches your 3rd party, and it can pause/resume your other service. keeps the concerns separated nicely. also kind of a watchdog pattern.
On Fri, Dec 14, 2012 at 11:15 AM, Shane Holder <holder...@gmail.com> wrote:
I've been reading some of the posts on how to pause consuming messages. It seems the proper way is to dispose the bus, is it Ok to do this from inside the Consumer?My scenario is in order to process the message I'm relying on a 3rd party. If that 3rd party goes down (network outage, whatever) I want to pause processing for a while and let the messages queue up for a timeout period, after the timeout period I want to start processing again. What is the proper way to achieve this using MT?FWIW we're using RabbitMQ 3.0.1.Thanks,Shane
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/symqkP0BZhcJ.
Yeah, that's really bad form actually.What I've done in the past is have two buses in a service, a control bus and the "service" bus. The control bus instance is just listening for commands to control the main service. This isn't using the ControlBus feature of MT, this is different. Just a way to adjust the dials on the service out of band of the main service. The control bus in this case is just controlling the windows service essentially, stopping the "moving parts" of the service without taking the windows service to a stopped state.
On Wed, Dec 19, 2012 at 7:21 AM, Shane Holder <holder...@gmail.com> wrote:
Dru,Thanks for the reply. Unfortunately the only way I'll know that the service is up is to try and send the message. I could possibly send a "failed to talk to 3rd party" message from the consumer which failed to another queue which could pause the service (when you mention that I'm assuming your referring to a windows service and something akin to net stop <svc>) but it seems that until the watchdog process is able to stop the service I could process several messages, and possibly end up with messages in the error queue. I'd really like to have the process hosting the consumer realize that it's not doing anything and then stop the bus.
Is it considered bad form for an Consume(IConsumeContext<Message> msg) to issue a msg.Bus.Dispose()?Thanks again,Shane Holder
On Monday, December 17, 2012 9:18:31 PM UTC-6, Dru wrote:
throw an exception in the consumer when you 3rd party is downthen you can have another svc that watches your 3rd party, and it can pause/resume your other service. keeps the concerns separated nicely. also kind of a watchdog pattern.
On Fri, Dec 14, 2012 at 11:15 AM, Shane Holder <holder...@gmail.com> wrote:
I've been reading some of the posts on how to pause consuming messages. It seems the proper way is to dispose the bus, is it Ok to do this from inside the Consumer?My scenario is in order to process the message I'm relying on a 3rd party. If that 3rd party goes down (network outage, whatever) I want to pause processing for a while and let the messages queue up for a timeout period, after the timeout period I want to start processing again. What is the proper way to achieve this using MT?FWIW we're using RabbitMQ 3.0.1.Thanks,Shane
--To post to this group, send email to masstrans...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group, send email to masstransit-discuss+unsubscribe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/sA7oZzh45VoJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
Yeah, that's really bad form actually.What I've done in the past is have two buses in a service, a control bus and the "service" bus. The control bus instance is just listening for commands to control the main service. This isn't using the ControlBus feature of MT, this is different. Just a way to adjust the dials on the service out of band of the main service. The control bus in this case is just controlling the windows service essentially, stopping the "moving parts" of the service without taking the windows service to a stopped state.
On Wed, Dec 19, 2012 at 7:21 AM, Shane Holder <holder...@gmail.com> wrote:
Dru,Thanks for the reply. Unfortunately the only way I'll know that the service is up is to try and send the message. I could possibly send a "failed to talk to 3rd party" message from the consumer which failed to another queue which could pause the service (when you mention that I'm assuming your referring to a windows service and something akin to net stop <svc>) but it seems that until the watchdog process is able to stop the service I could process several messages, and possibly end up with messages in the error queue. I'd really like to have the process hosting the consumer realize that it's not doing anything and then stop the bus.
Is it considered bad form for an Consume(IConsumeContext<Message> msg) to issue a msg.Bus.Dispose()?Thanks again,Shane Holder
On Monday, December 17, 2012 9:18:31 PM UTC-6, Dru wrote:
throw an exception in the consumer when you 3rd party is downthen you can have another svc that watches your 3rd party, and it can pause/resume your other service. keeps the concerns separated nicely. also kind of a watchdog pattern.
On Fri, Dec 14, 2012 at 11:15 AM, Shane Holder <holder...@gmail.com> wrote:
I've been reading some of the posts on how to pause consuming messages. It seems the proper way is to dispose the bus, is it Ok to do this from inside the Consumer?My scenario is in order to process the message I'm relying on a 3rd party. If that 3rd party goes down (network outage, whatever) I want to pause processing for a while and let the messages queue up for a timeout period, after the timeout period I want to start processing again. What is the proper way to achieve this using MT?FWIW we're using RabbitMQ 3.0.1.Thanks,Shane
--To post to this group, send email to masstrans...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group, send email to masstransit-discuss+unsubscribe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/sA7oZzh45VoJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.