Is there a limit to the MSMQ queue size?
Asked Answered
O

2

9

I know about the size limit for the message (4MB), but is there a limit to the queue size? Best practice limit maybe?

Octofoil answered 5/12, 2011 at 18:17 Comment(0)
O
11

"Best practice limit maybe?"

One good test is to see how long it takes for a system to restart and become operational again. So you may want to have {{picks number out of air}} 100Gbytes of messages, for example, as a maximum limit but 100Gbytes could take {{picks another number out of air}} 30 minutes to reload. That may be way outside your SLA.

So:

  1. Decide what your down-time SLA for the system is
  2. Work out how many messages in storage would be needed to break SLA on restart
  3. Work out how many messages the system can actually store
  4. Choose lower of the two.
Observer answered 6/12, 2011 at 12:20 Comment(0)
D
4

Yes, of course there is a limit.

You can find details here.

However, if your consumers consume messages at the same rate as producers produce, then you dont have to worry about the memory limit etc.

As far as my experience, the queue capacity depends on the machine and not that large compared to ActiveMQ or RabbitMQ

Digressive answered 5/12, 2011 at 18:20 Comment(4)
True, queue capacity varies from machine to machine as the constraint on maximum size is available kernel memory (used for indexing the messages). Interested to know what ActiveMQ or RabbitMQ use instead.Observer
OK i used MSQM, activemq and rabbitmq, msmq didnt scale very good for me, compared to activemq and rabbitmq. Also, activemq and rabbitmq has much more functionality than msmq.Digressive
@JohnBreakwell, did you ever get around to that blog post?Andras
Nope. I moved technologies and lost focus.Observer

© 2022 - 2024 — McMap. All rights reserved.