From 987013974cdd64594acfe18fa6538d1c0123d581 Mon Sep 17 00:00:00 2001 From: Toutsu Date: Thu, 21 May 2026 18:37:22 +0300 Subject: [PATCH] docs(c4): update container view for Discord worker and healthcheck --- docs/c4-system-context.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/c4-system-context.md b/docs/c4-system-context.md index 6ba1970..036372c 100644 --- a/docs/c4-system-context.md +++ b/docs/c4-system-context.md @@ -37,7 +37,7 @@ C4Container System_Boundary(runtime, "Docker Compose / Aspire runtime") { Container(bot, "GmRelay.Bot", "Worker Service, .NET 10 AOT", "Telegram long polling, commands, callback routing, reminders") - Container(discordBot, "GmRelay.DiscordBot", "Worker Service, .NET 10", "NetCord Gateway, slash commands, scheduler notifications, and button interactions") + Container(discordBot, "Discord Gateway Worker", "Внутри GmRelay.Bot", "NetCord Gateway, slash commands, scheduler notifications, button interactions, healthcheck :8082") Container(web, "GmRelay.Web", "Blazor Server", "Dashboard, Mini App pages, editing and stats") Container(shared, "GmRelay.Shared", ".NET library", "Shared domain models, rendering, scheduler, and platform-neutral handlers") ContainerDb(db, "PostgreSQL", "Database", "sessions, players, session_participants, game_groups, platform identities") @@ -77,6 +77,8 @@ C4Component Component(renderer, "SessionBatchViewBuilder", "Renderer model builder", "Builds platform-neutral schedule views and actions") } + Component(healthCheck, "DiscordHealthCheckHostedService", ":8082", "Healthcheck для Docker Compose") + Container_Boundary(discordBot, "GmRelay.DiscordBot") { Component(discordModule, "DiscordSessionInteractionModule", "NetCord component module", "Maps join_session/leave_session/rsvp buttons to neutral commands") Component(discordMessenger, "DiscordPlatformMessenger", "IPlatformMessenger", "Sends and edits Discord schedule, RSVP, reminder, join-link, and reschedule messages") @@ -117,4 +119,5 @@ C4Component Rel(scheduler, telegramMessenger, "Send Telegram scheduler notifications") Rel(discordMessenger, discord, "REST send/edit/DM + ephemeral text") Rel(telegramMessenger, telegram, "SendMessage/EditMessage + AnswerCallbackQuery") + Rel(healthCheck, discord, "HTTP /health") ```