排名
3
文章
317
粉丝
22
评论
14
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:
50010702506256


欢迎加群交流技术

- Downstream : 下游服务配置
- UpStream : 上游服务配置
- Aggregates : 服务聚合配置
- ServiceName, LoadBalancer, UseServiceDiscovery : 配置服务发现
- AuthenticationOptions : 配置服务认证
- RouteClaimsRequirement : 配置Claims鉴权
- RateLimitOptions : 为限流配置
- FileCacheOptions : 缓存配置
- QosOptions : 服务质量与熔断
- DownstreamHeaderTransform : 头信息转发
- DownstreamPathTemplate:下游戏
- DownstreamScheme:下游服务http schema
- DownstreamHostAndPorts:下游服务的地址,如果使用LoadBalancer的话这里可以填多项
- UpstreamPathTemplate: 上游也就是用户输入的请求Url模板
- UpstreamHttpMethod: 上游请求http方法,可使用数组
- Prioirty优先级: 对多个产生冲突的路由设置优化级
- 路由负载均衡:
当下游服务有多个结点的时候,我们可以在DownstreamHostAndPorts中进行配置。{
"DownstreamPathTemplate": "/api/posts/{postId}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "47.105.80.253",
"Port": 5000,
},
{
"Host": "47.105.80.95",
"Port": 5000,
}
],
"UpstreamPathTemplate": "/posts/{postId}",
"LoadBalancer": "LeastConnection",
"UpstreamHttpMethod": [ "Put", "Delete" ]
}
欢迎加群讨论技术,1群:677373950(满了,可以加,但通过不了),2群:656732739。有需要软件开发,或者学习软件技术的朋友可以和我联系~(Q:815170684)
评价