STRUCTURED COURSE

Distributed ASP.NET Core Applications with Microservices and Aspire

Learn how to build distributed microservice applications with ASP.NET Core and use Aspire to manage services, databases, caches, message queues, containers, and dependencies from a unified application model.

20 lessons 1215 dk C# / .NET 10 / ASP.NET Core Web API / Aspire / Aspire AppHost / Entity Framework Core / SQL Server / Redis / RabbitMQ / Docker / OpenTelemetry / Health Checks / Service Discovery
Distributed ASP.NET Core Applications with Microservices and Aspire

In this course series, we will build a microservice-based distributed application using ASP.NET Core. We will cover service boundaries, independent APIs, service-to-service communication, data ownership, resilience, messaging, caching, and observability. Using Aspire, we will create an AppHost, define services and containers, connect dependencies, configure service discovery, health checks, environments, logging, tracing, and metrics through a unified application model. The goal is not simply to split an application into multiple services, but to design distributed systems that are maintainable, observable, and manageable. Aspire provides a code-first model for composing and observing distributed applications and their dependencies.

What you will learn

Understand microservice architecture, define service boundaries, build independent services, manage service communication, create Aspire AppHosts, define service and container resources, use service discovery, configure health checks and observability, implement distributed tracing, integrate caches and message queues, and run and monitor distributed applications from one environment.
CURRICULUM

Course lessons

20 lessons
  1. 11. Project Vision and Microservice Architecture FundamentalsDefine the sample project’s business domains and candidate services, compare monolithic and microservice approaches, and create the initial .NET 10 and Aspire solution structure.50 dk
  2. 22. Service Boundaries, Data Ownership, and Solution StructureDesign the responsibilities, data ownership, and Aspire-based independent solution structure for Catalog, Order, and Inventory services.45 dk
  3. 33. Building the Catalog Service with ASP.NET Core Web APIIn this lesson, we build the Catalog service with .NET 10 Web API, Entity Framework Core, and SQL Server, implementing entities, migrations, DTOs, validation, and CRUD endpoints.90 dk
  4. 44. Independent Data Layers for the Order and Inventory ServicesBuild independent data models and SQL Server databases for the Order and Inventory services while applying data ownership, transaction boundaries, EF Core migrations, and Aspire resource references.75 dk
  5. 55. Creating the Application Model with an Aspire AppHostIn this lesson, we will compose the Catalog, Order, and Inventory APIs under an Aspire AppHost and configure SQL Server, databases, connections, and the Aspire Dashboard.75 dk
  6. 66. Managing Resources and ReferencesLearn how to define project, container, and executable resources in an Aspire AppHost and connect services through references, dependencies, and configuration propagation.45 dk
  7. 77. Service-to-Service HTTP Communication with Service DiscoveryLearn how the Order service communicates with Catalog and Inventory through Aspire service discovery, HttpClientFactory, and typed clients without hard-coded URLs.50 dk
  8. 88. API Contracts, Error Handling, and IdempotencyDesign reliable microservice APIs with DTOs, Problem Details, global exception handling, correlation information, and idempotency keys.40 dk
  9. 99. Health Checks and Health Monitoring with the Aspire DashboardIn this lesson, you will monitor microservice liveness and readiness, check SQL Server, Redis, and RabbitMQ dependencies, and interpret the results in the Aspire Dashboard.45 dk
  10. 1010. Cache-Aside and Distributed Caching with RedisAdd Redis to the Catalog service through Aspire and implement cache-aside, cache-key design, expiration, invalidation, and graceful behavior when Redis is unavailable.50 dk
  11. 1111. Asynchronous Messaging with RabbitMQAdd RabbitMQ to the Aspire AppHost and implement publisher, consumer, exchange, queue, routing-key, and message-contract patterns with OrderCreated and InventoryReserved events.75 dk
  12. 1212. Reliable Messaging, Outbox, and Retry ScenariosThis lesson explores message loss, duplicate delivery, consumer failures, and resilience in RabbitMQ-based systems. You will add an Outbox Pattern to the Order service and implement retry, dead-letter queue, and idempotent consumer designs with Aspire.75 dk
  13. 1313. Resilience: Timeout, Retry, Circuit Breaker, and FallbackIn this lesson, we add a .NET resilience pipeline to HTTP calls between Catalog and Inventory services and apply timeout, retry, circuit breaker, and fallback strategies.45 dk
  14. 1414. Configuration, Environment Management, and SecretsLearn how to organize configuration for development, test, and production, provide values through the Aspire AppHost, and manage secrets and connection strings securely.45 dk
  15. 1515. Logging, Correlation, and Distributed TracingLearn how to combine structured logging, correlation IDs, OpenTelemetry traces, and RabbitMQ propagation while investigating workflows in the Aspire Dashboard.90 dk
  16. 1616. Metrics, Performance Analysis, and ObservabilityCollect ASP.NET Core, .NET runtime, and application metrics with OpenTelemetry and the Aspire Dashboard to analyze latency, errors, cache behavior, and queue performance.50 dk
  17. 1717. Docker Container Resources and Local DeploymentLearn how to create Dockerfiles for ASP.NET Core services, define container resources in an Aspire AppHost, and validate a container-based local deployment.55 dk
  18. 1818. Integration Testing and Distributed Failure ScenariosLearn to write integration tests with WebApplicationFactory and Aspire, use real infrastructure containers, simulate distributed failures, and evaluate results through logs and traces.90 dk
  19. 1919. Security, API Protection, and Service-to-Service TrustApply JWT authentication, policy-based authorization, public and internal endpoint boundaries, service-to-service tokens, and secure secret management in ASP.NET Core microservices.50 dk
  20. 2020. End-to-End Order Flow and Production ReadinessConnect Catalog, Order, and Inventory with SQL Server, Redis, and RabbitMQ; validate successful and failed order paths in the Dashboard and complete a production-readiness review.75 dk
Start the first lesson