10000 Merge pull request #98 from chenqimiao/patch-2, @chenqimiao · rubyzhang/advanced-java@be8650c · GitHub
[go: up one dir, main page]

Skip to content

Commit be8650c

Browse files
authored
Merge pull request doocs#98 from chenqimiao/patch-2, @chenqimiao
Fix typo
2 parents 51ba948 + 0157571 commit be8650c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/high-availability/hystrix-thread-pool-current-limiting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Hystrix 对每个外部依赖用一个单独的线程池,这样的话,如果
4949

5050
我们可以用 Hystrix semaphore 技术来实现对某个依赖服务的并发访问量的限制,而不是通过线程池/队列的大小来限制流量。
5151

52-
semaphore 技术可以用来限流和削峰,但是不能用来对调研延迟的服务进行 timeout 和隔离。
52+
semaphore 技术可以用来限流和削峰,但是不能用来对调用延迟的服务进行 timeout 和隔离。
5353

5454
`execution.isolation.strategy` 设置为 `SEMAPHORE`,那么 Hystrix 就会用 semaphore 机制来替代线程池机制,来对依赖服务的访问进行限流。如果通过 semaphore 调用的时候,底层的网络调用延迟很严重,那么是无法 timeout 的,只能一直 block 住。一旦请求数量超过了 semaphore 限定的数量之后,就会立即开启限流。
5555

@@ -160,4 +160,4 @@ ProductInfo(id=null, name=降级商品, price=null, pictureList=null, specificat
160160
{"id": -2, "name": "iphone7手机", "price": 5599, "pictureList":"a.jpg,b.jpg", "specification": "iphone7的规格", "service": "iphone7的售后服务", "color": "红色,白色,黑色", "size": "5.5", "shopId": 1, "modifiedTime": "2017-01-01 12:00:00", "cityId": 1, "brandId": 1}
161161
// 后面都是一些正常的商品信息,就不贴出来了
162162
//...
163-
```
163+
```

0 commit comments

Comments
 (0)
0