Resiliency, also known as self-repair, is a Windows Installer concept triggering automatic repair of broken installations.
Questions tagged [resiliency]
60 questions
16
votes
1 answer
What is the difference between AddTransientHttpErrorPolicy and AddPolicyHandler?
I want to apply resiliency strategy using Polly.
I am using HttpClientFactory from ASP.NET Core 2.1. I found some guide on Polly GitHub wiki. There are two ways of such policy configuration - using AddTransientHttpErrorPolicy and AddPolicyHandler,…

Dawid
- 763
- 1
- 8
- 17
13
votes
1 answer
How can I determine what causes repeated Windows Installer self-repair?
How can I log only the changes causing a MSI file made by Installshield 2008 to reinstall via "self-repair"?
What is the reason behind self-repair?
How do I disable self-repairing of MSI using Installshield 2008?

Haggag87
- 131
- 1
- 1
- 4
10
votes
3 answers
ReactJS Application - resiliency VS failing fast
I'm in the middle of the development for a React application and this is the approach I used for my components: I validate the props that I expect to be received using the PropTypes validation but I still assign default values in order to avoid that…

Gabe
- 5,997
- 5
- 46
- 92
9
votes
3 answers
Why does the MSI installer reconfigure if I delete a file?
I have created an MSI installer package in Visual Studio 2008. The problem is that after install, if I delete ANY of the installed files. This is not my intended behavior for my installer package. My File installation properties are:
PackageAs…

JJ3
- 133
- 1
- 5
8
votes
1 answer
Polly Retry All Exceptions Except Specific Condition
Is there a way in Polly to retry all exceptions apart from those which are specified.. for example:
var p = Policy
.Handle(e => !(e.NativeErrorCode == 1))
.Or()
.RetryAsync();
Here i have picked a…

m1nkeh
- 1,337
- 23
- 45
7
votes
1 answer
How to make Dapper resilient for SqlAzure?
I recently found out Entity Framework has a very easy way to make connections resilient in SQL Azure. Is there a recommended way to accomplish the same in Dapper?

Jakob Lithner
- 4,225
- 6
- 38
- 59
6
votes
1 answer
Alternative to Hystrix for Request Collapsing
as Netflix put Hystrix officially into maintenance mode (https://github.com/Netflix/Hystrix#hystrix-status), I started to look for alternatives. There are nice libraries like resilience4j when it comes to patterns like Circuit Breakers, Bulkheads,…

Benny
- 1,435
- 1
- 15
- 33
5
votes
1 answer
How to decide what exceptions are worth retrying when reading and writing to MongoDB (C# driver)?
By looking at this official documentation it seems that there are basically three types of errors thrown by the MongoDB C# driver:
errors thrown when the driver is not able to properly select or connect to a Server to issue the query against. These…

Enrico Massone
- 6,464
- 1
- 28
- 56
4
votes
1 answer
Multiple service instances using Hangfire (shared tasks/objects), is it possible?
I need to run multiple instances of the same service, with the same database, for redundancy reason.
I found some question about "Hangfire multiple instances" but for a differenct purpose then mine: usually about running multiple instances for…

Alex 75
- 2,798
- 1
- 31
- 48
4
votes
1 answer
Intended granularity of Hystrix commands?
I just read the Hystrix docs/wiki and still am missing something at a fundamental level: what is the intended level of granularity for a HystrixCommand impl?
For instance, say I have a DAO object that handles CRUD operations for some DB entity, say,…

smeeb
- 27,777
- 57
- 250
- 447
3
votes
1 answer
How to implement database resiliency while having a scoped Dbcontext in EF Core?
I have a simple command as per the CQRS pattern as follows:
public sealed class EditPersonalInfoCommandHandler : ICommandHandler {
private readonly AppDbContext _context;
public…

Navjot Singh
- 678
- 7
- 18
3
votes
7 answers
How to ignore all potential exceptions in Python?
I'm writing a custom backup script in Python. Sometimes the mkdir function or the print function or whatever function are failing for diverse reasons. Such exceptions stop the whole script and halt the backup in the middle, which is very…

Andy
- 136
- 2
- 7
3
votes
2 answers
Mitigating Hadoop's Achilles tendons
I just gave this Hadoop tuorial a read which state that Hadoop has an Achilles' tendon (a single point of failure) in JobTracker:
The JobTracker is a single point of failure for the Hadoop MapReduce service which means if JobTracker goes down, all…

smeeb
- 27,777
- 57
- 250
- 447
2
votes
1 answer
Send parameters to fallback Action in Polly
I am trying to execute a request and return a response with 2 executers, using the Polly library with the Fallback policy. Here is my code so far:
private IExecuter primary;
private IExecuter secondary;
private readonly Policy _policy;
public…

Buda Gavril
- 21,409
- 40
- 127
- 196
2
votes
2 answers
Polly fallback action did not throw the specified exception. What happened?
Given this code that tries to call AuthenticationManager.Authenticate() for 10 times, and then throws a CustomException after 10 failed attempts:
string res = Policy
.Handle() // Handles any exception
.OrResult(result =>…

terrible-coder
- 323
- 2
- 9
- 18