Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

make MDB Process messages in a strict order with improved performance  RSS feed

 
korukanti rao
Greenhorn
Posts: 8
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I have a specific requirement where my application have to process messages in strict order of delivery , application would be deployed on WAS7 and I am planning to use MDB and listener ports configured in WAS.

I was able to process messages in the order they appear on my Queue by configuring Maximum sessions & Maximum messages on the WAS listener to 1 but that has an impact on my performance because there is only 1 messages processed per unit of work.

I am looking for your help to improve performance and throughput , Can you please suggest any inputs how do achieve them

1) Can you please let me know if I could increase Maximum messages to 10 or 20 and keep Maximum Sessions still at 1 , because IBM documentation says that if i do that it will process all my messages as part of a single transaction and commit would have happen as part of single transaction.

2) How do i scale my system horizontally , is there any way that I could have more than 1 listener port process the messages from Queue and still maintain strict order.

Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the reason for the "strict order of delivery" requirement?

Which of these is true?

A. processing one message alters the environment seen by the next message.
B. the result of processing one message does not affect the handling of the next message.

Obviously, if A is true then there is no parallel processing / multi thread / multiserver solution.

If B is true, you could do parallel processing as long as the order of output of message preserves the order of input.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!