一、简介

Eureka是Netflix开发的服务发现框架,本身是一个基于REST的服务,主要用于定位运行在AWS(AWS 是业务流程管理开发平台AWS Enterprise BPM Platform 业务流程管理开发平台)域中的中间层服务,以达到负载均衡和中间层服务故障转移的目的。SpringCloud将它集成在其子项目spring-cloud-netflix中,实现SpringCloud的服务发现功能。

          其实,Eureka就是一个专门用于服务发现的服务器,一些服务注册到该服务器,而另一些服务通过该服务器查找其所要调用执行的服务。可以充当服务发现服务器的组件很多,例如Zookeeper、Consul、Eureka等

二、架构

https://github.com/Netflix/eureka/wiki/Eureka-at-a-glance

The architecture above depicts how Eureka is deployed at Netflix and this is how you would typically run it. There is one eureka cluster per region which knows only about instances in its region. There is at the least one eureka server per zone to handle zone failures.

Services register with Eureka and then send heartbeats to renew their leases every 30 seconds. If the client cannot renew the lease for a few times, it is taken out of the server registry in about 90 seconds. The registration information and the renewals are replicated to all the eureka nodes in the cluster. The clients from any zone can look up the registry information (happens every 30 seconds) to locate their services (which could be in any zone) and make remote calls

三、Eureka与Zookeeper对比

Eureka与Zookeeper都可以充当服务中心,它们的区别主要体现在对于CAP原则的支持的不同。

Consistency(一致性)、 Availability(可用性)、Partition tolerance(分区容错性)

  • Eureka与AP原则
  • Zookeer与CP原则

最新文章

  1. 嵌入式开发中常见3个的C语言技巧
  2. 命令行操作svn和git和git
  3. ADMM与one-pass multi-view learning
  4. tail 显示文件最后若干行内容
  5. DB2导入导出数据库数据
  6. MySQL 同主机不同数据库之间的复制
  7. unity meshrender理解
  8. JPHP试用笔记
  9. NEON在Android中的使用举例【转】
  10. jvm性能调优---jstat的用法
  11. cocos2dx js文件加密为jsc文件
  12. JavaScript高级编程
  13. javascript数组的常用方法总结
  14. Python爬虫入门教程 51-100 Python3爬虫通过m3u8文件下载ts视频-Python爬虫6操作
  15. ZY
  16. Lodop打印控件打印机可打区域的影响 设置纸张边缘为基点
  17. 2018 codejam kickstart H轮
  18. Django分页(一)
  19. Linux下查看CPU型号,内存大小,硬盘空间的命令
  20. 【转】Emgu 图像阈值

热门文章

  1. Unicode、UTF-8、UTF-16 终于懂了
  2. hdfs command
  3. 尖端之作看逐浪-Zoomla!逐浪CMS python版发布
  4. Java核心技术--Java程序设计
  5. 微软商店打不开的教程(错误代码0x80131500)
  6. 关于Cefsharp无法拖动Dom元素的解决方法
  7. 解决异常:“The last packet sent successfully to the server was 0 milliseconds ago. ”的办法
  8. [loj3146]路灯
  9. Taro 3.4 beta 发布: 支持 Preact 为应用开辟更多体积空间
  10. 和安卓对接老是ping不通?试试内网映射