ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexGeneral DiscussionMulti consumers

Post new topicReply to topic
Multi consumers View previous topic :: View next topic
Author Message
Zack
PostPosted: Sat Oct 06, 2018 6:57 am Post subject: Multi consumers Reply with quote

Newbie

Joined: 06 Oct 2018
Posts: 4

Hi folks,

We need to create applications consuming the same message. Currently the first one reads the message is no longer available for the others. I read documentation about the browse and mark but my issue to remove the message once all applications have been read the message.

Thanks for your inputs,

Zack
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sat Oct 06, 2018 10:46 am Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

The normal behavior of an MQGET is to destructively consume the message. Your app(s) can request BROWSE, which will not destructively consume.

How will a consumer know that it is the last consumer? The last consumer should destructively consume the message.

This design might make use of a DB table where each consumer posts that it has “read” a msg (by its MsgId or similar).
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
tczielke
PostPosted: Sat Oct 06, 2018 12:34 pm Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 939
Location: Illinois, USA

This requirement sounds like something that is met with standard pub/sub.
_________________
Working with MQ since 2010.
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Sat Oct 06, 2018 12:44 pm Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

Indeed, with Pub/Sub MQ will send a different copy of the same message to each consumer that is 'interested' in messages of this type.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
gbaddeley
PostPosted: Sun Oct 07, 2018 2:59 pm Post subject: Re: Multi consumers Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
Location: Melbourne, Australia

Zack wrote:
Hi folks,
We need to create applications consuming the same message. Currently the first one reads the message is no longer available for the others.

Hi Zack.
Multiple applications should never read from the same queue, unless they don't care who actually processes each msg.
Either go the pub/sub route (as suggested), or modify the producer app to put the same message to multiple queues, or add a 'distributor' app in between (creates another point of failure ).
What type of data is in the message? What are the processing requirements? There might be better solutions.
_________________
Glenn
Back to top
View user's profile Send private message
Zack
PostPosted: Mon Oct 08, 2018 4:16 pm Post subject: Multi consumers Reply with quote

Newbie

Joined: 06 Oct 2018
Posts: 4

Thanks guys for input.
Actually initially the design was made for only one consumer, now business needs other applications (for data warehouse) are interested to consume the message.

As you suggested may I have to change to pub/sub model.


Zack
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexGeneral DiscussionMulti consumers
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.