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 Index » IBM MQ API Support » IBM XMS parallel processing

Post new topic  Reply to topic
 IBM XMS parallel processing « View previous topic :: View next topic » 
Author Message
drajani
PostPosted: Wed Dec 21, 2016 3:17 am    Post subject: IBM XMS parallel processing Reply with quote

Newbie

Joined: 21 Dec 2016
Posts: 9

I need to process each message only once - order is not important. For a given queue Q1, to achieve better throughput, I am planning to do as below from C# based application (IBM MQ v8, XMS v2.5)

- Establish single connection.
- Create 5 (configurable) tasks - one transacted session per task.
- Every session's message consumer listens to Q1.
- In OnMessage, session committed after each message processing is successful. If processing fails, session is rolled back and message moved to backout queue.

I would like to confirm below -
1. Does above approach makes sense to achieve higher throughput.
2. Is it guaranteed that each message will be received on only one of the 5 sessions? Could not find relevant documentation if this is a supported behavior.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Dec 21, 2016 5:13 am    Post subject: Re: IBM XMS parallel processing Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

drajani wrote:
I need to process each message only once - order is not important. For a given queue Q1, to achieve better throughput, I am planning to do as below from C# based application (IBM MQ v8, XMS v2.5)

- Establish single connection.
- Create 5 (configurable) tasks - one transacted session per task.
- Every session's message consumer listens to Q1.
- In OnMessage, session committed after each message processing is successful. If processing fails, session is rolled back and message moved to backout queue.

I would like to confirm below -
1. Does above approach makes sense to achieve higher throughput.
2. Is it guaranteed that each message will be received on only one of the 5 sessions? Could not find relevant documentation if this is a supported behavior.

#1 Yes you will get higher throughput. Remember to set the sharecvn (1) to get the best throughput.
Session rollback and backout to backout queue / dead letter queue is supposed to be automatic in XMS (i.e. behaves like JMS and you don't have to code for it!
Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
drajani
PostPosted: Wed Dec 21, 2016 7:48 pm    Post subject: Reply with quote

Newbie

Joined: 21 Dec 2016
Posts: 9

Thanks for your reply. I will check on sharecvn. Agreed separate code is not required for rollback scenarios.

Is #2 a expected behavior ?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 22, 2016 2:48 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

drajani wrote:
Thanks for your reply. I will check on sharecvn. Agreed separate code is not required for rollback scenarios.

Is #2 a expected behavior ?

yes it is. Remember that you are expected to directly consume the message and not try to browse it first. Let the system handle all of the locking aspects.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
drajani
PostPosted: Thu Dec 22, 2016 3:25 am    Post subject: Reply with quote

Newbie

Joined: 21 Dec 2016
Posts: 9

OK. Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » IBM XMS parallel processing
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.