Sign in

Ashish Patel

Comparisons: ALB vs NLB in AWS — Application load balancer vs Network load balancer.

Application load balancer and Network load balancer

ALB — Layer 7 (HTTP/HTTPS traffic), Flexible
NLB — Layer 4 (TLS/TCP/UDP traffic), Static IPs
CLB — Avoid, legacy

Both Application Load Balancer and Network Load Balancer are designed from the ground up for the modern paradigm of dynamic port configurations as commonly seen in containerized deployments. …

Getting started — How to use AutoMapper in .NET and .NET Core?

AutoMapper is a simple little library that helps to transform one object type to another. It is a convention-based object-to-object mapper that requires very little configuration.

AutoMapper is an object-object mapper. Object-object mapping works by transforming an input object of one type into an output object of a different type. What makes AutoMapper interesting is that it provides some interesting conventions to take the dirty work out of figuring out how to map type A to type B.

Most popular .NET Libraries every developer should know.

Configure AutoMapper in ASP.NET Core application

1. NuGet…

What is Terraform Workspace — Introduction to Terraform Workspace!

Terraform — Workspaces

Workspaces in Terraform are simply independently managed state files. A workspace contains everything that Terraform needs to manage a given collection of infrastructure, and separate Workspaces function like completely separate working directories. We can manage multiple environments with Workspaces.

What is Terraform Workspace?

If we use the local backend for storing Terraform state, Terraform creates a file called terraform.tfstate to store the state of the applied configuration. However, in scenarios where you want to use the same configuration for different contexts, separate states might be necessary with same configuration.

Workspaces allows you to separate your…

Introduction to AWS Transit Gateway — Getting started guide.

AWS Transit Gateway

AWS Transit Gateway is a fully managed service that connects VPCs and On-Premises networks through a central hub without relying on numerous point-to-point connections or Transit VPC.

AWS — Site-to-Site VPN Connections Overview

  • Transit Gateway is a Regional resource and can connect thousands of VPCs within the same AWS Region.
  • You can create a Site-to-Site VPN connection as an attachment on a Transit Gateway. You can modify the target gateway of a Site-to-Site VPN connection from a virtual private gateway to a transit gateway.
  • Transit gateway replace multiple Virtual private gateways…

Introduction to Azure Storage Data Redundancy Options.

Azure Storage Replication — Data Redundancy Options

Data availability is business-critical for most organizations. Data in Azure is replicated to ensure that it’s always available, even if a datacenter or region becomes inaccessible or a specific piece of hardware fails.

In Azure Storage, you have several options for replication. Each replication option provides a different level of redundancy and durability. The choice you make depends on the level of resilience you need.

Locally redundant storage (LRS)

Woo-hoo, I got the wonderful news from @Medium, a total surprise😲- I was one of the chosen too who got the $500💰 bonus, and it felt amazing💖!

Comparison — Azure SQL Database vs SQL Managed Instance (MI).

Azure SQL Database vs Azure SQL Managed Instance (SQL MI)

SQL Managed Instance (SQL MI) provides native Virtual Network (VNet) integration while Azure SQL Database enables restricted Virtual Network (VNet) access using VNet Endpoints.

SQL MI helps bridge the gap between Azure SQL Database and On-premises SQL Server due to being built on an instance scoped configuration model.

Both offers Database-as-a-service (DBaaS-PaaS). Azure SQL Database and SQL Managed Instance share a common code base with the latest stable version of SQL Server. Most of the standard SQL language, query processing, and database management features are identical.

SQL Database: The majority…

Introduction to AWS WAF — What is Amazon WAF?


AWS WAF is a managed web application firewall service that helps you protect your web applications at the application layer from common web exploits that could affect application availability, compromise security, and/or consume excessive resources.
It lets you control access to your content by configuring rules that allow, block or monitor (count) web requests based on web security rules that you specify.

WAF can be natively applied on

  • CloudFront
  • Application Load Balancer
  • API Gateway
  • AppSync


You use a web access control list (ACL) to protect a set of AWS resources.

  • You create a Web ACL and define…

What is Terraform Remote State — Introduction to Terraform Remote Storage!

Terraform — Remote States

With remote state, Terraform writes the state data to a remote data store, which can be shared between all team members.

Why you need Terraform Remote States?

By default, Terraform stores its state in the file terraform.tfstate in local filesystem. This works well for personal projects, but working with Terraform in a team, use of a local file makes Terraform usage complicated because each user must make sure they always have the latest state data before running Terraform and make sure that nobody else runs Terraform at the same time.

The best way to do…

How to use Autofac for dependency injection in .NET and .NET Core?

Autofac in .NET

Autofac is an IoC container for .NET. It manages the dependencies between classes so that applications stay easy to change as they grow in size and complexity. Autofac is the most popular DI/IoC container for ASP.NET and it works with .NET Core flawlessly.

.NET Core gives you a built-in dependency injection framework. Though the default DI may offer enough functionality, there is a certain limitations like resolving a service with some associated Metadata, Named/Keyed services, Aggregate Services, Multi-tenant support, lazy instantiation, and much more. …

Ashish Patel

Cloud Architect • 1x AWS Certified • 4x Azure Certified • 2x OCI Certified • MCP • .NET • GCP • Docker • Kubernetes • Terraform (

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store