Quantcast
Channel: Active questions tagged retry-logic - Stack Overflow
Viewing all articles
Browse latest Browse all 950

Retry Policy to Not Trigger For POST Requests

$
0
0

Is it possible to configure the resiliency policy in Dapr to not perform a retry when the HTTP request is POST? The Polly library in .NET, for example, allows fine-grained configuration of retry and circuit breaker policies. Is it possible to do the same in Dapr?

apiVersion: dapr.io/v1alpha1kind: Resiliencymetadata:  name: resiliency-policyscopes:  - shoppingbasketspec:  policies:    retries:      operation:        policy: constant        duration: 5s        maxRetries: 3    circuitBreakers:      serviceCB:        maxRequests: 1        timeout: 30s        trip: consecutiveFailures >= 3  targets:    apps:      discount:        retry: operation        circuitBreaker: serviceCB

Viewing all articles
Browse latest Browse all 950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>