[Feature] Support components to start in dependency order
What would you like to be added: Components can be initialized and started based on their dependencies between components. There are two ways to make it:
- Lazy loading.
- Using DAG to automatically resolve dependencies.
Why is this needed: At first, the start order of each component is hardcoded in bootstrap, so the start order is certain and ordered. The originial purpose of Order() defined in Component is to provide the start order: the larger the number, the earlier it starts. But if we defined a new component called A and A depends on Store, we need to look up the order of Store. if A depends on many other components, we need to look up to the order of every components. So the design of Order() is not convenient enough.
HI,please assign it to me