Consultor Eletrônico



Kbase 20801: Understanding Queue Processes in Asynchronous Requests: the Send and Response queue
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Verified

GOAL:

How the asynchronous requests are queued in the Progress AppServer: the Send and Response queue

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x

FIX:

An asynchronous request that is sent to the AppServer, runs asynchronously with the client process. If more than one request is sent to the same AppServer, the process is queued.

It is very important to know how the requests are queued in the AppServer, and how the event-procedures are queued in the client session:
The Send queue
queues the process sent to the AppServer. There are as many send queues as there are client connections to the AppServer.

The requests are executed within the AppServer in the same order that they are sent. When a request is finished, it is sent to the 'response queue'.
The Response queue
queues the requests that have completed execution and are waiting for the event-procedure execution.

Events-procedures are executed synchronously in the client session. If there is more than one response queue, it is impossible to know what request is executed first. Requests are executed in the order that they were submitted from the responses queues.