mirror of https://github.com/dapr/quickstarts.git
fix resiliency readme files
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
This commit is contained in:
parent
96b009a832
commit
d54902b7af
|
@ -40,14 +40,14 @@ dapr run --app-id order-processor --config ../config.yaml --components-path ../.
|
|||
```bash
|
||||
cd ../state_management/javascript/sdk/order-processor
|
||||
npm install
|
||||
dapr run --app-id order-processor ../config.yaml --components-path ../../../components/ -- npm start
|
||||
dapr run --app-id order-processor --config ../config.yaml --components-path ../../../components/ -- npm start
|
||||
```
|
||||
|
||||
### Python example:
|
||||
```bash
|
||||
cd ../state_management/python/sdk/order-processor
|
||||
pip3 install -r requirements.txt
|
||||
dapr run --app-id order-processor ../config.yaml --components-path ../../../components/ -- python3
|
||||
dapr run --app-id order-processor --config ../config.yaml --components-path ../../../components/ -- python3 app.py
|
||||
```
|
||||
|
||||
### Expected output:
|
||||
|
|
|
@ -81,7 +81,7 @@ dapr run --app-id checkout --config ../config.yaml --components-path ../../../c
|
|||
```bash
|
||||
cd ../service_invocation/python/http/order-processor
|
||||
pip3 install -r requirements.txt
|
||||
dapr run --app-port 8001 --app-id order-processor --config ../config.yaml --components-path --app-protocol http --dapr-http-port 3501 -- python3 app.py
|
||||
dapr run --app-port 8001 --app-id order-processor --config ../config.yaml --components-path ../../../components/ --app-protocol http --dapr-http-port 3501 -- python3 app.py
|
||||
```
|
||||
|
||||
##### Checkout Service:
|
||||
|
@ -101,7 +101,7 @@ Once both services are running, the `order-processor` service will recieve order
|
|||
== APP == Order received: { orderId: 3 }
|
||||
```
|
||||
|
||||
### Simulate ann application failure by stopping the `order-processor` service
|
||||
### Simulate an application failure by stopping the `order-processor` service
|
||||
|
||||
Simulate a system failure by stopping the `order-processor` service running in your second terminal window.
|
||||
|
||||
|
@ -145,31 +145,31 @@ Simulate the `order-processor` service recovering by restarting the application
|
|||
### CSharp example:
|
||||
##### Order Processor Service:
|
||||
```bash
|
||||
dapr run --app-port 7001 --app-id order-processor --config ../config.yaml --components-path --app-protocol http --dapr-http-port 3501 -- dotnet run
|
||||
dapr run --app-port 7001 --app-id order-processor --config ../config.yaml --components-path ../../../components/ --app-protocol http --dapr-http-port 3501 -- dotnet run
|
||||
```
|
||||
|
||||
### Go example:
|
||||
##### Order Processor Service:
|
||||
```bash
|
||||
dapr run --app-port 6001 --app-id order-processor --config ../config.yaml --components-path --app-protocol http --dapr-http-port 3501 -- go run .
|
||||
dapr run --app-port 6001 --app-id order-processor --config ../config.yaml --components-path ../../../components/ --app-protocol http --dapr-http-port 3501 -- go run .
|
||||
```
|
||||
|
||||
### Java example:
|
||||
##### Order Processor Service:
|
||||
```bash
|
||||
dapr run --app-id order-processor --config ../config.yaml --components-path --app-port 9001 --app-protocol http --dapr-http-port 3501 -- java -jar target/OrderProcessingService-0.0.1-SNAPSHOT.jar
|
||||
dapr run --app-id order-processor --config ../config.yaml --components-path ../../../components/ --app-port 9001 --app-protocol http --dapr-http-port 3501 -- java -jar target/OrderProcessingService-0.0.1-SNAPSHOT.jar
|
||||
```
|
||||
|
||||
### JavaScript example:
|
||||
##### Order Processor Service:
|
||||
```bash
|
||||
dapr run --app-port 5001 --app-id order-processor --config ../config.yaml --components-path --app-protocol http --dapr-http-port 3501 -- npm start
|
||||
dapr run --app-port 5001 --app-id order-processor --config ../config.yaml --components-path ../../../components/ --app-protocol http --dapr-http-port 3501 -- npm start
|
||||
```
|
||||
|
||||
### Python example:
|
||||
##### Order Processor Service:
|
||||
```bash
|
||||
dapr run --app-port 8001 --app-id order-processor --config ../config.yaml --components-path --app-protocol http --dapr-http-port 3501 -- python3 app.py
|
||||
dapr run --app-port 8001 --app-id order-processor --config ../config.yaml --components-path ../../../components/ --app-protocol http --dapr-http-port 3501 -- python3 app.py
|
||||
```
|
||||
|
||||
### Observe orders have resumed sequentially:
|
||||
|
|
Loading…
Reference in New Issue