Skip to content

Commit

Permalink
Update devops/Microservices.md with DiagramGPT
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie-Clayton committed May 15, 2024
1 parent b6d87fd commit a1c6149
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 7 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
cloud-architecture-diagram

title .NET Microservice Architecture

// API Layer - handles incoming requests and routes them to appropriate services
API Layer [color: lightblue] {
WebAPI [icon: globe] // entry point for API Layer
Health Checks [icon: heart]
}

// Data Storage - manages data persistence
Data Storage [color: lightgrey] {
SQL Database [icon: database]
}

// Messaging System - handles asynchronous communication between services
Messaging System [color: lightgreen] {
NServiceBus [icon: message-square]
RabbitMQ Server [icon: server]
}

// Background Services - handles processing of commands and events
Background Services [color: lightcoral] {
Command Handler [icon: terminal]
Event Processor [icon: cpu]
}

// Connection from API Layer to Data Storage
API Layer > Data Storage

// Connection from API Layer to Messaging System
API Layer > Messaging System

// Connection from Messaging System to Background Services
// Messaging System children: NServiceBus, RabbitMQ Server
Messaging System > Background Services

22 changes: 15 additions & 7 deletions devops/Microservices.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Dotnet Microservices
<p><a target="_blank" href="https://app.eraser.io/workspace/6kUEFQFheT5cFfg5JyRB" id="edit-in-eraser-github-link"><img alt="Edit in Eraser" src="https://firebasestorage.googleapis.com/v0/b/second-petal-295822.appspot.com/o/images%2Fgithub%2FOpen%20in%20Eraser.svg?alt=media&amp;token=968381c8-a7e7-472a-8ed6-4a6626da5501"></a></p>

# Dotnet Microservices
## Project Instructions

```Powershell
dotnet new webapi -f 5.0 -lang "C#" -au "Windows"
dotnet new xunit -f 5.0 -lang "C#"
dotnet sln add Software.API/Software.API.csproj
Expand All @@ -13,10 +12,19 @@ dotnet add package AspNetCore.HealthChecks.Rabbitmq --version 5.0.1
dotnet add package System.Data.SqlClient --version 4.8.2
Test-NetConnection -ComputerName RABBITMQServerName -Port 5672
```

## References
- [Health Monitoring](https://docs.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/monitor-app-health)
- [Health Check walk through](https://www.hanselman.com/blog/how-to-set-up-aspnet-core-22-health-checks-with-beatpulses-aspnetcorediagnosticshealthchecks)
![Microservice Architecture - .net](/.eraser/6kUEFQFheT5cFfg5JyRB___M7HUYofgzENvEiuTW19wQsQiDfM2___---figure---jNSz7WP9a5r2VTY0ZChsG---figure---thwgJSGh_qN0jFQFwCiG8w.png "Microservice Architecture - .net")




- [Health Monitoring](https://docs.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/monitor-app-health)
- [Health Check walk through](https://www.hanselman.com/blog/how-to-set-up-aspnet-core-22-health-checks-with-beatpulses-aspnetcorediagnosticshealthchecks)
<!-- eraser-additional-content -->
## Diagrams
<!-- eraser-additional-files -->
<a href="/devops/Microservices-.NET Microservice Architecture-1.eraserdiagram" data-element-id="J_oCPCXo0dDfSEIT7rfio"><img src="/.eraser/6kUEFQFheT5cFfg5JyRB___M7HUYofgzENvEiuTW19wQsQiDfM2___---diagram----9aab31d8344ba410ed4c2e3063e7f083--NET-Microservice-Architecture.png" alt="" data-element-id="J_oCPCXo0dDfSEIT7rfio" /></a>
<!-- end-eraser-additional-files -->
<!-- end-eraser-additional-content -->
<!--- Eraser file: https://app.eraser.io/workspace/6kUEFQFheT5cFfg5JyRB --->

0 comments on commit a1c6149

Please sign in to comment.