为什么SystemSlot和AuthoritySlot的顺序不同?

in GatewaySlotChainBuilder

public ProcessorSlotChain build() { ··· ··· chain.addLast(new AuthoritySlot()); chain.addLast(new SystemSlot()); chain.addLast(new GatewayFlowSlot()); ··· ··· }

in DefaultSlotChainBuilder

public ProcessorSlotChain build() { ··· ··· chain.addLast(new SystemSlot()); chain.addLast(new AuthoritySlot()); ··· ··· }

为什么SystemSlot和AuthoritySlot的顺序不同?

原提问者GitHub用户wavesZh

展开
收起
码字王 2023-05-19 17:04:25 1307 分享 版权
1 条回答
写回答
取消 提交回答
  • 事实上,GatewaySlotChainBuilder中插槽的顺序比DefaultSlotChain Builder中的要好。

    原回答者GitHub用户sczyh30

    2023-05-19 22:44:15
    赞同 展开评论
问答地址:

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

还有其他疑问?
咨询AI助理