Unlock AI power-ups — upgrade and save 20%!
Use code STUBE20OFF during your first month after signup. Upgrade now →

By James Montemagno
Published Loading...
N/A views
N/A likes
Integrating .NET Aspire for Distributed Applications
📌 .NET Aspire enables building Cloud-native, observable, production-ready distributed applications by simplifying service discovery and telemetry integration.
⚙️ It can be added to existing .NET applications (Blazor, MVC, APIs) in just a few clicks to provide features like service discovery and enhanced debugging capabilities for multi-project setups.
➕ The integration automatically creates an `apphost` project (the glue) and a `service-defaults` project, which configures baseline settings like OpenTelemetry, health checks, and service discovery handlers.
Service Discovery and Observability Setup
📊 The `service-defaults` project pre-configures OpenTelemetry with built-in exporters for endpoints like Prometheus or Azure Monitor, and sets up standard resiliency handlers for HTTP clients.
🔧 Service discovery is automated; by referencing a project (e.g., `products`) in the `apphost`, projects can communicate using the service name (ID) instead of hardcoded URLs (e.g., using `product` instead of `localhost`).
📈 Running the application launches the .NET Aspire Dashboard, which provides real-time insights into running services, including endpoints, raw logs (structured logs encouraged), and metrics like active requests and connection durations, all driven by OpenTelemetry.
Adding Components and Orchestration
📦 Components like Redis or PostgreSQL can be added by installing the relevant .NET Aspire Package via NuGet to the `apphost` project and referencing it (e.g., `builder.AddRedis(...)`).
🐳 Aspire automatically handles pulling Docker container images (e.g., for Redis 7.2.4 or PostgreSQL) and configuring them to run locally for development purposes.
🔗 Dependencies are managed through the `WithReference` method, linking services together and ensuring the correct configurations (including environment variables for URLs and OpenTelemetry settings) are automatically propagated between services.
Extending with Custom Components
🔄 Developers can easily swap default component implementations; for instance, replacing standard Redis with Garnett (a Microsoft research remote cache store) by using the `.WithImage()` and `.WithImageTag()` methods in the configuration.
🛠️ The system provides pre-built component configurations for various services, including Azure SQL, MySQL, PostgreSQL, Azure Data Tables, and Cosmos DB, simplifying complex setup procedures.
🖥️ When running locally, the dashboard clearly shows which containers are running, their status (e.g., downloading images), and provides direct access to admin tools like PG Admin for databases.
Key Points & Insights
➡️ Enable orchestrator support in existing projects to automatically inject boilerplate code for distributed application standards like telemetry and service discovery.
➡️ Utilize the .NET Aspire Dashboard for centralized, real-time monitoring of logs and metrics across all microservices running in the development environment.
➡️ Add external dependencies (like databases or caches) using Aspire Packages; the framework handles container orchestration, environment variable injection, and service registration automatically.
➡️ Replace default component container images (like Redis) with alternatives (like Garnett) by specifying the `WithImage` configuration in the `apphost` project's code.
📸 Video summarized with SummaryTube.com on Feb 22, 2026, 19:44 UTC
Find relevant products on Amazon related to this video
As an Amazon Associate, we earn from qualifying purchases
Full video URL: youtube.com/watch?v=fN3ufsIF7vs
Duration: 22:06
Integrating .NET Aspire for Distributed Applications
📌 .NET Aspire enables building Cloud-native, observable, production-ready distributed applications by simplifying service discovery and telemetry integration.
⚙️ It can be added to existing .NET applications (Blazor, MVC, APIs) in just a few clicks to provide features like service discovery and enhanced debugging capabilities for multi-project setups.
➕ The integration automatically creates an `apphost` project (the glue) and a `service-defaults` project, which configures baseline settings like OpenTelemetry, health checks, and service discovery handlers.
Service Discovery and Observability Setup
📊 The `service-defaults` project pre-configures OpenTelemetry with built-in exporters for endpoints like Prometheus or Azure Monitor, and sets up standard resiliency handlers for HTTP clients.
🔧 Service discovery is automated; by referencing a project (e.g., `products`) in the `apphost`, projects can communicate using the service name (ID) instead of hardcoded URLs (e.g., using `product` instead of `localhost`).
📈 Running the application launches the .NET Aspire Dashboard, which provides real-time insights into running services, including endpoints, raw logs (structured logs encouraged), and metrics like active requests and connection durations, all driven by OpenTelemetry.
Adding Components and Orchestration
📦 Components like Redis or PostgreSQL can be added by installing the relevant .NET Aspire Package via NuGet to the `apphost` project and referencing it (e.g., `builder.AddRedis(...)`).
🐳 Aspire automatically handles pulling Docker container images (e.g., for Redis 7.2.4 or PostgreSQL) and configuring them to run locally for development purposes.
🔗 Dependencies are managed through the `WithReference` method, linking services together and ensuring the correct configurations (including environment variables for URLs and OpenTelemetry settings) are automatically propagated between services.
Extending with Custom Components
🔄 Developers can easily swap default component implementations; for instance, replacing standard Redis with Garnett (a Microsoft research remote cache store) by using the `.WithImage()` and `.WithImageTag()` methods in the configuration.
🛠️ The system provides pre-built component configurations for various services, including Azure SQL, MySQL, PostgreSQL, Azure Data Tables, and Cosmos DB, simplifying complex setup procedures.
🖥️ When running locally, the dashboard clearly shows which containers are running, their status (e.g., downloading images), and provides direct access to admin tools like PG Admin for databases.
Key Points & Insights
➡️ Enable orchestrator support in existing projects to automatically inject boilerplate code for distributed application standards like telemetry and service discovery.
➡️ Utilize the .NET Aspire Dashboard for centralized, real-time monitoring of logs and metrics across all microservices running in the development environment.
➡️ Add external dependencies (like databases or caches) using Aspire Packages; the framework handles container orchestration, environment variable injection, and service registration automatically.
➡️ Replace default component container images (like Redis) with alternatives (like Garnett) by specifying the `WithImage` configuration in the `apphost` project's code.
📸 Video summarized with SummaryTube.com on Feb 22, 2026, 19:44 UTC
Find relevant products on Amazon related to this video
As an Amazon Associate, we earn from qualifying purchases

Summarize youtube video with AI directly from any YouTube video page. Save Time.
Install our free Chrome extension. Get expert level summaries with one click.