mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
asciidoc fix
This commit is contained in:
parent
0bfc1fe0fb
commit
4351c1f194
@ -150,13 +150,11 @@ server.listen(8060, function() {
|
|||||||
|
|
||||||
===== 测试1:Spring Cloud微服务完美调用异构微服务
|
===== 测试1:Spring Cloud微服务完美调用异构微服务
|
||||||
|
|
||||||
为你的Spring Cloud微服务整合Ribbon,然后构建 `http://node-service/**`
|
为你的Spring Cloud微服务整合Ribbon,然后构建 http://node-service/ ,就可以请求到异构微服务的 `/` 了。
|
||||||
,就可以请求到异构微服务的 `/**` 了。
|
|
||||||
|
|
||||||
示例:
|
示例:
|
||||||
|
|
||||||
Ribbon请求 `http://node-service/` 会请求到 `http://localhost:8060/`
|
Ribbon请求 `http://node-service/` 会请求到 `http://localhost:8060/` ,以此类推。
|
||||||
,以此类推。
|
|
||||||
|
|
||||||
至于断路器,正常为你的Spring
|
至于断路器,正常为你的Spring
|
||||||
Cloud微服务整合Sentinel或者Hystirx、Resilience4J即可 。
|
Cloud微服务整合Sentinel或者Hystirx、Resilience4J即可 。
|
||||||
@ -169,8 +167,8 @@ Cloud微服务整合Sentinel或者Hystirx、Resilience4J即可 。
|
|||||||
|
|
||||||
如果你有一个Spring Cloud微服务叫做 `spring-cloud-microservice`
|
如果你有一个Spring Cloud微服务叫做 `spring-cloud-microservice`
|
||||||
,那么NodeJS应用只需构建
|
,那么NodeJS应用只需构建
|
||||||
`http://localhost:8070/spring-cloud-microservice/**` ,Alibaba
|
http://localhost:8070/spring-cloud-microservice/ ,Alibaba
|
||||||
Sidecar就会把请求转发到 `spring-cloud-microservice` 的 `/**` 。
|
Sidecar就会把请求转发到 `spring-cloud-microservice` 的 `/` 。
|
||||||
|
|
||||||
而Spring Cloud Gateway是整合了Ribbon的,所以实现了负载均衡;Spring Cloud
|
而Spring Cloud Gateway是整合了Ribbon的,所以实现了负载均衡;Spring Cloud
|
||||||
Gateway还可以整合Sentinel或者Hystirx、Resilience4J,所以也带有了断路器。
|
Gateway还可以整合Sentinel或者Hystirx、Resilience4J,所以也带有了断路器。
|
||||||
|
Loading…
x
Reference in New Issue
Block a user