The invention relates to a service
orchestration method based on a multi-tenant micro-service architecture, in particular to the field of distributed systems, comprising the steps of creating a
thread pool and defining a private final pipeline, creating a pipeline builder and appointing each stage in the pipeline, generating a pipeline execution class, and initializing a pipeline
processing overall
business process. The method comprises the following steps: establishing a pipeline object, packaging into different processors, creating a pipeline object, effectively
processing concurrent tasks, carrying out reasonable
processing under an overtime condition, avoiding waste and blockage of
system resources, adding each processor into a pipeline and inserting an interceptor into the pipeline, enhancing expandability and flexibility of a
system, and improving
system performance. The output results of the processors are combined into a final result,
exception handling and
rollback operation are carried out, the steps of the whole
business process are divided into a plurality of sub-tasks, parallel execution and serial execution sub-task groups are formed, the execution sequence is determined, and the response speed and the concurrent processing capacity of the system are improved.