Hangfire
Polly
Our great sponsors
Hangfire | Polly | |
---|---|---|
61 | 52 | |
8,938 | 12,900 | |
1.4% | 1.4% | |
9.4 | 9.8 | |
7 days ago | 1 day ago | |
C# | C# | |
GNU General Public License v3.0 or later | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Hangfire
-
Deno Cron
Unpopular opinion incoming... What I see is yet another way that the backend JS world is finally achieving something .NET had years ago[0].
Node/Deno/Bun/etc. + npm sounds super straightforward at first glance (and it is at first). But I've thought for years that it's far easier to be productive as an organization on .NET in Visual Studio, since it's simpler to design, deliver, and maintain infrastructure.
-
What can I use as a simple message bus with persistence in .NET?
Its hard to tell what tool would be a best fit without more information, but I would suggest looking at Hangfire for background job processing: https://www.hangfire.io/
-
Nightclub Website
Hangfire - for Scheduled Jobs like setting an Event to "inactive" after the party took place
- How do you run adhoc scripts on an ASP.Net 6 project
- How do I get a library to do background work?
-
.NET Timer
For Hangfire, you can check out their GitHub repo here: https://github.com/HangfireIO/Hangfire. They also have detailed documentation available on their website: https://www.hangfire.io/.
-
A .NET task batching and management library. After writing this 3 times at previous jobs, I propose an Open-Source library!
https://www.hangfire.io/ ?
Have you looked at hangfire?
how does this differ from something like https://www.hangfire.io/?
-
Seeking people for collaboration on open source projects I started. Also open to ideas. Preferably long-term. I can help you learn and you can help me with other things, such as coding, UI and more. Beginner friendly. Safe environment.
That aside, I know it looks like/is another case of reinventing the wheel. However, I like that approach sometimes, for some things. For me it was primarily about learning, having some fun and experimenting with different things. The project is also dead simple to be honest, basically a few endpoints that check credentials, return tokens and that's about it. The next project I was thinking of was a job runner, for which I know we have alternatives such as https://www.hangfire.io/, but I find solving that problem also challenging and fun. My strategy usually is start small, then grow if needed.
Polly
-
Http calls on mobile, what is the preferred way / best practice
Another question that rises is, would it be better to use some HttpClient package to handle the requests, like Refit in combination with Polly. But then again, it seems Refit also uses the HttpClient factory, which was a bad thing according to the previous?
-
[Question] HttpClient does not recover from error
D'Oh! Sorry, not PolySharp. I meant Polly. Too many similarly-named libraries!
-
What your hidden nuget gems ?
It's in no way hidden. But I use Polly all the time.
-
Message Queueing
Depending if the sender or the reciever is down, you can also try Polly http://www.thepollyproject.org/
-
Ask HN: What's the best source code you've read?
I don't know if it is the most elegant, or concise, or l33t, but I am in love with Polly https://github.com/App-vNext/Polly
-
Implementing resilient applications with API Gateway (Circuit breaker)
One solution can be implementing the circuit breaker pattern for each microservice by using proven .NET libraries like Polly which is a very time-consuming and sometimes even challenging task.
-
Any recommendation of download library?
it doesn't even throw when exception occurred, just a line of "Debug.Break", which means I can't use it with Polly
- ASP.NET 6 - Rate limit injected SMS service
-
Creating and Using HTTP Client SDKs in .NET 6
💡 Resiliency patterns - retry, cache, fallback, etc.: Very often, in distrusted systems world you need to ensure high availability by incorporating some resilience policies. Luckily, we have a built-in solution to build and define policies in .NET - Polly. There is out-of-the-box integration with IHttpClientFactory provided by Polly. This uses a convenience method, IHttpClientBuilder.AddTransientHttpErrorPolicy. It configures a policy to handle errors typical of HTTP calls: HttpRequestException, HTTP 5XX status codes (server errors), HTTP 408 status code (request timeout).
-
Accurate
One of my favorite is Polly which provides a simple Circuit Breaker implementation plus other resiliency tools.
What are some alternatives?
QuartzNet - Quartz Enterprise Scheduler .NET
RabbitMQ.NET - RabbitMQ .NET client for .NET Standard 2.0+ and .NET 4.6.2+
MassTransit - Distributed Application Framework for .NET
Coravel - Near-zero config .NET library that makes advanced application features like Task Scheduling, Caching, Queuing, Event Broadcasting, and more a breeze!
Kafka Client
MediatR - Simple, unambitious mediator implementation in .NET
FluentScheduler - Automated job scheduler with fluent interface for the .NET platform.
NServiceBus - Build, version, and monitor better microservices with the most powerful service platform for .NET
CAP - Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern
NetMQ - A 100% native C# implementation of ZeroMQ for .NET
FluentValidation - A popular .NET validation library for building strongly-typed validation rules.
Redis - Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps.