Quickstart: Service-to-service resiliency

Get started with Dapr’s resiliency capabilities via the service invocation API

Observe Dapr resiliency capabilities by simulating a system failure. In this Quickstart, you will:

  • Run two microservice applications: checkout and order-processor. checkout will continuously make Dapr service invocation requests to order-processor.
  • Trigger the resiliency spec by simulating a system failure.
  • Remove the failure to allow the microservice application to recover.

Diagram showing the resiliency applied to Dapr APIs

Select your preferred language-specific Dapr SDK before proceeding with the Quickstart.

Pre-requisites

For this example, you will need:

Step 1: Set up the environment

Clone the sample provided in the Quickstarts repo.

  1. git clone https://github.com/dapr/quickstarts.git

Step 2: Run order-processor service

In a terminal window, from the root of the Quickstart directory, navigate to order-processor directory.

  1. cd service_invocation/python/http/order-processor

Install dependencies:

  1. pip3 install -r requirements.txt

Run the order-processor service alongside a Dapr sidecar.

  1. dapr run --app-port 8001 --app-id order-processor --resources-path ../../../resources/ --app-protocol http --dapr-http-port 3501 -- python3 app.py

Step 3: Run the checkout service application

In a new terminal window, from the root of the Quickstart directory, navigate to the checkout directory.

  1. cd service_invocation/python/http/checkout

Install dependencies:

  1. pip3 install -r requirements.txt

Run the checkout service alongside a Dapr sidecar.

  1. dapr run --app-id checkout --resources-path ../../../resources/ --app-protocol http --dapr-http-port 3500 -- python3 app.py

The Dapr sidecar then loads the resiliency spec located in the resources directory:

  1. apiVersion: dapr.io/v1alpha1
  2. kind: Resiliency
  3. metadata:
  4. name: myresiliency
  5. scopes:
  6. - checkout
  7. spec:
  8. policies:
  9. retries:
  10. retryForever:
  11. policy: constant
  12. maxInterval: 5s
  13. maxRetries: -1
  14. circuitBreakers:
  15. simpleCB:
  16. maxRequests: 1
  17. timeout: 5s
  18. trip: consecutiveFailures >= 5
  19. targets:
  20. apps:
  21. order-processor:
  22. retry: retryForever
  23. circuitBreaker: simpleCB

Step 4: View the Service Invocation outputs

When both services and sidecars are running, notice how orders are passed from the checkout service to the order-processor service using Dapr service invoke.

checkout service output:

  1. == APP == Order passed: {"orderId": 1}
  2. == APP == Order passed: {"orderId": 2}
  3. == APP == Order passed: {"orderId": 3}
  4. == APP == Order passed: {"orderId": 4}

order-processor service output:

  1. == APP == Order received: {"orderId": 1}
  2. == APP == Order received: {"orderId": 2}
  3. == APP == Order received: {"orderId": 3}
  4. == APP == Order received: {"orderId": 4}

Step 5: Introduce a fault

Simulate a fault by stopping the order-processor service. Once the instance is stopped, service invoke operations from the checkout service begin to fail.

Since the resiliency.yaml spec defines the order-processor service as a resiliency target, all failed requests will apply retry and circuit breaker policies:

  1. targets:
  2. apps:
  3. order-processor:
  4. retry: retryForever
  5. circuitBreaker: simpleCB

In the order-processor window, stop the service:

  1. CTRL + C

Once the first request fails, the retry policy titled retryForever is applied:

  1. INFO[0005] Error processing operation endpoint[order-processor, order-processor:orders]. Retrying...

Retries will continue for each failed request indefinitely, in 5 second intervals.

  1. retryForever:
  2. policy: constant
  3. maxInterval: 5s
  4. maxRetries: -1

Once 5 consecutive retries have failed, the circuit breaker policy, simpleCB, is tripped and the breaker opens, halting all requests:

  1. INFO[0025] Circuit breaker "order-processor:orders" changed state from closed to open
  1. circuitBreakers:
  2. simpleCB:
  3. maxRequests: 1
  4. timeout: 5s
  5. trip: consecutiveFailures >= 5

After 5 seconds has surpassed, the circuit breaker will switch to a half-open state, allowing one request through to verify if the fault has been resolved. If the request continues to fail, the circuit will trip back to the open state.

  1. INFO[0030] Circuit breaker "order-processor:orders" changed state from open to half-open
  2. INFO[0030] Circuit breaker "order-processor:orders" changed state from half-open to open
  3. INFO[0030] Circuit breaker "order-processor:orders" changed state from open to half-open
  4. INFO[0030] Circuit breaker "order-processor:orders" changed state from half-open to open

This half-open/open behavior will continue for as long as the order-processor service is stopped.

Step 6: Remove the fault

Once you restart the order-processor service, the application will recover seamlessly, picking up where it left off with accepting order requests.

In the order-processor service terminal, restart the application:

  1. dapr run --app-port 8001 --app-id order-processor --app-protocol http --dapr-http-port 3501 -- python3 app.py

checkout service output:

  1. == APP == Order passed: {"orderId": 5}
  2. == APP == Order passed: {"orderId": 6}
  3. == APP == Order passed: {"orderId": 7}
  4. == APP == Order passed: {"orderId": 8}
  5. == APP == Order passed: {"orderId": 9}
  6. == APP == Order passed: {"orderId": 10}

order-processor service output:

  1. == APP == Order received: {"orderId": 5}
  2. == APP == Order received: {"orderId": 6}
  3. == APP == Order received: {"orderId": 7}
  4. == APP == Order received: {"orderId": 8}
  5. == APP == Order received: {"orderId": 9}
  6. == APP == Order received: {"orderId": 10}

Pre-requisites

For this example, you will need:

Step 1: Set up the environment

Clone the sample provided in the Quickstarts repo.

  1. git clone https://github.com/dapr/quickstarts.git

Step 2: Run the order-processor service

In a terminal window, from the root of the Quickstart directory, navigate to order-processor directory.

  1. cd service_invocation/javascript/http/order-processor

Install dependencies:

  1. npm install

Run the order-processor service alongside a Dapr sidecar.

  1. dapr run --app-port 5001 --app-id order-processor --resources-path ../../../resources/ --app-protocol http --dapr-http-port 3501 -- npm start

Step 3: Run the checkout service application

In a new terminal window, from the root of the Quickstart directory, navigate to the checkout directory.

  1. cd service_invocation/javascript/http/checkout

Install dependencies:

  1. npm install

Run the checkout service alongside a Dapr sidecar.

  1. dapr run --app-id checkout --resources-path ../../../resources/ --app-protocol http --dapr-http-port 3500 -- npm start

The Dapr sidecar then loads the resiliency spec located in the resources directory:

  1. apiVersion: dapr.io/v1alpha1
  2. kind: Resiliency
  3. metadata:
  4. name: myresiliency
  5. scopes:
  6. - checkout
  7. spec:
  8. policies:
  9. retries:
  10. retryForever:
  11. policy: constant
  12. maxInterval: 5s
  13. maxRetries: -1
  14. circuitBreakers:
  15. simpleCB:
  16. maxRequests: 1
  17. timeout: 5s
  18. trip: consecutiveFailures >= 5
  19. targets:
  20. apps:
  21. order-processor:
  22. retry: retryForever
  23. circuitBreaker: simpleCB

Step 4: View the Service Invocation outputs

When both services and sidecars are running, notice how orders are passed from the checkout service to the order-processor service using Dapr service invoke.

checkout service output:

  1. == APP == Order passed: {"orderId": 1}
  2. == APP == Order passed: {"orderId": 2}
  3. == APP == Order passed: {"orderId": 3}
  4. == APP == Order passed: {"orderId": 4}

order-processor service output:

  1. == APP == Order received: {"orderId": 1}
  2. == APP == Order received: {"orderId": 2}
  3. == APP == Order received: {"orderId": 3}
  4. == APP == Order received: {"orderId": 4}

Step 5: Introduce a fault

Simulate a fault by stopping the order-processor service. Once the instance is stopped, service invoke operations from the checkout service begin to fail.

Since the resiliency.yaml spec defines the order-processor service as a resiliency target, all failed requests will apply retry and circuit breaker policies:

  1. targets:
  2. apps:
  3. order-processor:
  4. retry: retryForever
  5. circuitBreaker: simpleCB

In the order-processor window, stop the service:

  1. CMD + C
  1. CTRL + C

Once the first request fails, the retry policy titled retryForever is applied:

  1. INFO[0005] Error processing operation endpoint[order-processor, order-processor:orders]. Retrying...

Retries will continue for each failed request indefinitely, in 5 second intervals.

  1. retryForever:
  2. policy: constant
  3. maxInterval: 5s
  4. maxRetries: -1

Once 5 consecutive retries have failed, the circuit breaker policy, simpleCB, is tripped and the breaker opens, halting all requests:

  1. INFO[0025] Circuit breaker "order-processor:orders" changed state from closed to open
  1. circuitBreakers:
  2. simpleCB:
  3. maxRequests: 1
  4. timeout: 5s
  5. trip: consecutiveFailures >= 5

After 5 seconds has surpassed, the circuit breaker will switch to a half-open state, allowing one request through to verify if the fault has been resolved. If the request continues to fail, the circuit will trip back to the open state.

  1. INFO[0030] Circuit breaker "order-processor:orders" changed state from open to half-open
  2. INFO[0030] Circuit breaker "order-processor:orders" changed state from half-open to open
  3. INFO[0030] Circuit breaker "order-processor:orders" changed state from open to half-open
  4. INFO[0030] Circuit breaker "order-processor:orders" changed state from half-open to open

This half-open/open behavior will continue for as long as the Redis container is stopped.

Step 6: Remove the fault

Once you restart the order-processor service, the application will recover seamlessly, picking up where it left off.

In the order-processor service terminal, restart the application:

  1. dapr run --app-port 5001 --app-id order-processor --resources-path ../../../resources/ --app-protocol http --dapr-http-port 3501 -- npm start

checkout service output:

  1. == APP == Order passed: {"orderId": 5}
  2. == APP == Order passed: {"orderId": 6}
  3. == APP == Order passed: {"orderId": 7}
  4. == APP == Order passed: {"orderId": 8}
  5. == APP == Order passed: {"orderId": 9}
  6. == APP == Order passed: {"orderId": 10}

order-processor service output:

  1. == APP == Order received: {"orderId": 5}
  2. == APP == Order received: {"orderId": 6}
  3. == APP == Order received: {"orderId": 7}
  4. == APP == Order received: {"orderId": 8}
  5. == APP == Order received: {"orderId": 9}
  6. == APP == Order received: {"orderId": 10}

Pre-requisites

For this example, you will need:

Step 1: Set up the environment

Clone the sample provided in the Quickstarts repo.

  1. git clone https://github.com/dapr/quickstarts.git

Step 2: Run the order-processor service

In a terminal window, from the root of the Quickstart directory, navigate to order-processor directory.

  1. cd service_invocation/csharp/http/order-processor

Install dependencies:

  1. dotnet restore
  2. dotnet build

Run the order-processor service alongside a Dapr sidecar.

  1. dapr run --app-port 7001 --app-id order-processor --resources-path ../../../resources/ --app-protocol http --dapr-http-port 3501 -- dotnet run

Step 3: Run the checkout service application

In a new terminal window, from the root of the Quickstart directory, navigate to the checkout directory.

  1. cd service_invocation/csharp/http/checkout

Install dependencies:

  1. dotnet restore
  2. dotnet build

Run the checkout service alongside a Dapr sidecar.

  1. dapr run --app-id checkout --resources-path ../../../resources/ --app-protocol http --dapr-http-port 3500 -- dotnet run

The Dapr sidecar then loads the resiliency spec located in the resources directory:

  1. apiVersion: dapr.io/v1alpha1
  2. kind: Resiliency
  3. metadata:
  4. name: myresiliency
  5. scopes:
  6. - checkout
  7. spec:
  8. policies:
  9. retries:
  10. retryForever:
  11. policy: constant
  12. maxInterval: 5s
  13. maxRetries: -1
  14. circuitBreakers:
  15. simpleCB:
  16. maxRequests: 1
  17. timeout: 5s
  18. trip: consecutiveFailures >= 5
  19. targets:
  20. apps:
  21. order-processor:
  22. retry: retryForever
  23. circuitBreaker: simpleCB

Step 4: View the Service Invocation outputs

When both services and sidecars are running, notice how orders are passed from the checkout service to the order-processor service using Dapr service invoke.

checkout service output:

  1. == APP == Order passed: {"orderId": 1}
  2. == APP == Order passed: {"orderId": 2}
  3. == APP == Order passed: {"orderId": 3}
  4. == APP == Order passed: {"orderId": 4}

order-processor service output:

  1. == APP == Order received: {"orderId": 1}
  2. == APP == Order received: {"orderId": 2}
  3. == APP == Order received: {"orderId": 3}
  4. == APP == Order received: {"orderId": 4}

Step 5: Introduce a fault

Simulate a fault by stopping the order-processor service. Once the instance is stopped, service invoke operations from the checkout service begin to fail.

Since the resiliency.yaml spec defines the order-processor service as a resiliency target, all failed requests will apply retry and circuit breaker policies:

  1. targets:
  2. apps:
  3. order-processor:
  4. retry: retryForever
  5. circuitBreaker: simpleCB

In the order-processor window, stop the service:

  1. CMD + C
  1. CTRL + C

Once the first request fails, the retry policy titled retryForever is applied:

  1. INFO[0005] Error processing operation endpoint[order-processor, order-processor:orders]. Retrying...

Retries will continue for each failed request indefinitely, in 5 second intervals.

  1. retryForever:
  2. policy: constant
  3. maxInterval: 5s
  4. maxRetries: -1

Once 5 consecutive retries have failed, the circuit breaker policy, simpleCB, is tripped and the breaker opens, halting all requests:

  1. INFO[0025] Circuit breaker "order-processor:orders" changed state from closed to open
  1. circuitBreakers:
  2. simpleCB:
  3. maxRequests: 1
  4. timeout: 5s
  5. trip: consecutiveFailures >= 5

After 5 seconds has surpassed, the circuit breaker will switch to a half-open state, allowing one request through to verify if the fault has been resolved. If the request continues to fail, the circuit will trip back to the open state.

  1. INFO[0030] Circuit breaker "order-processor:orders" changed state from open to half-open
  2. INFO[0030] Circuit breaker "order-processor:orders" changed state from half-open to open
  3. INFO[0030] Circuit breaker "order-processor:orders" changed state from open to half-open
  4. INFO[0030] Circuit breaker "order-processor:orders" changed state from half-open to open

This half-open/open behavior will continue for as long as the Redis container is stopped.

Step 6: Remove the fault

Once you restart the order-processor service, the application will recover seamlessly, picking up where it left off.

In the order-processor service terminal, restart the application:

  1. dapr run --app-port 7001 --app-id order-processor --app-protocol http --dapr-http-port 3501 -- dotnet run

checkout service output:

  1. == APP == Order passed: {"orderId": 5}
  2. == APP == Order passed: {"orderId": 6}
  3. == APP == Order passed: {"orderId": 7}
  4. == APP == Order passed: {"orderId": 8}
  5. == APP == Order passed: {"orderId": 9}
  6. == APP == Order passed: {"orderId": 10}

order-processor service output:

  1. == APP == Order received: {"orderId": 5}
  2. == APP == Order received: {"orderId": 6}
  3. == APP == Order received: {"orderId": 7}
  4. == APP == Order received: {"orderId": 8}
  5. == APP == Order received: {"orderId": 9}
  6. == APP == Order received: {"orderId": 10}

Pre-requisites

For this example, you will need:

Step 1: Set up the environment

Clone the sample provided in the Quickstarts repo.

  1. git clone https://github.com/dapr/quickstarts.git

Step 2: Run the order-processor service

In a terminal window, from the root of the Quickstart directory, navigate to order-processor directory.

  1. cd service_invocation/java/http/order-processor

Install dependencies:

  1. mvn clean install

Run the order-processor service alongside a Dapr sidecar.

  1. dapr run --app-id order-processor --resources-path ../../../resources/ --app-port 9001 --app-protocol http --dapr-http-port 3501 -- java -jar target/OrderProcessingService-0.0.1-SNAPSHOT.jar

Step 3: Run the checkout service application

In a new terminal window, from the root of the Quickstart directory, navigate to the checkout directory.

  1. cd service_invocation/java/http/checkout

Install dependencies:

  1. mvn clean install

Run the checkout service alongside a Dapr sidecar.

  1. dapr run --app-id checkout --resources-path ../../../resources/ --app-protocol http --dapr-http-port 3500 -- java -jar target/CheckoutService-0.0.1-SNAPSHOT.jar

The Dapr sidecar then loads the resiliency spec located in the resources directory:

  1. apiVersion: dapr.io/v1alpha1
  2. kind: Resiliency
  3. metadata:
  4. name: myresiliency
  5. scopes:
  6. - checkout
  7. spec:
  8. policies:
  9. retries:
  10. retryForever:
  11. policy: constant
  12. maxInterval: 5s
  13. maxRetries: -1
  14. circuitBreakers:
  15. simpleCB:
  16. maxRequests: 1
  17. timeout: 5s
  18. trip: consecutiveFailures >= 5
  19. targets:
  20. apps:
  21. order-processor:
  22. retry: retryForever
  23. circuitBreaker: simpleCB

Step 4: View the Service Invocation outputs

When both services and sidecars are running, notice how orders are passed from the checkout service to the order-processor service using Dapr service invoke.

checkout service output:

  1. == APP == Order passed: {"orderId": 1}
  2. == APP == Order passed: {"orderId": 2}
  3. == APP == Order passed: {"orderId": 3}
  4. == APP == Order passed: {"orderId": 4}

order-processor service output:

  1. == APP == Order received: {"orderId": 1}
  2. == APP == Order received: {"orderId": 2}
  3. == APP == Order received: {"orderId": 3}
  4. == APP == Order received: {"orderId": 4}

Step 5: Introduce a fault

Simulate a fault by stopping the order-processor service. Once the instance is stopped, service invoke operations from the checkout service begin to fail.

Since the resiliency.yaml spec defines the order-processor service as a resiliency target, all failed requests will apply retry and circuit breaker policies:

  1. targets:
  2. apps:
  3. order-processor:
  4. retry: retryForever
  5. circuitBreaker: simpleCB

In the order-processor window, stop the service:

  1. CMD + C
  1. CTRL + C

Once the first request fails, the retry policy titled retryForever is applied:

  1. INFO[0005] Error processing operation endpoint[order-processor, order-processor:orders]. Retrying...

Retries will continue for each failed request indefinitely, in 5 second intervals.

  1. retryForever:
  2. policy: constant
  3. maxInterval: 5s
  4. maxRetries: -1

Once 5 consecutive retries have failed, the circuit breaker policy, simpleCB, is tripped and the breaker opens, halting all requests:

  1. INFO[0025] Circuit breaker "order-processor:orders" changed state from closed to open
  1. circuitBreakers:
  2. simpleCB:
  3. maxRequests: 1
  4. timeout: 5s
  5. trip: consecutiveFailures >= 5

After 5 seconds has surpassed, the circuit breaker will switch to a half-open state, allowing one request through to verify if the fault has been resolved. If the request continues to fail, the circuit will trip back to the open state.

  1. INFO[0030] Circuit breaker "order-processor:orders" changed state from open to half-open
  2. INFO[0030] Circuit breaker "order-processor:orders" changed state from half-open to open
  3. INFO[0030] Circuit breaker "order-processor:orders" changed state from open to half-open
  4. INFO[0030] Circuit breaker "order-processor:orders" changed state from half-open to open

This half-open/open behavior will continue for as long as the Redis container is stopped.

Step 6: Remove the fault

Once you restart the order-processor service, the application will recover seamlessly, picking up where it left off.

In the order-processor service terminal, restart the application:

  1. dapr run --app-id order-processor --resources-path ../../../resources/ --app-port 9001 --app-protocol http --dapr-http-port 3501 -- java -jar target/OrderProcessingService-0.0.1-SNAPSHOT.jar

checkout service output:

  1. == APP == Order passed: {"orderId": 5}
  2. == APP == Order passed: {"orderId": 6}
  3. == APP == Order passed: {"orderId": 7}
  4. == APP == Order passed: {"orderId": 8}
  5. == APP == Order passed: {"orderId": 9}
  6. == APP == Order passed: {"orderId": 10}

order-processor service output:

  1. == APP == Order received: {"orderId": 5}
  2. == APP == Order received: {"orderId": 6}
  3. == APP == Order received: {"orderId": 7}
  4. == APP == Order received: {"orderId": 8}
  5. == APP == Order received: {"orderId": 9}
  6. == APP == Order received: {"orderId": 10}

Pre-requisites

For this example, you will need:

Step 1: Set up the environment

Clone the sample provided in the Quickstarts repo.

  1. git clone https://github.com/dapr/quickstarts.git

Step 2: Run the order-processor service

In a terminal window, from the root of the Quickstart directory, navigate to order-processor directory.

  1. cd service_invocation/go/http/order-processor

Install dependencies:

  1. go build .

Run the order-processor service alongside a Dapr sidecar.

  1. dapr run --app-port 6001 --app-id order-processor --resources-path ../../../resources/ --app-protocol http --dapr-http-port 3501 -- go run .

Step 3: Run the checkout service application

In a new terminal window, from the root of the Quickstart directory, navigate to the checkout directory.

  1. cd service_invocation/go/http/checkout

Install dependencies:

  1. go build .

Run the checkout service alongside a Dapr sidecar.

  1. dapr run --app-id checkout --resources-path ../../../resources/ --app-protocol http --dapr-http-port 3500 -- go run .

The Dapr sidecar then loads the resiliency spec located in the resources directory:

  1. apiVersion: dapr.io/v1alpha1
  2. kind: Resiliency
  3. metadata:
  4. name: myresiliency
  5. scopes:
  6. - checkout
  7. spec:
  8. policies:
  9. retries:
  10. retryForever:
  11. policy: constant
  12. maxInterval: 5s
  13. maxRetries: -1
  14. circuitBreakers:
  15. simpleCB:
  16. maxRequests: 1
  17. timeout: 5s
  18. trip: consecutiveFailures >= 5
  19. targets:
  20. apps:
  21. order-processor:
  22. retry: retryForever
  23. circuitBreaker: simpleCB

Step 4: View the Service Invocation outputs

When both services and sidecars are running, notice how orders are passed from the checkout service to the order-processor service using Dapr service invoke.

checkout service output:

  1. == APP == Order passed: {"orderId": 1}
  2. == APP == Order passed: {"orderId": 2}
  3. == APP == Order passed: {"orderId": 3}
  4. == APP == Order passed: {"orderId": 4}

order-processor service output:

  1. == APP == Order received: {"orderId": 1}
  2. == APP == Order received: {"orderId": 2}
  3. == APP == Order received: {"orderId": 3}
  4. == APP == Order received: {"orderId": 4}

Step 5: Introduce a fault

Simulate a fault by stopping the order-processor service. Once the instance is stopped, service invoke operations from the checkout service begin to fail.

Since the resiliency.yaml spec defines the order-processor service as a resiliency target, all failed requests will apply retry and circuit breaker policies:

  1. targets:
  2. apps:
  3. order-processor:
  4. retry: retryForever
  5. circuitBreaker: simpleCB

In the order-processor window, stop the service:

  1. CMD + C
  1. CTRL + C

Once the first request fails, the retry policy titled retryForever is applied:

  1. INFO[0005] Error processing operation endpoint[order-processor, order-processor:orders]. Retrying...

Retries will continue for each failed request indefinitely, in 5 second intervals.

  1. retryForever:
  2. policy: constant
  3. maxInterval: 5s
  4. maxRetries: -1

Once 5 consecutive retries have failed, the circuit breaker policy, simpleCB, is tripped and the breaker opens, halting all requests:

  1. INFO[0025] Circuit breaker "order-processor:orders" changed state from closed to open
  1. circuitBreakers:
  2. simpleCB:
  3. maxRequests: 1
  4. timeout: 5s
  5. trip: consecutiveFailures >= 5

After 5 seconds has surpassed, the circuit breaker will switch to a half-open state, allowing one request through to verify if the fault has been resolved. If the request continues to fail, the circuit will trip back to the open state.

  1. INFO[0030] Circuit breaker "order-processor:orders" changed state from open to half-open
  2. INFO[0030] Circuit breaker "order-processor:orders" changed state from half-open to open
  3. INFO[0030] Circuit breaker "order-processor:orders" changed state from open to half-open
  4. INFO[0030] Circuit breaker "order-processor:orders" changed state from half-open to open

This half-open/open behavior will continue for as long as the Redis container is stopped.

Step 6: Remove the fault

Once you restart the order-processor service, the application will recover seamlessly, picking up where it left off.

In the order-processor service terminal, restart the application:

  1. dapr run --app-port 6001 --app-id order-processor --resources-path ../../../resources/ --app-protocol http --dapr-http-port 3501 -- go run .

checkout service output:

  1. == APP == Order passed: {"orderId": 5}
  2. == APP == Order passed: {"orderId": 6}
  3. == APP == Order passed: {"orderId": 7}
  4. == APP == Order passed: {"orderId": 8}
  5. == APP == Order passed: {"orderId": 9}
  6. == APP == Order passed: {"orderId": 10}

order-processor service output:

  1. == APP == Order received: {"orderId": 5}
  2. == APP == Order received: {"orderId": 6}
  3. == APP == Order received: {"orderId": 7}
  4. == APP == Order received: {"orderId": 8}
  5. == APP == Order received: {"orderId": 9}
  6. == APP == Order received: {"orderId": 10}

Tell us what you think!

We’re continuously working to improve our Quickstart examples and value your feedback. Did you find this quickstart helpful? Do you have suggestions for improvement?

Join the discussion in our discord channel.

Next steps

Visit this link for more information about Dapr resiliency.

Explore Dapr tutorials >>

Last modified October 11, 2024: Fixed typo (#4389) (fe17926)