Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Is the Subscription Service necessary?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  19 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tommy Jakobsen  
View profile  
 More options Jul 19 2012, 2:21 am
From: Tommy Jakobsen <to...@holmjakobsen.dk>
Date: Wed, 18 Jul 2012 23:21:25 -0700 (PDT)
Local: Thurs, Jul 19 2012 2:21 am
Subject: Is the Subscription Service necessary?

Hello,

Dead simple question. Is the Subscription Service necessary? I'm writing a
pub/sub example with a single publisher and many subscribers (MSMQ). I got
a bit confused when reading the docs about the runtime services here:
http://docs.masstransit-project.com/en/latest/overview/runtimeservice...
*"As of 2.0 the MsmqMulticastSubscription manager provides similar
functionality while removing the need for a single point of failure."*
**
Does that mean that I don't have to use the Subscription Service? I haven't
been able to figure out a way to set up a pub/sub scenario without it so
far. And the pub/sub sample shows the use of the Subscription Service (I'm
away that they can be out dated of course). If it's possible to avoid the
Subscription Service (and thus a single point of failure) when using MSMQ,
can you show me how? And maybe provide some details on why this works. I
can see the necessity of a Subscription Service but not a scenario without
it, so some details would be very helpful.

Best,
Tommy


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dru Sellers  
View profile  
 More options Jul 19 2012, 11:04 am
From: Dru Sellers <d...@drusellers.com>
Date: Thu, 19 Jul 2012 10:04:30 -0500
Local: Thurs, Jul 19 2012 11:04 am
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

if you are using msmq you must use either the SubscriptionService or the
MulticastSubscriptions.

-d

On Thu, Jul 19, 2012 at 1:21 AM, Tommy Jakobsen <to...@holmjakobsen.dk>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Patterson  
View profile  
 More options Jul 19 2012, 1:14 pm
From: Chris Patterson <ch...@phatboyg.com>
Date: Thu, 19 Jul 2012 12:14:48 -0500
Local: Thurs, Jul 19 2012 1:14 pm
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

And multicast subscriptions are not persisted at each bus instance, so they
are lost if everyone shuts down. The only production worthy way to use MSMQ
in production is with the subscription service.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeffrey T. Fritz  
View profile  
 More options Jul 19 2012, 1:20 pm
From: "Jeffrey T. Fritz" <jeffreytfr...@gmail.com>
Date: Thu, 19 Jul 2012 13:20:30 -0400
Local: Thurs, Jul 19 2012 1:20 pm
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

I gotta ask a follow-up question:  is there a way to setup a redundant SubscriptionService?

Jeff

On Jul 19, 2012, at 13:14, Chris Patterson <ch...@phatboyg.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Patterson  
View profile  
 More options Jul 19 2012, 1:53 pm
From: Chris Patterson <ch...@phatboyg.com>
Date: Thu, 19 Jul 2012 12:53:41 -0500
Local: Thurs, Jul 19 2012 1:53 pm
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

We have set it up as a cluster resource so that it fails over if the
windows server fails.

On Thu, Jul 19, 2012 at 12:20 PM, Jeffrey T. Fritz
<jeffreytfr...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff  
View profile  
 More options Jul 20 2012, 1:43 pm
From: Jeff <jeffreytfr...@gmail.com>
Date: Fri, 20 Jul 2012 10:43:25 -0700 (PDT)
Local: Fri, Jul 20 2012 1:43 pm
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

Are there instructions somewhere on how to cluster the subscription
service?  Or is this just running on a clustered server?

Jeff


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Travis Smith  
View profile  
 More options Jul 20 2012, 3:00 pm
From: Travis Smith <tra...@legomaster.net>
Date: Fri, 20 Jul 2012 15:00:46 -0400
Local: Fri, Jul 20 2012 3:00 pm
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

This would just be a clustered windows server. There is no MT config
related to it.

-Travis
On Jul 20, 2012 1:43 PM, "Jeff" <jeffreytfr...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tommy Jakobsen  
View profile  
 More options Jul 23 2012, 3:15 am
From: Tommy Jakobsen <to...@holmjakobsen.dk>
Date: Mon, 23 Jul 2012 00:15:22 -0700 (PDT)
Local: Mon, Jul 23 2012 3:15 am
Subject: Re: Is the Subscription Service necessary?

Thank you very much for clarifying.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Altug Sahin  
View profile  
 More options Mar 15, 2:42 pm
From: Altug Sahin <asa...@aecoffice.com>
Date: Fri, 15 Mar 2013 11:42:32 -0700 (PDT)
Local: Fri, Mar 15 2013 2:42 pm
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

As a newbie in MT, I am researching and trying to understand the framework.
I came across this old post but wanted to post my question here since it is
somewhat relevant to the original question.

I setup a sample solution with one producer and two consumers. I publish
from producer and all consumers are handling the event. So all is good. I
am using RabbitMQ 3.02 and MT 2.6.5.

However, this setup below is not working; subscriber (consumer) is not
invoking the handler.

Solution 1
Producer
Messages dll

mt config for producer

            builder.RegisterType<MdxExpressionCreatedHandler>()****

                   .AsSelf();****

** **

            builder.Register(c => ServiceBusFactory.New(x =>****

            {****

                x.UseRabbitMq();****

                x.UseNLog();****

                x.ReceiveFrom(MassTransitSettings.ConsumerQueueUrl);****

                x.Subscribe(s => s.LoadFrom(c.Resolve<ILifetimeScope>()));**
**

                x.UseControlBus();****

//x.UseSubscriptionService("rabbitmq://localhost/dart-dev/subscriptions");* *
**

                x.Validate();****

            })).As<IServiceBus>()****

               .SingleInstance();

Solution 2
Consumer
Messages dll

my config for consumer

            builder.Register(c => ServiceBusFactory.New(x =>****

            {****

                x.UseRabbitMq();****

                x.UseNLog();****

                x.ReceiveFrom(MassTransitSettings.ConsumerQueueUrl);****

//x.UseSubscriptionService("rabbitmq://localhost/dart-dev/subscriptions");* *
**

                x.Subscribe(s => s.LoadFrom(c.Resolve<ILifetimeScope>()));**
**

                x.UseControlBus();****

                x.Validate();****

            })).As<IServiceBus>()****

               .SingleInstance();

A copy Messages.dll is physically deployed to both apps (console app with
topshelf).

Do I need a third process for subscription service hosting MT? Not sure why
first solution was working and second is not. As you can see I was about to
setup the subscription service but wanted to post here to see if I am going
in the right direction to verify this.

Thank you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dru Sellers  
View profile  
 More options Mar 15, 4:30 pm
From: Dru Sellers <d...@drusellers.com>
Date: Fri, 15 Mar 2013 15:30:47 -0500
Local: Fri, Mar 15 2013 4:30 pm
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

What are the values of
MassTransitSettngs.ConsumerQueueUrl
-d

On Mar 15, 2013, at 13:42, Altug Sahin <asa...@aecoffice.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Travis Smith  
View profile  
 More options Mar 15, 4:33 pm
From: Travis Smith <tra...@legomaster.net>
Date: Fri, 15 Mar 2013 16:33:15 -0400
Local: Fri, Mar 15 2013 4:33 pm
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

They must read off different queues. I'm not sure if that's the case here
or not, since it's hidden behind a class.

Additionally, you shouldn't need the UseControlBus with Rabbit. Since
normally there's no meta data, it's all in Rabbit.

-Travis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
altug sahin  
View profile  
 More options Mar 15, 4:48 pm
From: altug sahin <altugsa...@gmail.com>
Date: Fri, 15 Mar 2013 13:48:40 -0700 (PDT)
Local: Fri, Mar 15 2013 4:48 pm
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

Hi Dru,
the consumer queue is

rabbitmq://localhost/dart-dev/mdxreporting-consumer


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
altug sahin  
View profile  
 More options Mar 15, 4:51 pm
From: altug sahin <altugsa...@gmail.com>
Date: Fri, 15 Mar 2013 13:51:12 -0700 (PDT)
Local: Fri, Mar 15 2013 4:51 pm
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

Producer queue is (I know, name is ....)

rabbitmq://localhost/dart-dev/mdx-consumer


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Patterson  
View profile  
 More options Mar 15, 7:17 pm
From: Chris Patterson <ch...@phatboyg.com>
Date: Fri, 15 Mar 2013 16:17:33 -0700
Local: Fri, Mar 15 2013 7:17 pm
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

To answer your initial question, you do not need the Subscription Server
with RabbitMQ. It's only for MSMQ.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Patterson  
View profile  
 More options Mar 15, 7:21 pm
From: Chris Patterson <ch...@phatboyg.com>
Date: Fri, 15 Mar 2013 16:21:25 -0700
Local: Fri, Mar 15 2013 7:21 pm
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

I'm guessing that your classes may not be registered in the container
correctly. There are several threads on using Autofac with MassTransit,
particularly in ensuring that the concrete type of the consumer is
registered, and not the Consumes interfaces.

You can verify the subscriptions by looking at the log, and also looking at
the RabbitMQ exchange bindings in the RabbitMQ management web site, in
which there should be a binding from the exchange named after the message
type, all the way down to the exchange that matches the input queue name
(mdx-consumer), etc.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
altug sahin  
View profile  
 More options Mar 18, 8:53 am
From: altug sahin <altugsa...@gmail.com>
Date: Mon, 18 Mar 2013 05:53:50 -0700 (PDT)
Local: Mon, Mar 18 2013 8:53 am
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

Thanks Chris. Documentation is missing this clarification. May be that can
be appended here?
http://docs.masstransit-project.com/en/latest/overview/subscriptions....

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
altug sahin  
View profile  
 More options Mar 18, 9:09 am
From: altug sahin <altugsa...@gmail.com>
Date: Mon, 18 Mar 2013 06:09:26 -0700 (PDT)
Local: Mon, Mar 18 2013 9:09 am
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

I looked at the exchanges page on management page and the exchange names as
"MdxExpressionCreated" has two bindings; mdx-producer and mdx-creator. The
exchange is a fanout exchage (which is default).

I published a message from exchange page (in mgm web app) and I see that
message in both queues.

I checked the autofac setup and I was registering to concrete type not
implementation.

I also see the subscription to MdxExpressionCreated message is being
created on the console output of the producer.

I commented out the autofac wiring of handler and added it in the bus setup
as below but the message is not being handled. Any other ideas to check
where I am missing something?

Thanks

//builder.RegisterType<MdxExpressionCreatedHandler>()
//       .AsSelf();

builder.Register(c => ServiceBusFactory.New(x =>
{
    x.UseRabbitMq();
    x.UseNLog();
    x.EnableMessageTracing();
    x.ReceiveFrom("rabbitmq://localhost/dart-dev/mdx-producer");
    x.Subscribe(s => s.Handler<MdxExpressionCreated>(expression => new
MdxExpressionCreatedHandler().Consume(expression)));
    //x.Subscribe(s => s.LoadFrom(c.Resolve<ILifetimeScope>()));
    x.Validate();

})).As<IServiceBus>()

   .SingleInstance();


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
altug sahin  
View profile  
 More options Mar 18, 10:54 am
From: altug sahin <altugsa...@gmail.com>
Date: Mon, 18 Mar 2013 07:54:41 -0700 (PDT)
Local: Mon, Mar 18 2013 10:54 am
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

Found the issue but it has nothing to do with setup of config f MT or rmq.
Issue was with the way I publishing through a static property (mt is
abstracted inside an implementation). back ctor injection; pub/sub works
again.

Nevertheless, thank you for the help. It helped me verify my setup and
ignore subscription manager if using rmq. :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Patterson  
View profile  
 More options Mar 18, 11:32 am
From: Chris Patterson <ch...@phatboyg.com>
Date: Mon, 18 Mar 2013 08:32:48 -0700
Local: Mon, Mar 18 2013 11:32 am
Subject: Re: [masstransit-discuss] Is the Subscription Service necessary?

Great, glad you worked it out!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »