Files
mtusi2026lab4/docs/architecture.puml
T
2026-10-28 14:12:41 +03:00

24 lines
762 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml
title C4 — Container diagram
Person(client, "Client", "Клиент мессенджера")
System_Boundary(messenger, "Messenger") {
Container(api, "API", "Go", "HTTP API: authentication, users, chats and messages")
ContainerDb(postgres, "PostgreSQL", "PostgreSQL", "Source of truth: users, chats, members and messages")
ContainerDb(redis, "Redis", "Redis", "Active sessions and chat cache")
}
Rel(client, api, "Работает с API", "HTTP/JSON")
Rel(api, postgres, "Читает и записывает данные", "SQL")
Rel(api, redis, "Хранит сессии и кэширует чаты", "Redis protocol")
@enduml