api网关设计
参考资料
| 说明 | 地址 |
|---|---|
| nginx中的server配置 | https://nginx.org/en/docs/http/ngx_http_core_module.html#server |
| 简单网络管理协议SNMP | 对象命名树(object name tree) |
| k8s中的概念 | 对象(server、backeend、location)、属性(name,kind等)、资源、标签 |
| POM Reference | https://maven.apache.org/pom.html |
| spring cloud gateway | https://docs.spring.io/spring-cloud-gateway/reference/index.html |
| hibernate6.6 | https://hibernate.org/orm/documentation/6.6/ |
| apache shenyu | https://shenyu.apache.org/zh/ |
| 学习web开发 | https://developer.mozilla.org/zh-CN/docs/Learn/Getting_started_with_the_web |
| react官网 | https://react.dev/ |
| vuejs | https://cn.vuejs.org/ |
| nuxt | https://nuxt.com/docs/getting-started/introduction |
| Typescript教程 | https://blog.csdn.net/dabaooooq/article/details/129896721 https://www.patrickzhong.com/TypeScript/PREFACE.html |
| freemarker | https://freemarker.apache.org/ https://github.com/apache/freemarker |
| jquery | https://jquery.com/ https://api.jquery.com/ https://www.jquery123.com/ |
| bootstrap5 | https://www.runoob.com/bootstrap5/bootstrap5-tutorial.html |
| AdminLTE | https://adminlte.io/ |
对象命名树
| 名称 | 说明 |
|---|---|
| server | 虚拟主机 |
| server.name | 虚拟主机名称,例如myGateway |
| server.env | 虚拟主机所在环境,例如prod、pre、qa、dev |
| server.server_name | 域名,参考nginx |
| route | 路由 |
| route.name | 路由名称,可以是 /a/b/c |
| route.server | 路由关联的server名称,例如 myGateway |
| route.upstream | 路由关联的upstream名称,例如 user-service |
| route.zapi_session | 路由会话配置 |
| upstream | 上游服务 |
| upstream.name | 上游服务名称,例如 user-service |
| upstream.type | 上游服务类型,例如 http, discovery_zookeeper |
| upstream.server | 上游服务地址 |
数据库表
| 名称 | 说明 |
|---|---|
| object | 资源对象,存储server、route、upstream |
| object_prop | 资源对象属性 |
| object_release | 资源对象发布 |
| server_config | 全局配置 |
插件
在配置面,提供属性元数据、属性保存验证
在执行面,提供属性解析、根据属性执行请求处理
浙公网安备 33010602011771号