![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微服务
一叶扁舟3
这个作者很懒,什么都没留下…
展开
-
zookeeper与eurka的区别
1) ZooKepper侧重CP设计,强调一致性。ZooKeepper结构主从结构,有leader,其他节点follwer。当在ZooKeeper节点宕机个数超过一半时和zk集群在选举时,zk是不推荐使用。Zk有心跳机制。 2) Eureka侧重AP设计,强调可用性。Eureka结构peer to peer 点对点,每个节点互为主从,即主节点,又是从节点。每个节点都会同步所有的数据,Eureka数...原创 2018-11-23 13:50:29 · 3139 阅读 · 0 评论 -
Ribbon和Nginx比较
1) Nginx 基于C语言,快速,性能高5w/s。 Redis 5w/s,RibbatMQ 1.2w/s ApacheActiveMQ 0.6w/s 业务系统,kafka 20w~50w/s大数据,Zuul2.0 200w/s 负载均衡、反向代理,代理后端服务器。隐藏真实地址,防火墙,真实不能外网直接访问,安全性。 2)Ribbon负载均衡,前端,客户端开始导向(转向) ...原创 2019-05-01 21:36:24 · 1008 阅读 · 0 评论 -
SpringBoot来构建EurekaServer端
SpringCloud必须增加额外依赖管理,版本对应关系 <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-d...原创 2019-05-01 21:38:46 · 134 阅读 · 0 评论 -
springCloud 项目频繁挂掉,Load balancer does not have available server for client: xxx
在客户端的pom文件里加上 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-eureka</artifactId> </dependency> ...原创 2019-05-23 11:05:01 · 959 阅读 · 0 评论