Skip to content

Commit

Permalink
Merge pull request #4263 from bibryam/resiliency
Browse files Browse the repository at this point in the history
Fixed component resiliency sample
  • Loading branch information
hhunter-ms committed Jul 18, 2024
2 parents b5c0754 + 4fe1ded commit 2777f93
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,27 +61,28 @@ Run the `order-processor` service alongside a Dapr sidecar. The Dapr sidecar the
metadata:
name: myresiliency
scopes:
- checkout
- order-processor

spec:
policies:
retries:
retryForever:
policy: constant
maxInterval: 5s
maxRetries: -1
duration: 5s
maxRetries: -1

circuitBreakers:
simpleCB:
maxRequests: 1
timeout: 5s
timeout: 5s
trip: consecutiveFailures >= 5

targets:
apps:
order-processor:
retry: retryForever
circuitBreaker: simpleCB
components:
statestore:
outbound:
retry: retryForever
circuitBreaker: simpleCB
```
Expand Down

0 comments on commit 2777f93

Please sign in to comment.