How to create a resilient Web API using dotnet and Polly library

Polly is a useful dotnet library to make a web service call resilient by introducing retry, circuit breaker and fallback policy with ease. It is common to add retry logic when a web service call is failed. However, integrating retry, circuit breaker and fallback logic can be tricky. Polly makes it easy.   The retry… Continue reading How to create a resilient Web API using dotnet and Polly library

A DotNet developer’s note on Technology Radar V28

As a new Technology Radar release with a bunch of interesting techs, a few drew my attention. Techniques Applying product management to internal platforms: product mindset includes a roadmap, value to biz, and consumer experience enhancement. CI/CD infrastructure as a service: Our team has been using Jenkins hosted on-prem and started moving to Azure DevOps.… Continue reading A DotNet developer’s note on Technology Radar V28

How to manage shared library in c# project

Best article I have ever seen so far regarding this topic. https://www.devtrends.co.uk/blog/creating-your-first-shared-library-in-.net-core

Published
Categorised as C#

EF Core 7 deadly sin

Load testing tool Bombardier https://github.com/codesenberg/bombardier   EF Core 7 deadly sin Get only the rows that you need Casting IQueryable -> IEnumerable use .Count() from IQueryable rather than IEnumerable, which will query all data and parsing all. Not using AsNoTracking Can be faster 4x times. Explicit joins Select and map to the object directly rather… Continue reading EF Core 7 deadly sin