当前位置:网站首页>快速上手,征服三种不同分布式架构调用方案
快速上手,征服三种不同分布式架构调用方案
2022-08-10 10:48:00 【华为云】
作者:知识浅谈,CSDN签约讲师,CSDN博客专家,华为云云享专家,阿里云星级博主
擅长领域:全栈工程师、爬虫、ACM算法
公众号:知识浅谈
联系方式vx:zsqtcc
三种不同分布式架构调用方案
用户访问nginx的时候,nginx通过复杂均衡器的轮询策略,访问到不同的服务器节点。
引入注册中心,使服务消费者和服务提供者注册到注册中心,消费者/提供者需要在注册中心中了解到对方的ip地址以及端口信息,之后通过http的方式进行通信。
地测试基于k8s+注册中心+EnvoyProxy这个方案来实现的。
除了服务提供者和服务消费者以外,还有Envoy,Envoy主要是通过封装信息进行通信,而不是让服务生产者和服务消费者直接通信。
横向对比
负载均衡器方案 | Spring Cloud方案 | lsto服务网格方案 | |
---|---|---|---|
支持自动扩容 | 不支持,需要运维介入 | 支持,服务注册发现 | 支持,服务注册发现 |
核心组件 | Nginx, HaProxy, F5 | Eureka,Nacos,Consul | k8s,Istio pilot-discovery,Envoy Proxy |
应用耦合程度 | 低 | 高 | 低 |
负载均衡粒度 | 独立进程 | 进程内 | 独立进程 |
通信效率(理论) | 取决于具体产品 | 高 | 一般 |
通信模式 | 都行,取决于负载均衡产品 | 默认RESTful,支持各种RPC(DUBBO) | 默认RPC(GRPC),扩展支持RESTFul |
老系统升级成本 | 轻松愉快 | 勉强能用 | 不自在 |
推荐场景 | 传统企业应用 | 企业应用转型,互联网应用产品 | 云原生与大规模云基础设施应用 |
以上是关于三种不同的分布式的架构使用情况,可以借鉴参考分析。
边栏推荐
- Hangdian Multi-School-Loop-(uncertainty greedy + line segment tree)
- Dry goods!ASSANet: Making PointNet++ faster and stronger
- bus事件总线 使用
- [C language] Header file #include
, conio is Console Input/Output (console input and output) - 【勇敢饭饭,不怕刷题之链表】链表倒数节点问题
- Pycharm终端出现PS问题、conda或activate不是内部命令问题..
- 阻塞 非阻塞 poll机制 异步
- GPU accelerated Pinterest recommendation model, the number of parameters increased by 100 times, and the user activity increased by 16%
- mysql5.7 installation and deployment - yum installation
- Regarding the missing json converter, the error message is: No converter found for return value of type
猜你喜欢
从产品角度看 L2 应用:为什么说这是一个游乐场?
AUTOCAD——减少样条曲线控制点数、CAD进阶练习(三)
中小规模网站架构
Automated Testing and Selenium
一文带你搞懂中断按键驱动程序之poll机制
"MySQL Advanced Chapter" 6. Principles of index creation and design
越折腾越好用的 3 款开源 APP
FastReport.Net 2022.2.17 Crack
ISO9001在讲什么?过程方法和风险思维
Get started quickly and conquer three different distributed architecture calling schemes
随机推荐
ECCV 2022 | 视频理解新框架X-CLIP:仅用微调的成本,达到预训练的全能
mysql5.7安装部署-yum安装
What is an abstract class
Three-phase 380V rectified voltage
POJ 2891 Strange Way to Express Integers (Extended Euclidean)
【勇敢饭饭,不怕刷题之链表】链表中有环的问题
自动化测试及Selenium
blocking non-blocking poll mechanism asynchronous
Redis(三)——配置文件详解、发布和订阅、新数据类型
使用cpolar远程连接群晖NAS(升级固定链接2)
三个绘图工具类详解Paint(画笔)Canvas(画布)Path(路径)
runtime-core.esm-bundler.js?d2dd:218 Uncaught TypeError: formRef.value?.validate is not a function
Text selection rounded style border-radius
YTU 2894: G--我要去内蒙古大草原
owl.carousel poster card Slider carousel switch
Redis6(一)——NoSQL数据库简介与Redis的安装
Redis (six) - transaction and lock mechanism of Redis6 (unfinished, to be supplemented)
「首席工程师」首席(Principal )工程师修炼之道
快速上手,征服三种不同分布式架构调用方案
"Chief Engineer" Principal (Principal) engineer's way of training