Async Task vs Task

Hi Friends,

In this section, thought to discuss one of the topics, which I come across too often and that is whether to do async task or simply keep as task?

Whenever, async-await gets loaded in the program, it also loads state machine which means eventually, its going to have some extra code. But that makes sense as it wraps error body as well in it. If you don’t wrap it around, then you will end up having tough time identifying or reproducing the issue as this will highlight error some where in program.cs rather than actual method.

Continue reading “Async Task vs Task” »

339 total views, 3 views today

How to make Microservices communication more resilient?

Hi Friends,

In this section, I thought to discuss about one potential issue, which one can easily overlook and when your service really becomes busy, you will get this “Socket Exhaustion” exception. One thing to keep in mind that distributed systems are prone to error. Therefore, its always good to anticipate it before and take precautionary measures.

Continue reading “How to make Microservices communication more resilient?” »

722 total views, 2 views today

Year 2020 in Review

Hi Friends,

This year has come to end, hence thought to share yearly review. First of all, Happy New Year to all. This year has, we have witnessed many things which never happened before and we hope that, it won’t come back again. Things are looking good at the moment, economy is coming back in track. Hopefully, we will come out of this pandemic phase very soon. Hence, I borrowed this HOPE-2021 calendar pic from Kiran Mazumdar Shaw.

Continue reading “Year 2020 in Review” »

349 total views, 1 views today

Kubernetes is dropping Docker, what it means?

Hi Friends,

In this section, thought to clear some doubts around Docker getting dropped from Kubernetes and whats the way forward now? Couple of days back Kubernetes announced this in their blog.

Source:- https://kubernetes.io/blog/2020/12/02/dont-panic-kubernetes-and-docker/

Continue reading “Kubernetes is dropping Docker, what it means?” »

799 total views, 4 views today

Getting Started with Clean Architecture using ASP.Net Core – Part 2

Hi Friends,

In this section, we are going to extend our last example from where we left. In the last section, what we have done, we have created Core layer. Now, let’s go ahead and implement Infrastructure Layer.

Source:- https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html

Continue reading “Getting Started with Clean Architecture using ASP.Net Core – Part 2” »

816 total views, 4 views today

Getting Started with Clean Architecture using ASP.Net Core – Part 1

Hi Friends,

In Today’s discussion, we will be discussing about clean architecture and how to get started with it. Clean Architecture belong to the Domain Driven Design family. Before that, let’s understand what was the problem with N-Layered Architecture.

Source:- https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html

Continue reading “Getting Started with Clean Architecture using ASP.Net Core – Part 1” »

2,714 total views, 22 views today

API Gateway using Ocelot

Hi Friends,

In this section, we are going to see how to build API gateway using Ocelot. Ocelot is one of the most popular libraries for API Gateways used in conjunction with Microservices project. In the last article, we have seen how to handle the traffic using envoy gateway. In this case, we are going to extend the same example using Ocelot and see how it works underneath. As we know already, Gateways are very useful and it helps with following features seamlessly.

  • Routing
  • Authentication
  • Authorization
  • Rate Limiting
  • Caching
  • Load Balancing
  • Circuit Breaker
  • Request Aggregation

Continue reading “API Gateway using Ocelot” »

2,694 total views, 13 views today

ASP.Net Core Authentication using JWT aka JSON Web Token

Hi Friends,

In this section, we are going to discuss very basic and important thing Authentication and that is via JWT aka JSON Web Token. Basically, after first successful login, we will be creating JSON token with some expiry time and this token will be sent as part of Header with every consecutive request afterwards. This makes sure that users won’t need to supply username and password for every secured resource access.

Continue reading “ASP.Net Core Authentication using JWT aka JSON Web Token” »

1,001 total views, 3 views today