Skip to main content

Former CTO, consultant, author, editor, and industry/web standards expert that still enjoys writing code.
Opinions are mine alone.

twitter.com/jevdemon

github.com/jevdemon

blogs.msdn.microsoft.com/jevdemon/

John Evdemon

John Evdemon

Great post. I highly doubt more will be using Quic than TCP in 5yrs.
https://calendar.perfplanet.com/2018/quic-and-http-3-too-big-to-fail

John Evdemon

John Evdemon

YAGNI since most data for any page is ads and trackers https://arstechnica.com/gadgets/2018/11/the-next-version-of-http-wont-be-using-tcp

John Evdemon

Obvious risk mitigation because Amazon's current HQ is located in business unfriendly Seattle
https://www.cnet.com/news/amazon-announces-nyc-and-northern-virginia-as-hq2-winners/

John Evdemon

Worth reading given today's "HTTP 3" announcement https://blog.cloudflare.com/the-road-to-quic

John Evdemon

I'm not sure how AT&T plans to "kick pirates off the Internet" given the widespread use of VPNs and proxies. https://www.techdirt.com/articles/20181107/07115441001/att-ignores-numerous-pitfalls-begins-kicking-...

John Evdemon

Using Polly Context

1 min read

Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner.  The biggest challenge I've found with Polly is getting visibilty into the number of times you had to retry.  Luckily Polly allows us to pass in a Context (Dictionary) that we can populate with retry info. We can access the Context after our retry policy has completed to determine how many times we retried.

I've created a simple console app illustrating how you can use Polly Context to determine how many times your retry polcy was executed.

You can set up a Fiddler autoresponder rule to simulate transient service errors as follows:

 

 

John Evdemon

A quick demo of CallContext across child threads and app domains

1 min read

Here is a simple console app showing how CallContext can flow across both child threads and app domains. 

 

John Evdemon

"A man is likely to mind his own business when it is worth minding. When it is not, he takes his mind off his own meaningless affairs by minding other people's business." - Eric Hoffer