Unconsumed messages

49 views
Skip to first unread message

usar...@gmail.com

unread,
May 9, 2012, 4:16:35 PM5/9/12
to masstrans...@googlegroups.com
Hello,

sorry if my question looks to basic for this group but I couldn't find any good answer. 
So, lets imagine that I have a publisher and a consumer. When both of them are online then published messages get consumed immediately. But what happens if a consumer is down for some time? 
Lets say, for 10 minutes my publisher managed to publish 1000 messages. What is the behavior for different transports (MSMQ/RabbitMQ/ActiveMQ)? Will all of them get delivered?
My guess is that all these messages must be stored somewhere waiting for a consumer to fetch and process them.

br,
Vova

usar...@gmail.com

unread,
May 10, 2012, 5:19:26 AM5/10/12
to masstrans...@googlegroups.com
Just managed to find this answer on StackOverflow. It partially answers my question but still it would be nice to get more info from the authors of MT.

Travis Smith

unread,
May 10, 2012, 9:08:49 AM5/10/12
to masstrans...@googlegroups.com
The answer is correct. What do you still have questions on?

If there's no subscription registered for a given message, it goes
into The Void(TM). Did we add a log message that a message had no
consumers?

-Travis
> --
> You received this message because you are subscribed to the Google Groups
> "masstransit-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/masstransit-discuss/-/HwDocNtasw4J.
>
> To post to this group, send email to masstrans...@googlegroups.com.
> To unsubscribe from this group, send email to
> masstransit-dis...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/masstransit-discuss?hl=en.

schaibaa

unread,
May 10, 2012, 9:51:30 AM5/10/12
to masstransit-discuss
I'm not an author of MT - but most of your questions depend upon the
way you have things configured. I think it might be helpful for you
to describe the scenario you're looking for and then someone could
point you in the right direction? Essentially - just about everything
can be accomplished. If you'd like the messages to be there when your
service starts up, that can happen --- if not, that can happen too.
The way you accomplish these can vary slightly depending upon which
transport you're using.

usar...@gmail.com

unread,
May 10, 2012, 6:11:28 PM5/10/12
to masstrans...@googlegroups.com
@Travis:
Did we add a log message that a message had no 
consumers?  

If this question is addressed to me then I have no idea. I couldn't find any log records that would clearly say that there are no consumers. May be I should upgrade to 2.5?

@schaibaa:
I don't have any particular scenario in mind. What I was asking for is the short description of how MT behaves using different transports.

For example:
1) RabbitMQ: all messages are stored until a consumer is not back online
2) MSMQ: if you configure this and that it will work in one way; if you change blah-blah-blah then all messages are lost
3) ActiveMQ: ...

Basically, this answer would save lots of time to the people who switch from one transport to another and discover that some messages are lost (or even they configure everything upfront and nothing get lost).

I have some experience with TIBCO and MSMQ, both of them have clear behavior that is described in FAQs. And now I'm trying to experiment with MT on the top of different transports with no clear idea what I will get at the end. If I'm lucky then my consumers will receive all messages. If not then I have to spend 1-2 hours googling for an answer.

br,
Vova
> > To post to this group, send email to masstransit-discuss@googlegroups.com.
> > To unsubscribe from this group, send email to

schaibaa

unread,
May 13, 2012, 7:05:45 PM5/13/12
to masstransit-discuss
I think the following two links should do it for you.

http://docs.masstransit-project.com/en/latest/configuration/transports/index.html
http://docs.masstransit-project.com/en/latest/overview/subscriptions.html

MT doesn't change behaviors based upon the transport. By default,
consumers are transient. If you want them to be permanent, you'll
need to mark them as such and for MSMQ setup the subscription service.

With MSMQ, you need to use .SetNetwork when running on different
machines.. I have not had to do this with Rabbit.

On May 10, 6:11 pm, "usars...@gmail.com" <usars...@gmail.com> wrote:
> *@Travis:*
>
> > Did we add a log message that a message had no
> > consumers?
>
> If this question is addressed to me then I have no idea. I couldn't find
> any log records that would clearly say that there are no consumers. May be
> I should upgrade to 2.5?
>
> *@schaibaa:*
> > masstrans...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > masstransit-dis...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages