原文:1.Sentinel源碼分析—FlowRuleManager加載規則做了什么?

最近我很好奇在RPC中限流熔斷降級要怎么做,hystrix已經 年多沒有更新了,感覺要被遺棄的感覺,那么我就把眼光聚焦到了阿里的Sentinel,順便學習一下阿里的源代碼。 這一章我主要講的是FlowRuleManager在加載FlowRule的時候做了什么,下一篇正式講Sentinel如何控制並發數的。 下面我給出一個簡化版的demo,這個demo只能單線程訪問,先把過程講清楚再講多線程版本。 ...

2019-08-31 18:18 0 1092 推薦指數:

查看詳情

6.Sentinel源碼分析Sentinel是如何動態加載配置限流的?

Sentinel源碼解析系列: 1.Sentinel源碼分析FlowRuleManager加載規則做了什么? 2. Sentinel源碼分析Sentinel是如何進行流量統計的? 3. Sentinel源碼分析— QPS流量控制是如何實現的? 4.Sentinel源碼分析 ...

Mon Sep 23 06:39:00 CST 2019 0 613
Vue源碼分析(一) : new Vue() 做了什么

Vue源碼分析(一) : new Vue() 做了什么 author: @TiffanysBear 在了解new Vue做了什么之前,我們先對Vue源碼做一些基礎的了解,如果你已經對基礎的源碼目錄設計等有基礎的了解的話,可以跳過下面這部分。 源碼目錄設計 Vue.js 的源碼都在 ...

Fri Jul 19 05:16:00 CST 2019 0 570
4.Sentinel源碼分析Sentinel是如何做到降級的?

各位中秋節快樂啊,我覺得在這個月圓之夜有必要寫一篇源碼解析,以表示我內心的高興~ Sentinel源碼解析系列: 1.Sentinel源碼分析FlowRuleManager加載規則做了什么? 2. Sentinel源碼分析Sentinel是如何進行流量統計的? 3. Sentinel ...

Sat Sep 14 07:02:00 CST 2019 0 907
5.Sentinel源碼分析Sentinel如何實現自適應限流?

Sentinel源碼解析系列: 1.Sentinel源碼分析FlowRuleManager加載規則做了什么? 2. Sentinel源碼分析Sentinel是如何進行流量統計的? 3. Sentinel源碼分析— QPS流量控制是如何實現的? 4.Sentinel源碼分析 ...

Wed Sep 18 07:14:00 CST 2019 1 889
7.Sentinel源碼分析Sentinel是怎么和控制台通信的?

這里會介紹: Sentinel會使用多線程的方式實現一個類Reactor的IO模型 Sentinel會使用心跳檢測來觀察控制台是否正常 Sentinel源碼解析系列: 1.Sentinel源碼分析FlowRuleManager加載規則做了什么? 2. Sentinel源碼 ...

Sat Sep 28 08:18:00 CST 2019 0 644
RateLimiter 源碼分析(Guava 和 Sentinel 實現)

作者javadoop,資深Java工程師。本文已獲作者授權發布。 原文鏈接https://www.javadoop.com/post/rate-limiter 本文主要介紹關於流控的兩部分內容。 第一部分介紹 Guava 中 RateLimiter 的源碼,包括它的兩種模式,目前網上 ...

Sun Aug 25 18:28:00 CST 2019 0 527
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM