Spring Cloud实战1——总括

原文链接: https://my.oschina.net/u/869718/blog/2250366

大纲

  1. Spring Cloud实战1——总括
  2. Spring Cloud实战2——服务配置中心
  3. Spring Cloud实战3——关于服务发现
  4. Spring Cloud实战4——客户端弹性
  5. Spring Cloud实战5——服务路由
  6. Spring Cloud实战6——保护微服务
  7. Spring Cloud实战7——采用Spring Cloud Stream的事件驱动架构
  8. Spring Cloud实战8——分布式跟踪
  9. Spring Cloud实战9——部署微服务

源码地址:https://github.com/jiangjj/spring-cloud

在读Spring Microservices in Action这书时跟着做了一个简单的demo,除了基础服务之外,微服务有license和organization,其中license依赖organization。书中使用的是旧版本的Spring Cloud,而demo使用新版本Spring Boot 2和Spring Cloud Finchley SR1,相关框架与技术有:

  • 配置中心:Spring Cloud Config
  • 服务发现:Eureka
  • 断熔器:Hystrix
  • 声明式REST客户端:Feign
  • 序列化/反序列化:protobuf
  • 客户端负载均衡:Ribbon
  • 路由器和过滤器:Zuul
  • 安全:Spring Cloud Security和JWT
  • 分布式缓存:Spring Cloud Stream、RabbitMQ和Redis
  • 分布式跟踪:Spring Cloud Sleuth、Zipkin和ELK
  • 微服务部署:docker

使用postman测试各个接口

获取token

Spring Cloud实战1——总括_第1张图片

新增org

Spring Cloud实战1——总括_第2张图片

新增lic

Spring Cloud实战1——总括_第3张图片

获取org

Spring Cloud实战1——总括_第4张图片

获取lic

Spring Cloud实战1——总括_第5张图片

更新org

Spring Cloud实战1——总括_第6张图片

获取org1

Spring Cloud实战1——总括_第7张图片

更新lic

Spring Cloud实战1——总括_第8张图片

获取lic1

Spring Cloud实战1——总括_第9张图片

删除org

Spring Cloud实战1——总括_第10张图片

删除lic

Spring Cloud实战1——总括_第11张图片

转载于:https://my.oschina.net/u/869718/blog/2250366

你可能感兴趣的:(Spring Cloud实战1——总括)