You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/07/17 07:48:15 UTC

[GitHub] [dubbo-go] JiaLiangoooo commented on issue #1321: 为什么使用`func () cluster.LoadBalance` 作为入参?

JiaLiangoooo commented on issue #1321:
URL: https://github.com/apache/dubbo-go/issues/1321#issuecomment-881851163


   关于第一点因为如果用户使用的话是使用了存在类似于map之类的,在多线程内会不安全,我认为这个应该是写这个plugin应该考虑的事情,可以通过事例或者文档来说明,是否会更灵活呢? dubo-go是不是只需要面对的是一个filter,不管是struct、function.
   
   关于第二点如果只是添加一个参数metadata的话,多个参数怎么办? 这个事例里面只有一个比较方法,如果我需要再额外增加一个cache呢,cache能支持多种存储方式? 这种也能满足吗? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org