Creating .Net Core Microservices Using Clean Architecture using .NET Core 8 & Angular 18

rahul sahay
7 min readJul 30, 2024

--

Complete guide to building enterprise edition application end-to-end.

Free Link: Read the article free here.

Hi Friends,

Microservices are a design pattern in which applications are composed of independent modules that communicate with each other within well defined boundaries. This makes it easier to develop, test, and deploy isolated parts of your application.

Welcome to the “Creating .Net Core Microservices using Clean Architecture” the ultimate course designed for developers eager to master the art of building scalable, efficient, and robust Microservices utilizing the .Net Core platform, in conjunction with an array of essential tools and technologies. This comprehensive learning journey encompasses Docker, Kubernetes, Azure AD, Identity Server 4, Rabbit MQ, Angular 15, GRPC, Istio Service Mesh, SQL Server, MongoDB, PostgreSQL, Redis, Ocelot, Nginx, Azure, Helm Charts, and Auto Scaling.

Github: https://github.com/rahulsahay19/dot-net-core-microservices-8

Throughout this extensive 51+ hour course, you’ll immerse yourself in practical exercises, gaining invaluable experience in deploying and overseeing your Microservices using Docker and Kubernetes. Discover how to seamlessly incorporate Azure Ad/Identity Server 4 for fortified authentication and authorization, harness Rabbit MQ for streamlined messaging, and leverage GRPC to enable efficient communication between your Microservices.

Furthermore, delve into the intricacies of Istio Service Mesh to adeptly manage Microservices traffic. Uncover the secrets of configuring and optimizing SQL Server, MongoDB, PostGreSQL, and Redis to impeccably suit your Microservices architecture. Additionally, you’ll wield the power of API Gateway/Ocelot and Nginx to oversee your Microservices API gateway while orchestrating deployments to Azure with precision using Helm Charts.

Embark on your journey towards Microservices mastery with our comprehensive course, carefully crafted to equip you with the skills and knowledge you need to excel in this dynamic field.

Below, I’ve provided the course links. The first course is free and covers the fundamentals of clean architecture, helping you get started with it. Once you’ve grasped these concepts, you can move on to the Microservices course. It’s worth noting that this course is also included in Udemy for Business, so if you have access to Udemy for Business, you can enroll there directly.

Course Links:

Github: https://github.com/rahulsahay19/dot-net-core-microservices-8

Introduction

Within this section, you’ll acquire the expertise to construct a robust Ecommerce application using a comprehensive toolkit, including asp.net core, Docker, Kubernetes, Helm Charts, Service Mesh, and Angular 15. Here are the essential insights you’ll gain from this project:

1. Mastery of Building a Full-Fledged Ecommerce App: You’ll gain the proficiency to create a complete and functional Ecommerce application, equipping you with valuable skills for real-world projects.

2. Reference for Professional Enterprise Projects: This project serves as an invaluable reference for individuals aiming to learn and develop professional-grade enterprise solutions. It offers a wealth of knowledge and practical examples.

3. Emphasis on Implementation Excellence: Not only will you discover how to implement all layers of the application effectively, but you’ll also adhere to industry best practices throughout the project. This ensures that your work aligns with the highest standards observed in the field.

Here, you will learn variety of technologies like

  • Clean Architecture
  • .Net Core
  • Docker
  • Kubernetes
  • Azure
  • Microservices
  • Service Mesh
  • Angular
  • ELK Stack
  • Pub/Sub Pattern
  • GRPC
  • Repository Pattern
  • Unit of Work Pattern
  • Specification Pattern
  • Helm Charts

How Project is structured

Below, I have Pasted the high level glimpse project structure.

Client Structure goes like

Deployments

Warning and Disclaimer

Every effort applied to make this project complete and accurate to the topic, but no warranty is implied. Any implementation in this project are MY OWN and also borrowed from best practices segment. ALL content presented AS-IS, for learning purposes only. Also this course will go keep updated as and when new and stable framework gets released.

Installation

Follow these steps to get your development environment set up: (Before Run Start the Docker Desktop)

  1. Clone the repository
  2. Once Docker for Desktop is installed, go to the Settings > Advanced option, from the Docker icon in the system tray, to configure the minimum amount of memory and CPU like so:
  • Memory: 7 GB
  • CPU: 5

At the root directory which include docker-compose.yml files, run below command:

docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d

Project Overview

Technologies Used

Workflow

Here is the Application workflow and views of the technology used in this journey.

Pub/Sub Pattern

  • In the above diagram as we can see before checkout event created basket gets deleted from Redis database.

Container Management via Portainer

Elastic Search

ACR Workloads

AKS Workloads

Pods Overview Kube Lens

Deployments

Replicasets

ConfigMaps

Secrets

HPA (Horizontal Pods AutoScaler)

Istio enabled

kubectl apply -f istio-init.yaml kubectl apply -f istio-minikube.yaml kubectl apply -f kiali-secret.yaml

Istio via Kubelens

Kiali (Service Mesh Management for Istio)

We can port forward for the same using lens

This will bring Kiali UI like

Kiali catalog Workload

Kiali Service Overview

Graphana Visualization

Enroll Now:- https://bit.ly/clean-architecture-net

Thanks for joining me.

Happy Learning

Insta Handle:- https://www.instagram.com/rahulsahay20/

🎉 Calling all code enthusiasts! 🚀 Whether you’re a .NET ninja, an Angular ace, a Docker devotee, a Kubernetes king, an Azure adventurer, a React revolutionary, or a Java juggernaut, we’ve got something epic brewing! ☕️👨‍💻👩‍💻

🔥 Our digital dojo is launching an exclusive series tailored for the tech-obsessed geek in you! 🌐 Get ready to dive deep into the latest frameworks, platforms, and tools that are powering today’s tech landscape. 🛠️💻

Stay tuned for mind-bending tutorials, electrifying projects, and live Q&As with industry pros that’ll turbocharge your skills to the stratosphere! 🌟🛰️

📢 Whether you’re looking to refine your mastery, pivot your career, or just geek out with fellow aficionados, our Insta-hub is your go-to gateway for all things tech! 🧠💡

👇 Smash that Follow button, turn on those notifications, and gear up for a ride to the cutting edge of coding! 🎢🔩 #TechGeeksUnite #CodingIsLife #DevCommunity #TechTalks #LearnCode #GeekSquad

🔗 Bookmark our page, tag your tech buddies, and let’s get this digital party started! 🎊👾🤖💥

Insta Handle:- https://www.instagram.com/rahulsahay20/

Stackademic 🎓

Thank you for reading until the end. Before you go:

--

--

rahul sahay
rahul sahay

Written by rahul sahay

🌟 Unleashing the Power of Languages! 🚀 Expert polyglot developer, author, and Course creator on a mission to transform coding into an art. 🎨 Join me in

Responses (1)