nacos icon indicating copy to clipboard operation
nacos copied to clipboard

using Chain of Responsibility to refactor ConfigQueryRequestHandler and ConfigServletInner

Open shiyiyue1102 opened this issue 1 year ago • 2 comments

using Chain of Responsibility refactor ConfigQueryRequestHandler and ConfigServletInner, replacing current serval if-else statements.

Create ConfigQueryHandler and ConfigQueryHandlerChain,ConfigQueryHandlerChainBuilder. To exact BetaConfigQueryHandler-beta ,TagConfigQueryHandler-tag,FormalConfigQueryHandler-formal .

ConfigQueryHandlerChainBuilder builder with Handler of ordered name [ beta,tag,formal], if any handler matches this request,handler the request and return , delivery to next handler if not match.

ConfigQueryHandlerChainBuilder may design as a SPI interface ,for extensibility

shiyiyue1102 avatar Jan 15 '24 10:01 shiyiyue1102

I wanna take it over, please assign to me, thx.

Bo-Qiu avatar Jan 16 '24 02:01 Bo-Qiu