摘要: (Template Method Pattern) Define a skeleton that allows subclasses to provide implementations for one or more of the steps. In short, the methods of o 阅读全文
posted @ 2021-05-14 13:06 UpGx 阅读(76) 评论(0) 推荐(0)
摘要: Delegate Pattern The basic function is the scheduling and distribution of tasks, separating the assignment and execution of tasks。In short, similar to 阅读全文
posted @ 2021-05-08 11:32 UpGx 阅读(197) 评论(0) 推荐(0)
摘要: Composite Pattern The purpose is to represent individual objects and composite objects with the same interface, so that the client can handle individu 阅读全文
posted @ 2021-05-06 14:01 UpGx 阅读(72) 评论(0) 推荐(0)
摘要: Flyweight Pattern The Enjoyable Element mode is a manifestation of object pooling. Similar to thread pools, you can avoid creating and destroying mult 阅读全文
posted @ 2021-05-05 22:57 UpGx 阅读(83) 评论(0) 推荐(0)
摘要: (Bridge Pattern) Bridge mode is also known as bridge mode and interface mode,It is to separate the abstract part from the concrete implementation part 阅读全文
posted @ 2021-05-01 22:28 UpGx 阅读(348) 评论(0) 推荐(0)
摘要: (Adapter Pattern) Its function is to turn the interface of one class into another interface that the client expects, so that classes that would otherw 阅读全文
posted @ 2021-04-27 22:57 UpGx 阅读(104) 评论(0) 推荐(0)
摘要: (Proxy Pattern) Provide proxies to other objects to control access to this object, with the aim of augmenting other objects, in short, similar to AOP, 阅读全文
posted @ 2021-04-22 18:39 UpGx 阅读(138) 评论(0) 推荐(0)
摘要: (Builder Pattern) Separating the creation of a complex object from its representation makes the same creation process have different representations, 阅读全文
posted @ 2021-04-19 12:36 UpGx 阅读(86) 评论(0) 推荐(0)
摘要: (Prototype Pattern) Creating a new object by copying, the caller does not need to know the creation details, does not call the constructor, is a creat 阅读全文
posted @ 2021-04-15 19:46 UpGx 阅读(75) 评论(0) 推荐(0)
摘要: (Singleton Pattern) Make sure that there is absolutely only one instance of a class in any case, and that a global access point is provided。Sometimes 阅读全文
posted @ 2021-04-12 17:21 UpGx 阅读(129) 评论(0) 推荐(0)
摘要: (factory pattern) Sometimes we may need a lot of code when creating a class, and if we put all this creation logic in a class, it is undoubtedly very 阅读全文
posted @ 2021-04-06 18:15 UpGx 阅读(362) 评论(0) 推荐(0)
摘要: Outline of Netty In distributed architectures, network communication is of paramount importance. Regardless of how sophisticated the architecture is, 阅读全文
posted @ 2022-03-14 23:28 UpGx 阅读(69) 评论(0) 推荐(0)
摘要: SpringCloud(CI/CD-Nexus+Gitea+Jenkins) I talked about SpringCloud-Netflix earlier, and at the same time, I built a set of SpringCloud-Netflix framewor 阅读全文
posted @ 2022-01-22 16:15 UpGx 阅读(499) 评论(2) 推荐(0)
摘要: SpringCloud-Netflix(GateWay) We found that after the introduction of microservices, there are a series of problems, such as the front-end passing a re 阅读全文
posted @ 2022-01-13 17:43 UpGx 阅读(193) 评论(0) 推荐(1)
摘要: SpringCloud-Netflix(Hystrix) However, when a microservice is called, a microservice may go down, or it cannot return resources for a long time due to 阅读全文
posted @ 2022-01-06 11:35 UpGx 阅读(95) 评论(0) 推荐(1)
摘要: SpringCloud-Netflix( Nacos-Configuration/Register Center) 随着微服务的数量增多,当我们需要修改微服务配置的时候,会觉得十分繁琐,从而可能导致一定概率上的修改错误。而且配置文件是对项目十分重要的东西之一,一旦修改错误,有可能造成一些严重的问题。 阅读全文
posted @ 2022-01-03 18:09 UpGx 阅读(332) 评论(0) 推荐(1)
摘要: SpringCloud-Netflix(Usage of OpenFeign) 前面我们使用的Ribbon+Resttemplate进行微服务之间的调用,然而,这种方式还是要我们手动填写目标的服务地址。一个好的架构的话,开发人员应该对服务调用无感知,这样才能减少错误的频率,那么openfeign就可 阅读全文
posted @ 2021-12-31 23:59 UpGx 阅读(73) 评论(0) 推荐(2)
摘要: SpringCloud-Netflix(Usage of Eureka) 前面聊了Ribbon的使用,因为使用Ribbon带出了两个痛点,所以我们来聊聊Eureka,当他和Ribbon结合后,会解决一定的问题。并且本篇会聊聊它的使用,关于SpringCloud-Netflix系列的源码我会在聊完对他 阅读全文
posted @ 2021-12-28 16:43 UpGx 阅读(110) 评论(0) 推荐(2)
摘要: SpringCloud-Netflix(Usage of Ribbon) SpringCloud有两个流派【Netflix;Alibaba】,因为现在使用多的还是Netflix这一套,所以我准备先从Netflix开始聊。当然现在很多公司也开始使用Alibaba这套,所以阿里的这套我会放在后面聊。我们 阅读全文
posted @ 2021-12-26 19:10 UpGx 阅读(128) 评论(0) 推荐(2)
摘要: Nginx 我们知道随着互联网网民的增多,我们的服务的压力也在增大,那么单独靠着增加硬件资源去提升应用性能是一种成本比较高的手段,这个时候Nginx应运而生,他是一个轻量级的Http Server,和我们平常使用的tomcat的区别是:Tomcat是存放系统程序的服务器叫做application s 阅读全文
posted @ 2021-11-28 17:49 UpGx 阅读(98) 评论(0) 推荐(2)
摘要: 分布式协调-Zookeeper(集群&ZAB&一致性) 前面对于zk的一些特性以及如何使用这些特性聊了聊,但是zk作为这样一个重要的中间件,我想瞅瞅他的底层实现原理。并且我们知道每个中间件都必须实现高可用,那我们就有必要去剖析一下他的集群特征。本篇所涉及到的点有: 集群搭建 节点集群角色 ZAB协议 阅读全文
posted @ 2021-11-25 20:29 UpGx 阅读(371) 评论(2) 推荐(1)