Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

freeCodeCamp

.NET Microservices – Full Course for Beginners

via freeCodeCamp

Overview

This course covers the necessary skills to create, render and manage microservices with ASP.NET Core. Beginning with environment setup and VS Code customization, it demonstrates how to create the first microservice with the .NET CLI, add REST API and data transfer objects (DTOs). With the addition of database storage, the repository pattern and MongoDB, the microservice is further developed with creation of Docker containers. Experienced microservice developers will learn how to use Postman, NuGet, and Docker Compose for configuration and dependency injection. Covered topics include synchronous and asynchronous communication, as well as the message broker pattern, circuit breaker pattern, and Polly retries. Wrapping up the course, Node.js and CORS are included for initial front-end integration, setting the stage for production deployment.

Syllabus

) Module 1- Welcome to the course!.
) Development environment setup.
) Customizing VS Code for C# Development.
) What's wrong with the monolith?.
) What are microservices?.
) Module 2- Your first microservice.
) Creating a microservice via the .NET CLI.
) Introduction to the REST API and DTOs.
) Adding the DTOs.
) Adding the REST API operations.
) Handling invalid inputs.
) Module 3- Adding database storage.
) Introduction to the repository pattern and MongoDB.
) Implementing a MongoDB repository.
) Using the repository in the controller.
) Introduction to Docker.
) Trying out the REST API with a MongoDB container.
) Introduction to Dependency Injection and Configuration.
) Implementing dependency injection and configuration.
) Module 4- Preparing for the next microservice.
) Using Postman.
) Reusing common code via NuGet.
) Refactoring into a generic MongoDB repository.
) Refactoring MongoDB registration into extension methods.
) Moving generic code into a reusable NuGet package.
) Introduction to Docker Compose.
) Moving MongoDB to docker compose.
) Module 5- Synchronous inter-service communication.
) Creating the Inventory microservice.
) Introduction to synchronous communication.
) Implementing synchronous communication via IHttpClientFactory.
) Understanding timeouts and retries with exponential backoff.
) Implementing a timeout policy via Polly.
) Implementing retries with exponential backoff.
) Understanding the circuit breaker pattern.
) Implementing the circuit breaker pattern.
) Module 6- Asynchronous inter-service communication.
) Introduction to asynchronous communication.
) Defining the message contracts.
) Publishing messages via MassTransit.
) Standing up a RabbitMQ docker container.
) Refactoring MassTransit configuration into the reusable NuGet package.
) Consuming messages for eventual data consistency.
) Removing the inter-service synchronous communication.
) Module 7- Initial Frontend Integration.
) Installing Node.js.
) Getting started with the frontend.
) Understanding CORS.
) Adding the CORS middleware.
) Exploring the frontend to microservices communication.
) Next Steps.

Taught by

freeCodeCamp.org

Reviews

Start your review of .NET Microservices – Full Course for Beginners

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.