dubbogo 社区近期发布了 ​​https://github.com/apache/dubbo-go/releases/tag/v3.0.3-rc2​​。相关改进内容较多,本文只列出相关重大 feature、bugfix 、 性能提升项。

1. Proxyless模式下证书文件获取

在Proxy模式下,Istio颁发的证书可以通过sidecar进行获取和轮换。但在Proxyless模式下,需要主动去获取证书。本功能实现了在有无istio-agent的两种情况下,获取istio颁发的证书,交给dubbogo框架使用。相关pr为: ​​https://github.com/apache/dubbo-go/pull/1945​​, 由dubbogo社区的@ZLBer同学负责实现。

2. 配置文件支持占位符查找

使用dubbo-go需要创建dubbogo的配置文件,在当前版本中对配置文件的编写进行了增强,支持使用占位符来减少一些重复配置。使用方式如下:

What

相关pr

  • ​​https://github.com/apache/dubbo-go/pull/2014​​ 由社区的ZLBer 同学提交pr

3. 其他新 Features

  • 支持 Triple 协议的健康检查 API ​​https://github.com/apache/dubbo-go/pull/1935​​
  • 不基于注册中心的优雅下线支持滑动窗口维护请求 ​​https://github.com/apache/dubbo-go/pull/1973​​
  • 支持使用环境配置配置Nacos和 Polaris IP和Port ​​https://github.com/apache/dubbo-go/issues/2060​​

4. BUG 修复与优化

  • 修复rand.seed重复调用 ​​https://github.com/apache/dubbo-go/pull/1958​​
  • 修复并发创建监控指标问题 ​​https://github.com/apache/dubbo-go/pull/1961​​
  • 删除Polaris consumer ​​https://github.com/apache/dubbo-go/pull/1962​​
  • 修复打印限流日志的参数问题 ​​https://github.com/apache/dubbo-go/pull/1964​​
  • 修复getting attributes拼写错误 ​​https://github.com/apache/dubbo-go/pull/1968​​
  • 修复Polaris 订阅问题 ​​https://github.com/apache/dubbo-go/pull/1988​​
  • 修复多个invoker包含不同的方法时的调用问题 ​​https://github.com/apache/dubbo-go/pull/2000​​
  • 修复shutdown InternalSignal 的默认值 ​​https://github.com/apache/dubbo-go/pull/2003​​
  • 增加 mesh proxy开关 ​​https://github.com/apache/dubbo-go/pull/2022​​
  • 修复柔性服务引发的死锁问题 ​​https://github.com/apache/dubbo-go/pull/2022​​
  • 移除了Apollo配置中心 ​​https://github.com/apache/dubbo-go/pull/1932​​
  • 增强MetadataService中的ServiceDefinition ​​https://github.com/apache/dubbo-go/pull/1963​​
  • 升级Gost版本 ​​https://github.com/apache/dubbo-go/pull/1993​​
  • 升级Hessian2版本 ​​https://github.com/apache/dubbo-go/pull/1995​​
  • 添加Getty日志打印 ​​https://github.com/apache/dubbo-go/pull/2029​​
  • 对于侦听器事件notify使用notifyAll代替notify ​​https://github.com/apache/dubbo-go/pull/2043​​

5. hessinan2 go 最新 feature

除了dubbogo自身的改进外,dubbo-go-hessian2 项目截止目前最新版本 v1.11.3 ​​https://github.com/apache/dubbo-go-hessian2/releases/tag/v1.11.3​​

  • 升级其依赖的 gost,修复 bytes.AcquireBytes 导致的 memory leak,gost pr 为 ​​https://github.com/dubbogo/gost/pull/108​​  该改进有蚂蚁集团文徐【王文学】同学提交;
  • 修复 enum 解码过程中的错误 ​​https://github.com/apache/dubbo-go-hessian2/pull/332​​
  • 修复一个 Java list corner case 解析错误,相关 pr ​​https://github.com/apache/dubbo-go-hessian2/pull/330​​ ,由纵横文学网 沈超 同学提交

6. Other

如果你有任何疑问,欢迎钉钉扫码加入交流群【钉钉群号 23331795】

作者简介

张斌斌,github,dubbo-go 社区 committer,主要参与 dubbo-go Proxyless以及注册中心等功能建设与优化等工作。目专注于混沌工程、云原生和微服务等技术方向。