微服务学习

123 阅读3分钟

参考

官网:spring.io/projects/sp…

B站:www.bilibili.com/video/BV18E…

CSDN笔记:

blog.csdn.net/u011863024/…

blog.csdn.net/u011863024/…

blog.csdn.net/u011863024/…

版本选择

start.spring.io/actuator/in…

简介

花了大概半个多月的时间学习微服务,主要是看B站周阳老师的视频,一边看视频一边自己实践一边记笔记(视频评论区有“课代表”已经整理的不错了,参考中可查看)

可以看到下图IDEA项目已经非常臃肿了,所有的项目实操几乎都在这了,这就是我目前构建的最大、最复杂的项目了

图片转存失败,建议将图片保存下来直接上传

可以看到下图Typora笔记中已经记录了5w多字,所以不太适合整个作为几篇博客

字数太多啦

微服务学习的内容可以用下图概括

图片转存失败,建议将图片保存下来直接上传

上面提到的

服务注册中心除了Consul,都有实操记录,最后Seata配置一直出问题所以暂时放弃(因为视频中的版本是0.9,而我在整个构建中都使用与目前最新版本相接近的,所以在配置1.4.1出现了问题)

下载

我会将我的整个项目源码和笔记放在我的GitHubGitee仓库,另外还有一些必要的软件使用时资料都有记录,欢迎自取!

最后

Spring Cloud组件总结

组件简介分类官网笔记备注
EurekaEureka is the Netflix Service Discovery Server and Client.服务注册中心linklinkeureka中文解释:int.(因找到某物,尤指问题的答案而高兴)我发现了,我找到了
ZookeeperZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.服务注册中心linklinkzookeeper中文解释:n.动物园管理员
ConsulConsul is a service mesh solution providing a full featured control plane with service discovery, configuration, and segmentation functionality.服务注册中心linklinkconsul中文解释:n.领事
RibbonRibbon is a client-side load balancer that gives you a lot of control over the behavior of HTTP and TCP clients.服务调用linklinkribbon中文解释:n.(用于捆绑或装饰的)带子;丝带;带状物;
OpenFeignFeign is a declarative web service client. It makes writing web service clients easier.服务调用linklinkfeign中文意思:v.假装,装作,佯装(有某种感觉或生病、疲倦等)
HystrixNetflix has created a library called Hystrix that implements the circuit breaker pattern.服务降级linklinkhystrix中文意思:n.豪猪属;猬草属;豪猪;豪猪亚属
GateWaySpring Cloud Gateway aims to provide a simple, yet effective way to route to APIs and provide cross cutting concerns to them such as: security, monitoring/metrics, and resiliency.服务网关linklinkgateway中文意思:n.网关;途径;门道;手段
ConfigSpring Cloud Config provides server-side and client-side support for externalized configuration in a distributed system.服务配置linklink-
BusSpring Cloud Bus links nodes of a distributed system with a lightweight message broker.服务总线linklink-
StreamSpring Cloud Stream is a framework for building message-driven microservice applications.消息队列linklink-
SleuthSpring Cloud Sleuth implements a distributed tracing solution for Spring Cloud.服务跟踪linklinksleuth中文意思:n.侦探
NacosNacos致力于帮助您发现、配置和管理微服务。服务注册中心、服务配置、服务总线linklinkNAme + COnfiguration + Service
SentinelSentinel是面向分布式服务架构的流量控制组件,主要以流量为切入点,从流量控制、熔断降级、系统自适应保护等多个维度来帮助您保障微服务的稳定性。服务降级linklinksentinel中文意思:n.哨兵
SeataSeata 是一款开源的分布式事务解决方案,致力于在微服务架构下提供高性能和简单易用的分布式事务服务。分布式事务linklink-