当前位置:网站首页>什么是微服务
什么是微服务
2022-06-25 22:13:00 【秃头侠客】
分布式与微服务
我们经常说的分布式与微服务有什么关系?
微服务是一种良好设计的分布式架构方案。
单体架构

特点:所有功能都集成在一个项目中开发,代码冗余高,不利于后期迭代及其维护。
优点:架构简单,成本低
缺点:代码冗余高,不利于后期迭代及其维护。
分布式架构

特点:将项目差分为一个个模块(服务),各个模块之间独立开发
优点:模块之间耦合低,易于维护拓展
缺点:服务之间调用关系复杂。
思考:
- 服务拆分的粒度如何界定?
- 各个服务之间如何调用?
服务远程调用,通过Dubbo或http协议交互,底层使用netty。
微服务
微服务特征
- 单一职责:微服务拆分粒度更小,每一个服务都对应唯一的业务能力,做到单一职责
- 自治:团队独立、技术独立、数据独立,独立部署和交付
- 面向服务:服务提供统一标准的接口,与语言和技术无关
- 隔离性强:服务调用做好隔离、容错、降级,避免出现级联问题
微服务问题
网关:请求的认证,及其负载均衡等
服务集群:调高服务效率及其容错性
注册中心:对服务进行管理
配置中心:对服务配置作统一管理
消息队列:提高异步
分布式缓存:提高系统效率
分布式搜索:提高数据查找效率
分布式日志服务:保存日志
系统监控链路追踪

参考SpringCloud+RabbitMQ+Docker+Redis+搜索+分布式,史上最全面的springclound微服务技术栈
边栏推荐
- 利用VBScript连接mysql数据库_过路老熊_新浪博客
- Explain in detail the three types of local variables, global variables and static variables
- 详解synchronize关键字
- Implement const in Es5
- 安装PSU的时候/usr/bin/ld:warning: -z lazyload ignore
- P3052 [USACO12MAR]Cows in a Skyscraper G
- Topic36——53. 最大子数组和
- Literature research (I): hourly energy consumption prediction of office buildings based on integrated learning and energy consumption pattern classification
- Smt贴片机保养与维护要点
- Studio5k V28 installation and cracking_ Old bear passing by_ Sina blog
猜你喜欢

Reading notes on how to connect the network - hubs, routers and routers (III)

文献调研(一):基于集成学习和能耗模式分类的办公楼小时能耗预测

正则表达式介绍及一些语法

Literature research (I): hourly energy consumption prediction of office buildings based on integrated learning and energy consumption pattern classification

10.2.3、Kylin_kylin的使用,维度必选

社交网络可视化第三方库igraph的安装
![Find the minimum value of flipped array [Abstract bisection]](/img/b9/1e0c6196e6dc51ae2c48f6c5e83289.png)
Find the minimum value of flipped array [Abstract bisection]

Final and static

10.4.1、数据中台

文献调研(四):基于case-based reasoning、ANN、PCA的建筑小时用电量预测
随机推荐
14.1.1 promethues monitoring, four data types metrics, pushgateway
Shredding Company poj 1416
Detailed explanation of redis
SMT贴片加工pcba立碑现象的原因和解决方法
文献调研(一):基于集成学习和能耗模式分类的办公楼小时能耗预测
10.4.1、数据中台
Redis cluster
How postman tests interfaces that require login
在step7中实现模拟量数值与工程量数值之间的转换_过路老熊_新浪博客
IDEA常用快捷键
Lazy people teach you to use kiwi fruit to lose 16 kg in a month_ Old bear passing by_ Sina blog
Rocket message storage
Unsigned and signed vernacular
ssh的复习
10.2.3、Kylin_kylin的使用,维度必选
用frp搭建云电脑
step7和wincc联合仿真_过路老熊_新浪博客
Circuit de fabrication manuelle d'un port série de niveau USB à TTL pour PL - 2303hx Old bear passing Sina blog
文献调研(四):基于case-based reasoning、ANN、PCA的建筑小时用电量预测
网络连接验证