The Brand New Way to do Fault Handling in Polly V8

The Brand New Way to do Fault Handling in Polly V8

Milan Jovanović

1 год назад

19,762 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@sanampakuwal
@sanampakuwal - 10.10.2023 14:21

The Performance Improvement is literally impressive (mainly 0 allocation)

Ответить
@alexmadnix
@alexmadnix - 10.10.2023 14:59

Poly is a library for handling resilience and transient errors that allows developers to use policies like retry, circuit (execution) blocking, timeout, bulkhead isolation, and fallback in a thread-safe manner in a Fluent style.

Retrying and timeout handling are patterns that can be used frequently in source code. Other restore-related features provided by poly include

Retry 7 / Retry: Allows you to configure automatic retries.
Circuit-breaker 7 / Circuit-breaker, circuit (execution) blocking: Block execution for a certain amount of time if an error exceeds a threshold.
Timeout 1 / Timeout : If a timeout occurs, we will not wait any longer.
Bulkhead Isolation: Restricts controlled operations to a fixed-size resource pool so they don't impact other areas.
Cache 1 / Cache: Use cache to automatically store and make responses available.
Fallback / Fallback: Returns a fallback value or executes the action on failure.
PolicyWrap 1: Allows you to flexibly combine the above policies.
Poly is powerful and stable enough that you can try it out via the quickstart link above and start applying it to your code right away.

This library has been featured on dotnetdev in the past, but it's so useful that I'm reintroducing it in the .NET Foundation Project Introduction.

Ответить
@מתןשולמן
@מתןשולמן - 10.10.2023 19:14

great video, Milan. Your explanations are always top-notch. Thank you and keep up the good work!

Ответить
@baranacikgoz
@baranacikgoz - 10.10.2023 19:31

Impressive video.

Ответить
@squadwuschel
@squadwuschel - 10.10.2023 21:07

How about unit Testing an Mocking the new Poly plicies in your code?

Ответить
@okcharles7
@okcharles7 - 11.10.2023 03:23

As I was introduced to this kind of technique for the first time by this video, I just wonder what is the performance benefit over try-catch.

Ответить
@exeC13
@exeC13 - 11.10.2023 20:58

Using magic strings is always something that worries me.
"How many refs does your di-pipeline-provider have / is it used at all?". [Ctrl]+[Shift]+[F] to the rescue 😖
"Great, no compile errors" ... Runtime steps in and alerts you about a typo in your magic string 🎉

Ответить
@vikas4483
@vikas4483 - 13.10.2023 04:08

Could you please make a video on best practices with sample examples on exception handling in mvc core applications

Ответить
@techpc5453
@techpc5453 - 17.10.2023 18:47

Ответить
@claudiovalerio7253
@claudiovalerio7253 - 17.10.2023 21:43

Is it just me or the new builder stuff seems a step back?
I mean, it probably would benefit some complex policy composition, but for simpler policies seems to be an awful lot of additional code needed to have the same result.
Performance improvements are impressive, though...

Ответить
@FluffySpaceBear
@FluffySpaceBear - 25.10.2023 06:11

Way to complicated

Ответить
@richardaubin1951
@richardaubin1951 - 25.10.2023 20:29

I've been playing around with this new version for a few hours now, and it's much easier to grasp then the previous version. Could you have a go at a video on the Dynamic Reload functionality? I think it would be good to see that in action for concurrent rate limit, retry and circuit breaker options.

Ответить
@aakashamatya3580
@aakashamatya3580 - 04.11.2023 02:49

The syntax has become too verbose.

Ответить
@antondoit
@antondoit - 16.01.2024 14:36

Great

Ответить
@xxXAsuraXxx
@xxXAsuraXxx - 02.02.2024 05:55

is AddResiliencePipeline scope or transient?

Ответить
@josefromspace
@josefromspace - 04.03.2024 01:30

Great video, thank you very much.

Ответить
@PKMuhammedSaeed
@PKMuhammedSaeed - 01.04.2024 16:57

Please make a video on latest
Microsoft.Extensions.Resilience library

Ответить
@pepega8572
@pepega8572 - 19.04.2024 00:26

Bro, your content is amazing. This is the second time I've needed to figure out how to use new library, and you help me with this. Thanks!) Keep doing this way)

Ответить
@tiagosantos2136
@tiagosantos2136 - 23.04.2024 22:25

In a clean architecture, where is the best place to put resilience strategies? in endpoints, applicatio layer, infra?

Ответить
@Sammy2100
@Sammy2100 - 15.05.2024 11:56

I am switching to this ASAP. Thanks for sharing.

Ответить
@yasirirfan5262
@yasirirfan5262 - 19.07.2024 12:09

excellent work.

Ответить
@santoshr4212
@santoshr4212 - 29.07.2024 00:10

over confusing. Static version was lot easier

Ответить
@kodindoyannick5328
@kodindoyannick5328 - 20.08.2024 00:38

Amazing content! Thanks Milan for your sharing.

Ответить