微服务技术架构

image.png

基础

  • SSM
  • SSH(hibernate JPA)

微服务技术架构

1 REST VS RPC

核心要点

  • 协议

    TCP

    HTTP协议

  • 序列化

    二进制

    文本信息

技术栈

  • REST
    • Spring Boot /Cloud
      1. Alibaba
      2. netflix
  • RPC
    • Dubbo
    • gRPC

2 支撑服务

技术要点

  • 服务注册与发现
  • 服务网关 提供统一的访问入口
  • 负载均衡
  • 配置中心

注册中心

技术栈

  • Nacos
  • zookeeper
  • eurake

服务网关

  • Spring cloud Gateway

    路由

    断言

    过滤器

  • Zull/Zull2

  • Kong

    Nginx + OpenResty的 网关

配置中心

  • Spring Cloud Config
  • Apollo
  • Nacos

3 服务容错

技术要点

  • 降级
  • 限流
  • 熔断

技术栈

  • Sentinel
  • Hystrix

4 服务安全

技术要点

  • 授权
  • 认证

技术选型

  • Spring Security
  • Shiro

服务监控

技术要点

  • 日志监控
  • 调用链监控
  • 健康检查

技术栈

  • 日志监控
    • ELK
  • 调用链
    • Zipkin

健康检查

  • Spring Boot Actuator

后台服务

核心要点

  • 消息系统 MQ
  • 分布式缓存 Redis
  • 任务调度

技术栈

  • 消息
    • RocketMQ
    • RabbitMQ
    • Kafka
  • 分布式数据访问 中间件
    • Shareding Sphere
    • mycat
  • 任务调度
    • xxl-job
    • elastic-job

服务部署

发布机制

  • 蓝绿部署

技术栈

集群资源调度系统

  • k8S

服务发布

  • jenkins

服务网格

  • lstio

你可能感兴趣的:(微服务技术架构)