SOFABoot accelerates application startup in two ways:
Module parallel start
This topic describes how to use modules to start in parallel to improve the application startup speed.
Module parallel startup rules
SOFABoot calculates the module dependency tree based on the Require-Module properties in the module properties configuration and determines the startup sequence between modules based on the dependency tree. The dependency tree does not have modules whose startup order is defined. It can be started in parallel or in series. An example of the dependency tree is as follows:

This dependency tree represents:
Module B and module C depend on module A
Module F depends on module E, and module E depends on module D
This dependency tree guarantees that:
Module A must start before module B and module C
Module D starts before module E and module E starts before module F
The dependency tree does not define the startup sequence between module B and module C, and between modules B and C and modules D, E, and F. These modules can be started in series or in parallel.
Enable and disable module parallel initialization
The following table describes how to enable and disable the module parallel function:
By default, SOFABoot starts modules in parallel.
During use, if you want to disable parallel startup, you can add the following parameters to the
application.properties:com.alipay.sofa.boot.module-start-up-parallel=false