当前位置:网站首页>微服务--开篇
微服务--开篇
2022-07-04 21:53:00 【喵叔哟】
从这篇文章开始我们就进入到了微服务的世界,在后续的几篇文章中我们将学习一些微服务组件的原理,以此来达到理解微服务架构的本质。
一、案例
有一个大型商城系统,由不同开发语言设计的100多个服务组成,大部分服务之间存在调用关系,如果要将这些服务的部署改为微服务部署,几乎很难使用统一的微服务框架实现。因此使用了Nginx对这些服务进行管理,先通过本地配置文件获取要调用服务的地址,再通过代码将地址组装成URL,之后服务间的调用都通过Nginx代理。
二、传统架构的问题
案例中所说的架构方式是传统的架构方式,它存在四方面的问题。
2.1 配置繁琐,上线易出错
系统每次部署、增加服务、增减机器时都需要手工配置Nginx,并且每个环境都不一样,因此在配置时很容易出错,因此在服务器变动或网络改变时都需要把每个配置梳理一次,然后进行多次的测尺才能基本保证没什么问题,但是如果没有进行详细的检查或者某些负载均衡节点出错了就很难发现。
2.2 增加机器要重启
当系统的访问量增大时,我们需要对某些服务增加服务器,但是因为需要手动配置Nginx,因此稍不留意一同就会出错,并且系统一旦出错就要重新Nginx,如果重启失败就会产生很大的影响。所以要在短时间内加服务器并保证配置准确无误,是一个很难的过程。
2.3 单点负载均衡
所有的系统都要经过Nginx代理,因此Nginx很容易成为整个系统的瓶颈,如果Nginx配置出了问题,那么所有服务都将不可用。这时一定有小伙伴说让每个服务都拥有自己的Nginx
边栏推荐
- Solve the problem of data disorder caused by slow asynchronous interface
- Go language loop statement (3 in Lesson 10)
- sqlserver对数据进行加密、解密
- i.MX6ULL驱动开发 | 24 - 基于platform平台驱动模型点亮LED
- i. Mx6ull driver development | 24 - platform based driver model lights LED
- 时空预测3-graph transformer
- 并发网络模块化 读书笔记转
- MySQL存储数据加密
- Common shortcut keys for hbuilder x
- Force buckle 3_ 383. Ransom letter
猜你喜欢

Redis has three methods for checking big keys, which are necessary for optimization

close系统调用分析-性能优化

Locust性能测试 —— 环境搭建及使用

i. Mx6ull driver development | 24 - platform based driver model lights LED

做BI开发,为什么一定要熟悉行业和企业业务?

el-tree结合el-table,树形添加修改操作

El tree combined with El table, tree adding and modifying operations

A large number of virtual anchors in station B were collectively forced to refund: revenue evaporated, but they still owe station B; Jobs was posthumously awarded the U.S. presidential medal of freedo

VS2019 C# release下断点调试
【米哈游2023届秋招】开启【校招唯一专属内推码EYTUC】
随机推荐
MongoDB中的索引操作总结
智洋创新与华为签署合作协议,共同推进昇腾AI产业持续发展
Tiktok actual combat ~ the number of comments is updated synchronously
WebGIS框架---kalrry
GTEST from ignorance to skillful use (1) GTEST installation
Deveco device tool 3.0 release brings five capability upgrades to make intelligent device development more efficient
GTEST from ignorance to proficient use (2) what is test fixture
迷失在Mysql的锁世界
【Acwing】第58场周赛 题解
el-tree结合el-table,树形添加修改操作
常用的开源无代码测试工具
力扣98:验证二叉搜索树
我在linux里面 通过调用odspcmd 查询数据库信息 怎么静默输出 就是只输出值 不要这个
Radio and television Wuzhou signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry
好用app推荐:扫描二维码、扫描条形码并查看历史
时空预测3-graph transformer
How is the entered query SQL statement executed?
Telephone encryption, middle 4 is replaced by * * * *
Scala下载和配置
从RepVgg到MobileOne,含mobileone的代码