Initial commit

This commit is contained in:
Andrey
2024-04-08 19:15:50 +03:00
commit 072ced2815
51 changed files with 2926 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
@startuml
scale 800*800
mainframe Получение списка регионов от Officer
actor Пользователь as user
participant ARM as ARM
participant gateway as gateway
collections redis as redis
participant workflow as workflow
participant officer as officer
autonumber
user -> ARM: Открывает форму\nзаказа
activate ARM
ARM -> gateway: REST API GET\n инфо о регионах
activate gateway
gateway -> redis: Запрашивает\nсписок\nрегионов
opt Данные о регионах есть в кэше
redis --> gateway: answer
else Данные необходимо обновить в кэше
gateway -> workflow: триггерит обновление
activate workflow
workflow -> officer: GraphQL method\noffices
activate officer
officer --> workflow: GraphQL answer
workflow -> officer: GraphQL method\nlocalities
officer --> workflow: GraphQL answer
deactivate officer
workflow -> workflow: Обработка\nданных
workflow -> redis: Записывает регионы\nи параметры в экш
workflow --> gateway: answer
deactivate workflow
end
gateway --> ARM: REST API GET\nanswer
deactivate gateway
ARM --> user: Рендерит данные
deactivate ARM
@enduml