Lower Priority Orders

When any order is processed based on the given priority, it results in a situation where a lower priority orders may never get a chance to be processed because of high priority orders.

The orders with the lower priority can be processed by a mechanism known as the Flow Control mechanism.

The Enterprise Messaging Service (EMS) allows the user to control the flow of messages to a destination. Each destination can specify a target maximum size for storing all the pending messages. When the target is reached, EMS blocks message producers when new messages are sent. This effectively slows down message producers until the message consumers can receive the pending messages.