Thread Pool Extension

Expansion Description

The service provider’s thread pool implements the strategy. When the server receives a request, it needs to create a thread in the thread pool to execute the service provider’s business logic.

Extension ports


Extended configuration

<dubbo:protocol threadpool="xxx" />
<!-- Default value setting, when <dubbo:protocol> does not configure threadpool, use this configuration -->
<dubbo:provider threadpool="xxx" />

Known extensions

  • org.apache.dubbo.common.threadpool.FixedThreadPool
  • org.apache.dubbo.common.threadpool.CachedThreadPool

Extended example

Maven project structure:

                | (implement ThreadPool interface)
                |-org.apache.dubbo.common.threadpool.ThreadPool (plain text file, content:

import org.apache.dubbo.common.threadpool.ThreadPool;
import java.util.concurrent.Executor;
public class XxxThreadPool implements ThreadPool {
    public Executor getExecutor() {


Last modified January 2, 2023: Enhance en docs (#1798) (95a9f4f6c1c)