This page orders the steps involved in routing a request from the listener to MTS.
Following is the correct order:
- The client calls the address of the listener for the desired database. If there is more than one listener, the client randomizes its calls among those that are available.
- The listener receives the connection request.
- The listener performs the connection handshake and determines if the client is allowed to connect (by checking the list of SIDs it listens for).
- The listener issues a redirect message back to the client containing the address of the least-called dispatcher that is listening on the protocol used by the client.
- The client closes the connection to the listener.
- The client establishes a new connection to the dispatcher, using the address provided by the listener in the redirect message.
- The listener and dispatcher perform a short handshake to update each other regarding the presence of the new connection. This enables the listener to load-balance connections between dispatchers running on the same protocol.
- The listener resumes listening for incoming connections.