TAstaServerSocket Pooled Threading Model
This is the most scalable ASTA server threading model.
ASTA servers, in order to allow for greater scalability, create and maintain a pool of sessions that are available on an as-needed basis for connected clients. A TAstaSessionList is created and acts as a resource dispenser that supplies client sessions upon request. Instead of creating a session for each connected client, AstaServers pool the sessions and dispenses them when they are needed. In order to achieve maximum scalability, resources should be acquired as late as possible and released as soon as possible. State should only be maintained when only absolutely necessary. When clients request a session from the AstaSessionList, and there are no sessions available, another session is dynamically created and added to the pool.
See Threading ASTA Servers for a discussion on how to implement this threading model or command line switches on how to start an ASTA server up to run in a specific threading model.