Multithreading in Publication Service

In the previous release, Publication Service processes data with a single thread, which indicates that only one polling request can be processed at the same time. The calling process must wait until the adapter service completes its job before another publication task can take place. If a request for the service currently being processed is pending, other subsequent service requests have to wait until this pending request is handled.

To improve the efficiency of handling requests and increase the response speed of the system, TIBCO ActiveMatrix Adapter for Database supports multithreading for Publication Service. Each Publication Service can hold a separate session with multiple threads that connect to the database separately, and process requests in parallel.

Note: Load balancing and multithreading cannot be configured together in Publication Service.

To configure multithreading in Publication Service, you can set the number of Publication Service threads in the Publisher Options tab. See the following figure:

Figure 86: Setting Multithreading for Publication Service