目錄
1. 什麼是Dubbo
Dubbo是一個分佈式服務框架,提供了分佈式系統下服務調用(RPC)和服務治理(服務發現、負載均衡、限流、熔斷、服務URL配置、服務監控等)的解決方案。
2. Dubbo四大基本組件
Registry(註冊中心):服務註冊與發現的註冊中心
Monitor(監控中心):統計服務的調用次數和調用時間的監控中心
Provider:暴露服務的服務提供方
Consumer:調用遠程服務的服務消費方
3. 基於SpringBoot的Dubbo使用示例
3.1. 添加dubbo-spring-boot-starter maven依賴
3.2. 創建2個SpringBoot項目,分別作爲服務提供者和消費者
3.3. application.yml中配置服務註冊和發現
(ps:詳細步驟見github主頁https://github.com/apache/dubbo-spring-boot-project中的Released version和Getting Started)
4. 官方文檔
http://dubbo.apache.org/zh-cn/docs/user/new-features-in-a-glance.html