Spring cloud netfix 包括:eureka服務註冊與發現機制 hystrix 斷路器 zuul archaiusgit
Spring cloud sleuth 日誌收集工具包redis
Spring cloud stream 數據流操做開發包 封裝了與redis rabbit kafka 等發送接收消息的消息微服務。spring
Spring cloud config 配置管理工具包,將配置放置到遠程服務器。docker
Spring cloud consul 服務發現與配置工具,可與docker容器無縫集成。api
@RestController 至關於@Controller +@ResponseBody 兩個註解。安全
這兩種寫法都同樣。服務器
RestTemplate 訪問微服務。框架
Eureka框架 服務註冊與發現機制 等同於ZooKeeper微服務
Paas部署微服務。工具
Kubernetes+docker實現自動化微服務部署。
網關:spring cloud netflix zuul or cloud gateway?
配置中心:spring cloud config (git) or ctrip apollo
註冊服務器:spring cloud netfilx eureka or consul
服務安全:oauth2 or jwt?
監控:主要是爲了後續跟蹤bug使用
服務調用方式:rest api 對內用RPC 對外用rest
斷路器:spring cloud netfilx hystrlx
Api網關主要解決非友好服務和微服務統一訪問。