1.学习背景
随着互联网的发展,越来越多的企业每天处理着上亿级的请求,以及每秒几万的并发操作,对于传统的 JavaWeb 工程师是一个巨大的挑战。然而越来越复杂的业务以及数据库设计使得代码变得非常庞大,严重影响了程序的高效。使用分布式服务框架渐渐成为每个互联网企业的标配,掌握分布式服务框架显得更加重要。
2. 什么是Dubbo?
Dubbo是一个常用优秀的分布式服务框架,致力于提供高性能和透明化的RPC远程服务调用方案,以及SOA服务治理方案。
学习Dubbo有助于提高企业级应用的开发效率,简单配置实现负载均衡,提高服务效率。
3. Dubbo 的应用场景
Dubbo 涉及的知识
4. Dubbo框架设计调用总图
Tips: 上图中左边是消费者,右边是生产者
4.1 Dubbo各个角色
Dubbo 在设计时候抽象出四个角色
- Consumer----------服务的消费者
- Provider------------服务的提供者
- Registry------------服务的注册中心
- Monitor-------------服务的监控中心
Dubbo的PRC过程
Dubbo 的服务注册
Dubbo的服务调用