-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdemo.txt
44 lines (32 loc) · 1.59 KB
/
demo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
./ms run
./ms redis_load_data
./ms stats
./ms portals
curl localhost:8080/person/person/5 | jq .
curl localhost:8080/person_rec/recommendations/5 | jq .
curl localhost:8080/product_rec/recommendations/5 | jq .
curl localhost:8080/composite/1 | jq .
curl localhost:8080/composite/health | jq .
curl localhost:8080/composite/5 | jq .
ab -n 100000 -c 13 -l http://localhost:8080/composite/2
docker-compose pause product-recommendation-service
docker-compose unpause product-recommendation-service
curl "localhost:8080/product_rec/set-processing-time?minMs=200&maxMs=500" | jq .
curl "localhost:8080/product_rec/set-processing-time?minMs=500&maxMs=1500" | jq .
curl "localhost:8080/product_rec/set-processing-time?minMs=1500&maxMs=1500" | jq .
curl "localhost:8080/product_rec/set-processing-time?minMs=0&maxMs=0" | jq .
curl "localhost:8080/product_rec/set-error?percentage=5" | jq .
curl "localhost:8080/product_rec/set-error?percentage=50" | jq .
curl "localhost:8080/product_rec/set-error?percentage=0" | jq .
# Circuit breaker isolation proof
ab -n 100000 -c 8 -l http://localhost:8080/composite/2
ab -n 100000 -c 7 -l http://localhost:8080/composite/skip_problems/3
curl "localhost:8080/product_rec/set-processing-time?minMs=1500&maxMs=1500" | jq .
curl -v localhost:8080/person/metrics | jq .
curl -v localhost:8080/composite/async/5 | jq .
ab -n 100000 -c 15 -l http://localhost:8080/composite/async/2
# Thread limiting
Edit code
docker-compose stop person-composite-service
cd microservices/aggregate/person-composite-service/ && ./gradlew clean build && cd -
docker-compose up person-composite-service