Comments (6)
In addition, you may be able to use the result of the Task.WhenAll instead of the task.Value.Result in the for each Health Service loop.
from healthchecks.
It is not necessary to be thread safe in this class if the Health Service do not add the results in different threads.
It became necessary when parallelizing the checks (the ConcurrentDictionary is used to register the results).
you may be able to use the result of the Task.WhenAll
If you'll notice, the loop needed to preserve both the key and the task, so you can't use the results of the Task.WhenAll, because it's waiting on the task inside the projection, but my loop needs both the key and the task.
from healthchecks.
The CompositeHealthCheckResult.Add ()
is used within a sequential for each.
The parallel flow is execute by the Task.WhenAll just before, which is awaited.
The key used in the loop is the name of the check. The HealthCheckResult
does not have this property, but it could be added.
from healthchecks.
I think you missed this: https://github.com/aspnet/HealthChecks/blob/93360725a04eb2270a537e41bb0b67094e39e997/src/Microsoft.Extensions.HealthChecks/Internal/UrlChecker.cs#L47
from healthchecks.
I totally missed it.
I am not sure that current implementation of http check is mature.
Http check will probably require authentication specific for each endpoint, and may be a custom validation extension point, because some endpoint returns 200 even in case of errors, or some endpoint returns 500 or 400 even if not in error.
Why allowing multicheck within this check and not in the others? If if is for a simpler registration, this can be done with a builder provider multiple checkers instead of a single multichecker.
When I look at the UrlChecker
implementation, is see a lot of similitude to the HealthCheckService
. I though that the check flow were managed by the service, but it is also managed by the checkers. You are what I mean?
from healthchecks.
The role of multi-checks within UrlChecker may change depending on whether we choose to support grouping (see #16). Generalized grouping would alleviate the need to UrlCheck vs. UrlChecks. /cc @glennc
from healthchecks.
Related Issues (20)
- SQL Connection resiliency by using SQL Connections with retries and exponential backoff HOT 1
- review items HOT 1
- Apply Service Unavailable globally if healthcheck fails HOT 4
- Implement a way to get the Health check services from Repository
- UrlChecker can exhaust sockets
- README.md - "This project is part of ASP.NET Core." HOT 9
- Create MySql HealthCheck
- HealthChecks functions should be passed a ServiceScope HOT 1
- Url/Check association HOT 6
- Health check for Table Storage fails when table name is not provided HOT 1
- Azure Queue Storage check fails if queue name is not provided
- Target .NET Standard instead of netcoreapp v1
- Is this dead? HOT 7
- When do you release the package? HOT 6
- Url checks should cancel themselves on timeout
- Circular health checks dependency loops
- Leaking CancellationTokenSource
- How to inject dependencies inside a custom checker? HOT 5
- Proxy
- WARNING: This experimental library is being deprecated in favor of the official Health Checks in ASP.NET Core 2.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from healthchecks.