Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a limit to the MSMQ queue size?

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

like image 646
Etchin Avatar asked Dec 05 '11 18:12

Etchin


People also ask

What is the maximum size of message queue?

The message queue can list from 0 to 255 messages. The default setting is set to a maximum of 50 messages queued. However if a message queue size of 0 is specified, then fixed format job event and output generation messages are lost.

Is MSMQ obsolete?

As a Windows component, MSMQ is technically “supported” as long as it's carried by a supported version of Windows. Since it exists in Windows 10 and Windows Server 2019, MSMQ will continue to live on until at least 2029—and much longer assuming it isn't removed from future versions of Windows.

Does message queue decrease performance?

Message queues can significantly simplify coding of decoupled applications, while improving performance, reliability and scalability.


1 Answers

"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.
like image 157
John Breakwell Avatar answered Sep 23 '22 17:09

John Breakwell