Implement .NET Aspire orchestration in Chapter 3 with RabbitMQ and PostgreSQL #227
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📋 Description
Adds .NET Aspire as an alternative orchestration method for Chapter 3's microservices architecture. Provides service orchestration, built-in observability, and automatic dependency management while maintaining full backward compatibility with existing docker-compose setup.
New Projects
Connection String Pattern
All database and messaging modules now prioritize Aspire connection strings with fallback to legacy configuration:
Service Integration
AppHost Configuration
Usage
Aspire Dashboard provides unified view of services, traces, metrics, and logs. Applications remain accessible at ports 8080 (Fitnet) and 8081 (Contracts).
📦 PR Includes
🚫 PR Does Not Include
💡 Additional Notes
Files Modified: 10 (connection string handling in DatabaseModule/EventBusModule across all modules, Program.cs integration)
Files Created: 6 (AppHost, ServiceDefaults, documentation)
Stats: +621/-16 lines
Backward compatible: docker-compose.yml workflow unchanged, services run with or without Aspire. No changes to business logic or existing tests.
See
Docs/ASPIRE_IMPLEMENTATION.mdfor architecture details and implementation patterns.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.