Skip to content

Hi, I'm Ankit

The story of my experiments with code

  • Twitter
  • Facebook
  • GitHub
  • LinkedIn
  • RSS
  • C#
  • .NET/.NET Core
  • Architecture & Design
  • Azure/ AWS
  • DevOps
  • Testing
  • Security
  • About

.NET Core

Distributed Lock Image

Distributed lock using PostgreSQL

by Ankit Vijay on February 28, 2021February 28, 2021

This post talks about why you may need a distributed lock and how you can create a distributed lock using PostgreSQL.

Read More
.NET, .NET 5, .NET Core, Architecture, Distributed Lock, Event Driven Architecture, Microservices, PostgreSQL
scheduler service feature image

A poor person’s scheduler using .NET Background service

by Ankit Vijay on February 22, 2021February 23, 2021

This post explains how can create a simple scheduler using .NET BackgroundService without using external libraries or serverless functions.

Read More
.NET, .NET 5, .NET Core, BackgroundService
json-api-dotnet-part-1

JSON:API for .NET developers – Part 1

by Ankit Vijay on January 9, 2021January 9, 2021

This post is the first of my new series on JSON:API for .NET developers. JSON:API has been around for a while but has not been widely known in the .NET world.

Read More
.NET, .NET Core, ASP.NET Core, JSON:API
passing baton

Passing correlation id across requests

by Ankit Vijay on November 24, 2020November 25, 2020

This post describes importance of passing a single correlation id across requests in microservices and how we an achieve this in .NET.

Read More
.NET, .NET Core, Architecture, ASP.NET Core, Corelation Id, Event Driven Architecture, Microservices

C# dynamic is evil, not your friend

by Ankit Vijay on September 11, 2020September 26, 2020

This post gives you another reason why to stay away from C# dynamic. It turns the call-site into a late-bound leading to runtime issues.

Read More
.NET, .NET Core, C#

Implementing inheritance with Enumeration class

by Ankit Vijay on August 8, 2020September 26, 2020

The traditional Enum types do not support inheritance. The Enumeration class helps us to get away from the limitation.

Read More
.NET, .NET Core, C#, Enum, Enumeration class, Inheritance

Generating client code with NSwag for Enumeration class

by Ankit Vijay on July 12, 2020September 26, 2020

This post describes how we can render an Enumeration class as an Enum type in client code with NSwag by implementing Swagger ISchemaFilter.

Read More
.NET, .NET Core, Architecture and Design, ASP.NET Core, ASP.NET Core 3.1, C#, Domain Driven Design, Enum, Enumeration class, Microservices, NSwag, NSwagStudio, Swagger

Enumeration class as query string parameter

by Ankit Vijay on June 14, 2020September 26, 2020

In this post, I have explained how you can use an Enumeration class as a query string parameter by creating a custom Model Binder.

Read More
.NET, .NET Core, Architecture and Design, ASP.NET Core, ASP.NET Core 3.1, C#, DDD, Enumeration class, Model Binder, Query String, Query String, Request Parameter

Enumeration class and JSON Serialization

by Ankit Vijay on June 1, 2020September 26, 2020

In this post, I will explain how we can serialize an Enumeration class using a custom JSON Converter for both System.Text.Json and Newtonsoft.Json.

Read More
.NET, .NET Core, C#, DDD, Domain Driven Design, Enumeration class, Json Serialization

Posts navigation

Older
Hi, I'm Ankit
Proudly powered by WordPress | Theme: Hammer by AudioTheme.