Queue Manager Manual

Queue Manager Application Example
Queue Management
1-10 46517 Tandem Computers Incorporated
Figure 1-5. Retail Application with Queue Manager
Entry
Manager
Entry
Manager
Entry
Manager
Queue
File
Queue Manager
Wait
Manager
Check to vendor
ENQ: Sales Order
DEQ: Sales Order
ENQ: PO
DEQ:PO
ENQ: Invoice
Tell me when
sales orders
arrive
Prior WAITQ:
Prior WAITQ:
Tell me when
PO's arrive
Prior WAITQ:
Tell me when
invoices
arrive
Inventory
Accounts
Payable
Sales
Purchasing
DEQ:Invoice
005
Queue Manager allows the application to uncouple the activities of all these processes
and keep each operating at capacity, filling requests and processing items efficiently.
Also, during periods when few requests are logged for a given process, it can go to
sleep until awakened by the Wait Manager, rather than using system resources for
frequent reads on an empty “to do” file.
The following section describes in detail the formats of the Queue Manager UOWs and
includes programming guidelines. For some application design suggestions,
especially with regard to using TMF, see Section 3, “Developing Queue Manager
Applications.”