Multithreading
Using multiple threads, an application can simultaneously process multiple and independent events. TIBCO ActiveMatrix Adapter for Database (TIBCO Business Studio) supports multithreading to efficiently handle requests and increase the response speed of the system.
Multithreading is supported for Publication Service, Subscription Service, and Request-Response Service.
Multithreading in Publication Service
Each service of Publication Service can be configured with multiple threads that connect to the database separately and then process requests in parallel. You can set the number of threads for Publication Service by configuring the Number of Publication Service Threads field in the Publication Options tab.
Multithreading in Subscription Service
To improve the performance in high load scenarios, the adapter uses multiple threads to spread a subscription message load, which prevents blocking the processing on a specific subscription table.
- Fail to roll back a transaction.
- Fail to insert received data into the destination table, but the exception table is not configured.
- Fail to insert error data into the exception table, but the opaque exception table is not configured.
- Fail to insert error data into the opaque exception table.
The use of multithreading is directly related to the session to be used for Subscription Service. For details, see Multithreading and Session in Subscription Service.
Although multithreading helps improve the performance of Subscription Service, the improvement is affected by what table structures are selected for Subscription Service, a single table or a parent-child table. For details, see Multithreading and Tables for Subscription Service.
Multithreading in Request-Response Service
You can improve the performance of Request-Response Service by specifying the number of threads to process application requests. Each Request-Response Service thread is dedicated to listen on an agreed request subject.
- To set multithreading at the adapter configuration level, configure the Number of Request-Response Service Default Session Threads field in the Advanced tab of an adapter configuration.
- To set multithreading at the adapter service level, configure the Request-Response Options tab of Request-Response Service:
The configuration of multithreading is directly related to the session to be used for Request-Response Service. For details, see Multithreading and Session in Request-Response Service.