You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by gi...@apache.org on 2024/08/27 03:31:48 UTC
(dubbo-website) branch history/next-staging updated: deploy: 012e80ddf674a882a65162c1d4badf8ab1db1603
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch history/next-staging
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/history/next-staging by this push:
new 4acc6bb0289 deploy: 012e80ddf674a882a65162c1d4badf8ab1db1603
4acc6bb0289 is described below
commit 4acc6bb02897aedb1ff0f08096cd8996823fb0d2
Author: AlbumenJ <Al...@users.noreply.github.com>
AuthorDate: Tue Aug 27 03:31:43 2024 +0000
deploy: 012e80ddf674a882a65162c1d4badf8ab1db1603
---
sitemap.xml | 2 +-
.../index.html" | 2 +-
.../reference-manual/config/spring/spring-boot/index.html | 6 +++---
.../version/3.2-to-3.3-compatibility-guide/index.html | 8 ++++----
zh-cn/sitemap.xml | 2 +-
5 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/sitemap.xml b/sitemap.xml
index f47525066f8..7c01729b85d 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://dubbo.apache.org/zh-cn/sitemap.xml</loc><lastmod>2024-08-27T11:16:01+08:00</lastmod></sitemap><sitemap><loc>https://dubbo.apache.org/en/sitemap.xml</loc><lastmod>2024-08-26T09:57:38+08:00</lastmod></sitemap></sitemapindex>
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://dubbo.apache.org/zh-cn/sitemap.xml</loc><lastmod>2024-08-27T11:26:41+08:00</lastmod></sitemap><sitemap><loc>https://dubbo.apache.org/en/sitemap.xml</loc><lastmod>2024-08-26T09:57:38+08:00</lastmod></sitemap></sitemapindex>
\ No newline at end of file
diff --git "a/zh-cn/blog/2021/01/11/dubbo-go-\344\270\255\347\232\204-tps-limit-\350\256\276\350\256\241\344\270\216\345\256\236\347\216\260/index.html" "b/zh-cn/blog/2021/01/11/dubbo-go-\344\270\255\347\232\204-tps-limit-\350\256\276\350\256\241\344\270\216\345\256\236\347\216\260/index.html"
index e51a04a3820..14e0beba4ef 100644
--- "a/zh-cn/blog/2021/01/11/dubbo-go-\344\270\255\347\232\204-tps-limit-\350\256\276\350\256\241\344\270\216\345\256\236\347\216\260/index.html"
+++ "b/zh-cn/blog/2021/01/11/dubbo-go-\344\270\255\347\232\204-tps-limit-\350\256\276\350\256\241\344\270\216\345\256\236\347\216\260/index.html"
@@ -242,7 +242,7 @@
</span></span><span style=display:flex><span>}
</span></span></code></pre></div><p>这里有一个很有意思的地方。就是这个实现,是一个几乎线程安全但是其实并不是线程安全的实现。</p><p>在所有的实现里面,它是最为简单,而且性能最高的。我在衡量了一番之后,还是没把它做成线程安全的。事实上,Java版本的也不是线程安全的。</p><p>它只会在多个线程通过第67行的检测之后,才会出现并发问题,这个时候就不是线程安全了。但是在最后的<code>return</code>语句中,那一整个是线程安全的。它因为不断计数往上加,所以多个线程同时跑到这里,其实不会有什么问题。</p><p>现在我要揭露一个最为奇诡的特性了:<strong>并发越高,那么这个<code>raise condition</code>就越严重,也就是说越不安全。</strong></p><p>但是从实际使用角度而言,有极端TPS的还是比较少的。对于那些TPS只有几百每秒的,是没什么问题的。</
p><p><strong>为了保持和dubbo一致的特性,我把它作为默认的实现。</strong></p><p>此外,我还为它搞了 [...]
</span></span></span><span style=display:flex><span><span style=color:#586e75>// It is thread-safe.
-</span></span></span><span style=display:flex><span><span style=color:#586e75></span><span style=color:#268bd2>func</span> (impl *SlidingWindowTpsLimitStrategyImpl) <span style=color:#268bd2>IsAllowable</span>() <span style=color:#dc322f>bool</span> {
+</span></span></span><span style=display:flex><span><span style=color:#586e75></span><span style=color:#268bd2>func</span> (impl <span style=color:#719e07>*</span>SlidingWindowTpsLimitStrategyImpl) <span style=color:#268bd2>IsAllowable</span>() <span style=color:#dc322f>bool</span> {
</span></span><span style=display:flex><span> impl.mutex.<span style=color:#268bd2>Lock</span>()
</span></span><span style=display:flex><span> <span style=color:#719e07>defer</span> impl.mutex.<span style=color:#268bd2>Unlock</span>()
</span></span><span style=display:flex><span> <span style=color:#586e75>// quick path
diff --git a/zh-cn/overview/mannual/java-sdk/reference-manual/config/spring/spring-boot/index.html b/zh-cn/overview/mannual/java-sdk/reference-manual/config/spring/spring-boot/index.html
index fde8c50c4eb..a8b1639f519 100644
--- a/zh-cn/overview/mannual/java-sdk/reference-manual/config/spring/spring-boot/index.html
+++ b/zh-cn/overview/mannual/java-sdk/reference-manual/config/spring/spring-boot/index.html
@@ -1,5 +1,5 @@
<!doctype html><html lang=zh-cn class=no-js><head><meta name=ROBOTS content="INDEX, FOLLOW"><link rel=canonical href=https://dubbo.apache.org/zh-cn/overview/mannual/java-sdk/reference-manual/config/spring/spring-boot/><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=generator content="Hugo 0.121.2"><link rel="shortcut icon" type=image/png href=/imgs/favicon.png><link rel=apple-touch-icon href=/favicons/apple-touch-icon-180x1 [...]
-<meta property="og:description" content="以 Annotation、Spring Boot 开发 Dubbo 应用"><meta property="og:type" content="article"><meta property="og:url" content="https://dubbo.apache.org/zh-cn/overview/mannual/java-sdk/reference-manual/config/spring/spring-boot/"><meta property="article:section" content="overview"><meta property="article:modified_time" content="2024-08-14T11:28:00+08:00"><meta itemprop=name content="Spring Boot"><meta itemprop=description content="以 Annotation、Spring Boot 开发 Du [...]
+<meta property="og:description" content="以 Annotation、Spring Boot 开发 Dubbo 应用"><meta property="og:type" content="article"><meta property="og:url" content="https://dubbo.apache.org/zh-cn/overview/mannual/java-sdk/reference-manual/config/spring/spring-boot/"><meta property="article:section" content="overview"><meta property="article:modified_time" content="2024-08-27T11:26:41+08:00"><meta itemprop=name content="Spring Boot"><meta itemprop=description content="以 Annotation、Spring Boot 开发 Du [...]
<a class=dropdown-item href=/en/download>Admin</a>
<a class=dropdown-item href=/option-3>System</a>
<a class=dropdown-item href=/option-3>Benchmark</a>
@@ -619,8 +619,8 @@
</span></span><span style=display:flex><span> <span style=color:#268bd2>port</span>: <span style=color:#2aa198>50052</span>
</span></span><span style=display:flex><span> <span style=color:#268bd2>registry</span>:
</span></span><span style=display:flex><span> <span style=color:#268bd2>address</span>: nacos://${nacos.address:127.0.0.1}:8848?username=nacos&password=nacos
-</span></span></code></pre></div><h3 id=dubbo>dubbo</h3><ul><li><a href=../../properties#dubboapplication><strong>dubbo.application</strong> - <code>org.apache.dubbo.config.ApplicationConfig</code></a></li><li><a href=../../properties#dubboconfig-center><strong>dubbo.config-center</strong> - <code>org.apache.dubbo.config.ConfigCenterConfig</code></a></li><li><a href=../../properties#dubboconsumer><strong>dubbo.consumer</strong> - <code>org.apache.dubbo.config.ConsumerConfig</code></a></l [...]
-<button class="btn btn-primary mb-4 feedback--no">否</button></div><script>const yes=document.querySelector(".feedback--yes"),no=document.querySelector(".feedback--no");document.querySelectorAll(".feedback--link").forEach(e=>{e.href=e.href+window.location.pathname});const sendFeedback=e=>{gtag||console.log("!gtag"),gtag("event","click",{event_category:"Helpful",event_label:window.location.pathname,value:e})},disableButtons=()=>{yes.disabled=!0,yes.classList.add("feedback--button__disabled [...]
+</span></span></code></pre></div><h3 id=dubbo>dubbo</h3><ul><li><a href=../../properties#dubboapplication><strong>dubbo.application</strong> - <code>org.apache.dubbo.config.ApplicationConfig</code></a></li><li><a href=../../properties#dubboconfig-center><strong>dubbo.config-center</strong> - <code>org.apache.dubbo.config.ConfigCenterConfig</code></a></li><li><a href=../../properties#dubboconsumer><strong>dubbo.consumer</strong> - <code>org.apache.dubbo.config.ConsumerConfig</code></a></l [...]
+<button class="btn btn-primary mb-4 feedback--no">否</button></div><script>const yes=document.querySelector(".feedback--yes"),no=document.querySelector(".feedback--no");document.querySelectorAll(".feedback--link").forEach(e=>{e.href=e.href+window.location.pathname});const sendFeedback=e=>{gtag||console.log("!gtag"),gtag("event","click",{event_category:"Helpful",event_label:window.location.pathname,value:e})},disableButtons=()=>{yes.disabled=!0,yes.classList.add("feedback--button__disabled [...]
<a href="https://github.com/apache/dubbo-website/new/master/content/zh-cn/overview/mannual/java-sdk/reference-manual/config/spring/spring-boot.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started. [...]
<a href="https://github.com/apache/dubbo-website/issues/new?title=Spring%20Boot" target=_blank><i class="fab fa-github fa-fw"></i> 登记问题</a>
<a href=https://github.com/apache/dubbo/issues/new target=_blank><i class="fas fa-tasks fa-fw"></i> 提交项目问题</a></div><nav id=TableOfContents><ul><li><a href=#applicationyaml>application.yaml</a><ul><li><a href=#配置示例>配置示例</a></li><li><a href=#dubbo>dubbo</a></li><li><a href=#dubbometrics>dubbo.metrics</a></li><li><a href=#dubbotracing>dubbo.tracing</a></li></ul></li><li><a href=#starter列表>starter列表</a><ul><li><a href=#dubbo-spring-boot-starter>dubbo-spring-boot-starter</a></li><li><a href= [...]
\ No newline at end of file
diff --git a/zh-cn/overview/mannual/java-sdk/reference-manual/upgrades-and-compatibility/version/3.2-to-3.3-compatibility-guide/index.html b/zh-cn/overview/mannual/java-sdk/reference-manual/upgrades-and-compatibility/version/3.2-to-3.3-compatibility-guide/index.html
index 05334525b52..e58654b6c2b 100644
--- a/zh-cn/overview/mannual/java-sdk/reference-manual/upgrades-and-compatibility/version/3.2-to-3.3-compatibility-guide/index.html
+++ b/zh-cn/overview/mannual/java-sdk/reference-manual/upgrades-and-compatibility/version/3.2-to-3.3-compatibility-guide/index.html
@@ -1,5 +1,5 @@
<!doctype html><html lang=zh-cn class=no-js><head><meta name=ROBOTS content="INDEX, FOLLOW"><link rel=canonical href=https://dubbo.apache.org/zh-cn/overview/mannual/java-sdk/reference-manual/upgrades-and-compatibility/version/3.2-to-3.3-compatibility-guide/><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=generator content="Hugo 0.121.2"><link rel="shortcut icon" type=image/png href=/imgs/favicon.png><link rel=apple-touch-ic [...]
-<meta property="og:description" content="Dubbo 3.3 升级与兼容性指南"><meta property="og:type" content="article"><meta property="og:url" content="https://dubbo.apache.org/zh-cn/overview/mannual/java-sdk/reference-manual/upgrades-and-compatibility/version/3.2-to-3.3-compatibility-guide/"><meta property="article:section" content="overview"><meta property="article:modified_time" content="2024-08-27T11:16:01+08:00"><meta itemprop=name content="3.2 升级至 3.3"><meta itemprop=description content="Dubbo 3. [...]
+<meta property="og:description" content="Dubbo 3.3 升级与兼容性指南"><meta property="og:type" content="article"><meta property="og:url" content="https://dubbo.apache.org/zh-cn/overview/mannual/java-sdk/reference-manual/upgrades-and-compatibility/version/3.2-to-3.3-compatibility-guide/"><meta property="article:section" content="overview"><meta property="article:modified_time" content="2024-08-27T11:26:41+08:00"><meta itemprop=name content="3.2 升级至 3.3"><meta itemprop=description content="Dubbo 3. [...]
<a class=dropdown-item href=/en/download>Admin</a>
<a class=dropdown-item href=/option-3>System</a>
<a class=dropdown-item href=/option-3>Benchmark</a>
@@ -622,7 +622,7 @@
</span></span><span style=display:flex><span><span style=color:#268bd2></dependency></span>
</span></span></code></pre></div><h1 id=兼容性-checklist>兼容性 CheckList</h1><h2 id=1-默认序列化切换>1. 默认序列化切换</h2><p>Dubbo 3.3.0 版本开始默认序列化方式从 <code>fastjson2</code> 切换为 <code>hessian2</code>,对于升级到 3.3.0 的应用,Dubbo 会自动尝试采用 <code>hessian2</code> 进行序列化。</p><h3 id=q1为什么要切换默认序列化方式>Q1:为什么要切换默认序列化方式?</h3><p><code>hessian2</code> 为 Dubbo 3.1.x 及以下版本中默认的序列化,长期的生产验证了其稳定性和兼容性,在评估了向前兼容性和长期可维护性后,Dubbo 团队决定将 <code>hessian-lite</code> 升级到最新 <code>hessian4</code> 主干版本,以支持 JDK17 和 JDK21。</p><p>升级到 Dubbo 3.3.0 以后,依赖 [...]
对于需要进行优雅上线的机器,配置 <code>-Ddubbo.application.manual-register=true</code> JVM 参数</p><p>完善启动脚本:
-对于需要进行优雅上线的机器,启动脚本中在启动结束后,主动调用 QoS 命令 <code>curl http://127.0.0.1:22222/online</code> 进行注册</p><p>考虑因素:</p><ol><li>全局一套代码,无论是线上环境、测试环境均对需要优雅上线的服务进行配置 <code>delay=-1</code></li><li>仅对线上环境进行 <code>-Ddubbo.application.manual-register=true</code> 配置,测试环境不配置,保证测试环境的服务能够自动注册</li></ol><hr><h2 id=3-nacos-兼容订阅默认关闭>3. Nacos 兼容订阅默认关闭</h2><p>从 Dubbo 3.3.x 版本开始,将不再订阅 Dubbo 2.7.3 及以前版本的兼容服务名,如果仍需要订阅,请配置 <code>-Dnacos.subscribe.legacy-name=true</code>。</p><h3 id=q1-为什么要做这个调整-1>Q1: 为什么要做这个调整?</h3><p>在 Du [...]
+对于需要进行优雅上线的机器,启动脚本中在启动结束后,主动调用 QoS 命令 <code>curl http://127.0.0.1:22222/online</code> 进行注册</p><p>考虑因素:</p><ol><li>全局一套代码,无论是线上环境、测试环境均对需要优雅上线的服务进行配置 <code>delay=-1</code></li><li>仅对线上环境进行 <code>-Ddubbo.application.manual-register=true</code> 配置,测试环境不配置,保证测试环境的服务能够自动注册</li></ol><hr><h2 id=3-nacos-兼容订阅默认关闭>3. Nacos 兼容订阅默认关闭</h2><p>从 Dubbo 3.3.x 版本开始,将不再订阅 Dubbo 2.7.3 及以前版本的兼容服务名,如果仍需要订阅,请配置 <code>-Dnacos.subscribe.legacy-name=true</code>。</p><h3 id=q1-为什么要做这个调整-1>Q1: 为什么要做这个调整?</h3><p>在 Du [...]
</span></span><span style=display:flex><span><span style=color:#268bd2><plugin></span>
</span></span><span style=display:flex><span> <span style=color:#268bd2><groupId></span>org.apache.dubbo<span style=color:#268bd2></groupId></span>
</span></span><span style=display:flex><span> <span style=color:#268bd2><artifactId></span>dubbo-maven-plugin<span style=color:#268bd2></artifactId></span>
@@ -745,7 +745,7 @@
</span></span><span style=display:flex><span> <span style=color:#268bd2><artifactId></span>protobuf-java-util<span style=color:#268bd2></artifactId></span>
</span></span><span style=display:flex><span> <span style=color:#268bd2></dependency></span>
</span></span></code></pre></div><p>注:Dubbo 从 3.3.x 开始不再依赖 <code>com.alibaba.spring:spring-context-support</code> 实现自身能力,如果需要请自行引入。</p><div id=pre-footer><h2>反馈</h2><p class=feedback--prompt>此页是否对您有帮助?</p><button class="btn btn-primary mb-4 feedback--yes">是</button>
-<button class="btn btn-primary mb-4 feedback--no">否</button></div><script>const yes=document.querySelector(".feedback--yes"),no=document.querySelector(".feedback--no");document.querySelectorAll(".feedback--link").forEach(e=>{e.href=e.href+window.location.pathname});const sendFeedback=e=>{gtag||console.log("!gtag"),gtag("event","click",{event_category:"Helpful",event_label:window.location.pathname,value:e})},disableButtons=()=>{yes.disabled=!0,yes.classList.add("feedback--button__disabled [...]
+<button class="btn btn-primary mb-4 feedback--no">否</button></div><script>const yes=document.querySelector(".feedback--yes"),no=document.querySelector(".feedback--no");document.querySelectorAll(".feedback--link").forEach(e=>{e.href=e.href+window.location.pathname});const sendFeedback=e=>{gtag||console.log("!gtag"),gtag("event","click",{event_category:"Helpful",event_label:window.location.pathname,value:e})},disableButtons=()=>{yes.disabled=!0,yes.classList.add("feedback--button__disabled [...]
<a href="https://github.com/apache/dubbo-website/new/master/content/zh-cn/overview/mannual/java-sdk/reference-manual/upgrades-and-compatibility/version/3.2-to-3.3-compatibility-guide.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending [...]
<a href="https://github.com/apache/dubbo-website/issues/new?title=3.2%20%e5%8d%87%e7%ba%a7%e8%87%b3%203.3" target=_blank><i class="fab fa-github fa-fw"></i> 登记问题</a>
-<a href=https://github.com/apache/dubbo/issues/new target=_blank><i class="fas fa-tasks fa-fw"></i> 提交项目问题</a></div><nav id=TableOfContents><ul><li><a href=#1-默认序列化切换>1. 默认序列化切换</a><ul><li><a href=#q1为什么要切换默认序列化方式>Q1:为什么要切换默认序列化方式?</a></li><li><a href=#q2会不会影响和低版本的-dubbo-互通>Q2:会不会影响和低版本的 Dubbo 互通?</a></li><li><a href=#q3升级序列化最佳实践是什么>Q3:升级序列化最佳实践是什么?</a></li><li><a href=#q4如果我仍想使用-fastjson2怎么办>Q4:如果我仍想使用 <code>fastjson2</code>,怎么办?</a></li></ul></li><li><a href=#2-使用-registerfalse-不注册时将无法 [...]
\ No newline at end of file
+<a href=https://github.com/apache/dubbo/issues/new target=_blank><i class="fas fa-tasks fa-fw"></i> 提交项目问题</a></div><nav id=TableOfContents><ul><li><a href=#1-默认序列化切换>1. 默认序列化切换</a><ul><li><a href=#q1为什么要切换默认序列化方式>Q1:为什么要切换默认序列化方式?</a></li><li><a href=#q2会不会影响和低版本的-dubbo-互通>Q2:会不会影响和低版本的 Dubbo 互通?</a></li><li><a href=#q3升级序列化最佳实践是什么>Q3:升级序列化最佳实践是什么?</a></li><li><a href=#q4如果我仍想使用-fastjson2怎么办>Q4:如果我仍想使用 <code>fastjson2</code>,怎么办?</a></li></ul></li><li><a href=#2-使用-registerfalse-不注册时将无法 [...]
\ No newline at end of file
diff --git a/zh-cn/sitemap.xml b/zh-cn/sitemap.xml
index 32a5a0173b8..9e06190ae85 100644
--- a/zh-cn/sitemap.xml
+++ b/zh-cn/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://dubbo.apache.org/zh-cn/blog/2023/01/16/%E9%98%BF%E9%87%8C%E5%B7%B4%E5%B7%B4%E5%8D%87%E7%BA%A7-dubbo3-%E5%85%A8%E9%9D%A2%E5%8F%96%E4%BB%A3-hsf2/</loc><lastmod>2023-11-28T15:14:12+08:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority></url><url><loc>https://dubbo.apache.org/zh-cn/overview/mannual/jav [...]
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://dubbo.apache.org/zh-cn/blog/2023/01/16/%E9%98%BF%E9%87%8C%E5%B7%B4%E5%B7%B4%E5%8D%87%E7%BA%A7-dubbo3-%E5%85%A8%E9%9D%A2%E5%8F%96%E4%BB%A3-hsf2/</loc><lastmod>2023-11-28T15:14:12+08:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority></url><url><loc>https://dubbo.apache.org/zh-cn/overview/mannual/jav [...]
\ No newline at end of file