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 » How to design the read/write from queue,one or more threads?

Post new topic  Reply to topic
 How to design the read/write from queue,one or more threads? « View previous topic :: View next topic » 
Author Message
olivieer
PostPosted: Mon Nov 22, 2004 2:58 am    Post subject: How to design the read/write from queue,one or more threads? Reply with quote

Newbie

Joined: 17 Nov 2004
Posts: 5

Hi,

I have a MQ Server having one queue manager.

The queue manager has 8 queues where i can write, and 14 where i can read.

What should be the best to do :
- 1 thread to read (with a small waiting time) / 1 thread to write
- 14 threads to read (one per queue) / 8 threads to write

- 1 process to read / 1 process to write
- 14 processes to read / 1 process to write

Thanks
Olivier
Back to top
View user's profile Send private message
KeeferG
PostPosted: Mon Nov 22, 2004 4:55 am    Post subject: Reply with quote

Master

Joined: 15 Oct 2004
Posts: 215
Location: Basingstoke, UK

If performance is an issue then it is much better to have threads waiting for a mesasge to arrive on the queue. That way the queue will be avoided entirely. As for puts it doesn't really matter as the mesasge will always get paassed on be it to the queue or a waiting get thread.

Of course this is all dependent on the type of data being sent and whether each message is atomic.
_________________
Keith Guttridge
-----------------
Using MQ since 1995


Last edited by KeeferG on Mon Nov 22, 2004 5:47 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Mon Nov 22, 2004 5:36 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The decision of how many processes and threads you have involved has really nothing to do with the number of queues, except indirectly.

You should have as many different processes as you have logical sets of functionality (process orders, service loans, format reports, whatever), based on the business you are performing.

Then each process should have sufficient threads within it to achieve the performance it needs to deliver.

Each application/process should read and write to as many queues as are appropriate, again based on the functions you are trying to perform.

In other words, design your systems to meet the business needs, and then use that design to figure out how many queues you need to read and write from in each application.

At least, in my opinion.
_________________
I am *not* the model of the modern major general.
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 » How to design the read/write from queue,one or more threads?
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.