Skip to content

Instantly share code, notes, and snippets.

@evvil
Last active July 3, 2018 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evvil/0e3037f5d4b09eac11ad89ae24d2c9c8 to your computer and use it in GitHub Desktop.
Save evvil/0e3037f5d4b09eac11ad89ae24d2c9c8 to your computer and use it in GitHub Desktop.

0x01 网关意义

  1. 为什么要做网关
  2. 网关现状

0x02 网关介绍

  1. 配置后台和地址

  2. 过滤器 sign -> auth -> route -> translate -> response

  3. 返回数据格式

  4. 配置流程

  • 类目
  • 变更
  • api
  • 接口
  • 发布
  • 测试通过
  • 导入导出

0x03 网关怎么用

后端配置

  1. mock数据
  2. api和接口
  3. dubbo version
  4. 入参出参 a. 公共参数 b. 业务参数

前端调用

  1. http get post
  2. kv 和 json
  3. 文件上传
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment