giovedì 21 aprile 2011

Optimizing Performance of the MSMQ Adapter

Receive Optimization
On the receive side, you can have the adapter use a single execution thread. Whether the adapter uses a single thread or multiple threads depends on the setting of the Ordered Processing property on the receive location, as follows:
  • When the property is True, the adapter operates on a single thread. This limits the adapter to one message at a time and conserves memory. Notice that this effectively sets Batch Size to one (1), regardless of the value assigned to it in the property sheet.

  • When Ordered Processing is False, the adapter runs multiple threads and can process multiple messages at a time, therefore increasing performance.

You must set Ordered Processing to True if you put a premium on managing server resources, or if the number or size of messages might exhaust available memory.
You can also control memory use by reducing the value of Batch Size on the receive location. A smaller batch size keeps fewer messages in memory and therefore uses less memory.
(from MSDN).
Placing send ports and receive locations on separate computers can also reduce memory use.

MSMQ and Biztalk: larger message of 4 mb

in working...

MSMQ and Biztalk

Hi, today we see the use of MSMQ and integration with biztalk (send & receive)


First step: install MSMQ on server (same or another):

2. Click on Application Server and then click Details.
3. If the Message Queuing checkbox is selected it means the service is already installed and you can thus skip the rest of this section. If it is not, then you need to follow the rest of the steps below to install the message queuing service. In the Application Server dialog click on Message Queuing and then click Details.
 
4. In the Message Queuing dialog select the Core functionality checkbox and then click OK.
5. In the Application Server dialog click OK and then click Next in the Windows Components Wizard window to start installing the message queuing service.
6. When the installation of the message queuing service is complete, you need to click Finish in the Windows Components Wizard. The Message Queuing Service is now installed.

Second step: Create QUEUE ( we will create a private queue)
1.  Open the Computer Managment
 
2. Create a new private queue , set name , is transactional or none (remember this parameter)

Third step:  Biztalk , send and receive port ( if you want make a dummy orchestration )
1. the send port configure 
(set in trasport advanced tab ORDERED DELIVERY)
and configure... is


the parameter TRANSACTIONAL must egual to parameter queue.... and the destination is the name of queue.

2. Receive port is configured :

and the configure...

set oredered processing TRUE and the batch size  = 1.


Now, must you able to use MSMQ.

NOTE: it's important you remember, the message max dimension is 4 MB !! for larger message read my post "larger message queue"

bye