From a433d105d103a3002d17cff4cc1af97f81b251af Mon Sep 17 00:00:00 2001 From: Jamie Clayton Date: Wed, 15 May 2024 21:34:46 +1000 Subject: [PATCH] docs: Edit diagram in VIsual Code with plugin --- ... Microservice Architecture-1.eraserdiagram | 66 +++++++++++++------ 1 file changed, 45 insertions(+), 21 deletions(-) diff --git a/devops/Microservices-.NET Microservice Architecture-1.eraserdiagram b/devops/Microservices-.NET Microservice Architecture-1.eraserdiagram index 988f049..0f1950b 100644 --- a/devops/Microservices-.NET Microservice Architecture-1.eraserdiagram +++ b/devops/Microservices-.NET Microservice Architecture-1.eraserdiagram @@ -1,37 +1,61 @@ cloud-architecture-diagram -title .NET Microservice Architecture +title Scalable Microservices - DotNet + +// UX Layer - handles user interaction +UX Layer [color: lightblue] { + Web App [icon: browser] // entry point for UX Layer + Business Intelligence [icon: chart-line] +} // API Layer - handles incoming requests and routes them to appropriate services -API Layer [color: lightblue] { - WebAPI [icon: globe] // entry point for API Layer +API Layer [color: 118ab2] { + Rest [icon: globe] // entry point for API Layer + Open API Docs [icon: book] Health Checks [icon: heart] } // Data Storage - manages data persistence Data Storage [color: lightgrey] { - SQL Database [icon: database] + SQL [icon: database] + SAAS [icon: cloud] + File Storage [icon: file-text] + Queue [icon: server] } -// Messaging System - handles asynchronous communication between services -Messaging System [color: lightgreen] { - NServiceBus [icon: message-square] - RabbitMQ Server [icon: server] -} +Event Sourcing [color: orange] { -// Background Services - handles processing of commands and events -Background Services [color: lightcoral] { - Command Handler [icon: terminal] - Event Processor [icon: cpu] +// Event Sourcing Producer - handles asynchronous communication between services +Producer [color: lightgreen] { + Publish Events [icon: mail] + Send Commands [icon: send] } -// Connection from API Layer to Data Storage -API Layer > Data Storage - -// Connection from API Layer to Messaging System -API Layer > Messaging System + // Event Sourcing Consumer Service Endpoint - handles processing of commands and events + Consumer Service Endpoint [color: orange] { + Command Handler [icon: terminal] + Event Handler [icon: cpu] + Policies [icon: shield] + } +} -// Connection from Messaging System to Background Services -// Messaging System children: NServiceBus, RabbitMQ Server -Messaging System > Background Services +// Connection from UX Layer to API Layer +Web App > Rest +Business Intelligence > SQL +// Connection from API Layer to Data Storage +Rest > SQL +Rest > File Storage +Rest > Producer +Rest > SAAS + +// Connection from Messaging System to Event Sourcing Consumer Service Endpoint +// Messaging System children: NServiceBus, Queue +Producer > Queue + +// Connection from Event Sourcing Consumer Service Endpoint to Data Storage +Consumer Service Endpoint > Rest +Consumer Service Endpoint > Producer +Queue > Command Handler +Queue > Event Handler +Policies > SQL \ No newline at end of file