当前位置:网站首页>0627~放假知识总结
0627~放假知识总结
2022-07-24 17:43:00 【生活可真难啊】
这几天学习了springcloud的许多组件,组件作用要记清楚;
1.eureka(服务注册与发现):用来管理微服务之间的ip地址清单;
2.ribbon(负载均衡器):解决了微服务之间客户端集群,传输地址的硬编码问题;
缺点:解决不了参数拼接的繁琐冗余;
3.feign(负载均衡器):底层已经集成了ribbon与hystrix,既解决了微服务之间的通讯问题,又解决了参 数拼接的冗余,繁琐;还可以使用hystrix的熔断,写托底数据;
4.hystrix(熔断器):解决了微服务之间的雪崩问题,如果一个微服务出现错误,会导致整个微服务瘫痪;所以有了hystrix之后,如果一个微服务出现错误,会启动托底数据返回,不会抛出错误信息;
5.zuul(网关):所有的微服务之间登录或请求都要做校验,这样会有很多重复的代码与操作,所以zuul这时候就出来了,所有的请求都要通过zuul,再发送给客户端,只用做一次校验就行,zuul核心作用主要为校验,熔断,过滤;
6.config(配置中心):把所有配置文件集中管理;这样每次修改配置文件的时候就不用重新打jar包了;
直接把配置文件写在gitee上,实现在线配置管理;缺点:每次修改过后都要重启端 口,会很麻烦,不优雅;
7.bus(消息总线):优雅的解决了config的缺点;可以实现在线配置管理,并且不重启端口;
今天还看了许多面试题;
1.hashmap的底层原理?
2.hashmap线程是安全的吗?
3.你对spring的理解?
4.springboot的启动原理是怎样的?
5.多线程的创建方式有哪些?
6.什么情况下会使用多线程?
7.微服务有哪些优势?
边栏推荐
- 邻接表的定义和存储以及有向图无向图的邻接存储
- MySQL数据库的一个问题
- Getaverse,走向Web3的远方桥梁
- Analog electricity - what is the resistance?
- Scept: consistent and strategy based trajectory prediction for planned scenarios
- Fast power writing
- 阿里巴巴/166获得店铺的所有商品 API使用说明
- Codeforces Round #794 (Div. 2)(A.B.C)
- TCP protocol debugging tool tcpengine v1.3.0 tutorial
- Image information is displayed by browser: data:image/png; Base64, + image content
猜你喜欢

实习报告1——人脸三维重建方法

700. Search DFS method in binary search tree

Heuristic merging (including examples of general formula and tree heuristic merging)

Getaverse,走向Web3的远方桥梁

Step by step introduction to the development framework based on sqlsugar (12) -- split the content of the page module into components to realize the division and rule processing

C language to achieve a static version of the address book

使用matplotlib模拟线性回归
Link editing tips of solo blog posts illegal links

生信常用分析图形绘制02 -- 解锁火山图真谛!

Common questions of testers during interview
随机推荐
数论整除分块讲解 例题:2021陕西省赛C
How the computer accesses the Internet (IV) LAN and server response
Class bytecode file
Extension of ES6 function
2022 Asia International Internet of things exhibition
Six ways for JS to implement inheritance
阿里巴巴/166获得店铺的所有商品 API使用说明
Awk from entry to earth (17) awk multiline writing
In the morning, Tencent took out 38K, which let me see the ceiling of the foundation
Get the data of Tongcheng (elong) Hotel
Two dimensional convolution -- use of torch.nn.conv2d
近30所高校,获教育部点名表扬!
船新 IDEA 2022.2 正式发布,新特性真香!
ShardingSphere数据库读写分离
详解 Apache Hudi Schema Evolution(模式演进)
TCP协议调试工具TcpEngine V1.3.0使用教程
DHCP relay of HCNP Routing & Switching
wallys/IPQ8074A 4x4 2.4G 8x8 5G 802.11ax
C语言自定义类型讲解 — 结构体
获取1688app上原数据 API