You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the fact that the order between slots in slot chain is essential, currently Sentinel make SlotChainBuilder as the slot chain SPI so that users can implement their own builder, where they can arrange the order between slots. But this introduce complexity for users to arrange the builder when there are many external slots from other dependency.
Describe what you expected to happen
The ideal approach is to make the slot itself as the SPI interface so that users only need to care about their own slot, rather than the global chain. But due to the fact that the order between slots in slot chain is essential, we have to provide a @Order annotation for users so that they can arrange the order with the annotation. And the default slots of Sentinel (e.g. StatisticSlot) should have their own unique order respectively.
The text was updated successfully, but these errors were encountered:
sczyh30
changed the title
Slotchain注册的时候,应该只关心自己,而不需要知道别人
Slot chain SPI should target slot itself rather than the entire builder
Dec 19, 2018
Issue Description
Type: feature request
Describe what happened (or what feature you want)
Due to the fact that the order between slots in slot chain is essential, currently Sentinel make
SlotChainBuilder
as the slot chain SPI so that users can implement their own builder, where they can arrange the order between slots. But this introduce complexity for users to arrange the builder when there are many external slots from other dependency.Describe what you expected to happen
The ideal approach is to make the slot itself as the SPI interface so that users only need to care about their own slot, rather than the global chain. But due to the fact that the order between slots in slot chain is essential, we have to provide a
@Order
annotation for users so that they can arrange the order with the annotation. And the default slots of Sentinel (e.g.StatisticSlot
) should have their own unique order respectively.The text was updated successfully, but these errors were encountered: