Giter Site home page Giter Site logo

platform-cloud's Introduction

platform-cloud

基于Spring Cloud的微服务实践

框架选型
  • Eureka:使用Spring Cloud Netflix中的Eureka实现高可用HA的服务注册中心以及服务注册与发现;

  • Spring Cloud Feign:服务间通过Feign实现服务的消费以及基于Ribbon的负载均衡;

  • Spring Cloud Config:通过Spring Cloud Config实现了应用多环境的外部化配置以及版本管理。

  • Spring Cloud Hystrix:使用Hystrix的融断机制来避免在微服务架构中个别服务出现异常时引起的故障蔓延。

  • Spring Cloud Zuul:通过Zuul为接入层服务提供API网关服务,帮助实现接口的动态路由、认证鉴权、静态应答处理等。

  • Spring Cloud Bus:通过Bus+kafka实现对配置信息的实时更新。可以向其中任何一个实例发送POST请求(/bus/refresh)实现所有实例配置信息的动态更新。

  • Spring Cloud Security:未完成

  • Swagger UI:使用Swagger UI实现自文档的微服务,写好接口即有文档,即可调试。

  • spring-cloud-consul(后面替换eureka):

    Consul的优势:

    • 使用Raft一致性算法,能保证分布式集群内各节点状态一致
    • 提供服务注册、服务发现、服务状态检查
    • 支持HTTP、DNS等协议
    • 提供分布式一致性KV存储

    实现功能: 服务注册,引用了srping-cloud-consul的项目可以自动注册服务,也可以通过HTTP接口手动注册,Docker容器也可以自动注册。 服务健康状态检查,Consul可以自动维护健康的服务列表。 异构系统可以直接通过Consul的HTTP接口拉取并监视服务列表,或者直接使用DNS解析服务。 通过分布式一致性KV存储进行微服务的配置下发。 为一些业务提供选主和分布式锁服务。

分布式事务解决方案:CQRS+Event Sourcing

platform-cloud's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.