Quantcast

Multiple address sender

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Multiple address sender

Bruno Matos-2
Hi,

I'm publishing messages with different addresses (ex:
amp.topic/news.1.soccer, amp.topic/news.2.soccer,
amp.topic/news.1.economy, amp.topic/news.2.economy). With the client API
using the Session::messageTransfer method the performance was good, now
with the messaging API, maybe because the overhead of creating senders
for every message, the performance is really bad.

Is there a way to send messages with different addresses with the same
sender or any other suggestions?

Tia.

--
Bruno Matos


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Multiple address sender

Gordon Sim
On 04/04/2012 10:49 AM, Bruno Matos wrote:

> Hi,
>
> I'm publishing messages with different addresses (ex:
> amp.topic/news.1.soccer, amp.topic/news.2.soccer,
> amp.topic/news.1.economy, amp.topic/news.2.economy). With the client API
> using the Session::messageTransfer method the performance was good, now
> with the messaging API, maybe because the overhead of creating senders
> for every message, the performance is really bad.
>
> Is there a way to send messages with different addresses with the same
> sender or any other suggestions?

Yes, because you are sending them all to the same exchange, i.e.
amq.topic, you can create a single sender for amq.topic and then set the
subject of each message as appropriate (e.g. news.1.soccer,
news.2.economy etc)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Multiple address sender

Bruno Matos-2
On Wed, 2012-04-04 at 12:20 +0100, Gordon Sim wrote:

> On 04/04/2012 10:49 AM, Bruno Matos wrote:
> > Hi,
> >
> > I'm publishing messages with different addresses (ex:
> > amp.topic/news.1.soccer, amp.topic/news.2.soccer,
> > amp.topic/news.1.economy, amp.topic/news.2.economy). With the client API
> > using the Session::messageTransfer method the performance was good, now
> > with the messaging API, maybe because the overhead of creating senders
> > for every message, the performance is really bad.
> >
> > Is there a way to send messages with different addresses with the same
> > sender or any other suggestions?
>
> Yes, because you are sending them all to the same exchange, i.e.
> amq.topic, you can create a single sender for amq.topic and then set the
> subject of each message as appropriate (e.g. news.1.soccer,
> news.2.economy etc)

Thank you Gordon, I think I missed that in documentation.

Regards.

--
Bruno Matos


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Multiple address sender

Rajith Attapattu
On Wed, Apr 4, 2012 at 8:51 AM, Bruno Matos <[hidden email]>wrote:

> On Wed, 2012-04-04 at 12:20 +0100, Gordon Sim wrote:
> > On 04/04/2012 10:49 AM, Bruno Matos wrote:
> > > Hi,
> > >
> > > I'm publishing messages with different addresses (ex:
> > > amp.topic/news.1.soccer, amp.topic/news.2.soccer,
> > > amp.topic/news.1.economy, amp.topic/news.2.economy). With the client
> API
> > > using the Session::messageTransfer method the performance was good, now
> > > with the messaging API, maybe because the overhead of creating senders
> > > for every message, the performance is really bad.
> > >
> > > Is there a way to send messages with different addresses with the same
> > > sender or any other suggestions?
> >
> > Yes, because you are sending them all to the same exchange, i.e.
> > amq.topic, you can create a single sender for amq.topic and then set the
> > subject of each message as appropriate (e.g. news.1.soccer,
> > news.2.economy etc)
>
> Thank you Gordon, I think I missed that in documentation.
>
> I believe this is missing in the docs. We need to add an example in the
programming guide.


> Regards.
>
> --
> Bruno Matos
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Loading...