workspace "Automatische Untertitel" "Geplante Systemarchitektur für das automatische UT-Tool" { !identifiers hierarchical model { archetypes { sync = -> { tags "Synchronous" } async = -> { tags "Synchronous" } https = --sync-> { technology "HTTPS" } rest = --sync-> { technology "REST" } pubsub = --async-> { technology "PubSub" } websocket = --async-> { technology "Websocket" } socket = --sync-> { technology "Socket" } } // --- Definition of people --- subtitle_user = person "Subtitle Editor" "Editorial employee" "editor, yellow" cms_user = person "CMS User" "Creates analysis and dashboards using the output of the data platform as source" "user, yellow" end_user = person "Enduser" "Creates elt-pipelines for data processing" "user, yellow" // --- Definition of software-systems --- group "PN" { fab = softwareSystem "FAB Subtitler" "FAB system context" "Service API, owned" { client = container "FAB Subtitle Editor" { tags "fab, owned" description "This is the tool, used by the editors." } db = container "FAB Subtitle Database" { tags "fab, Database, owned" description "This is a database application holding all of the subtitles" } dbserver = container "FAB Subtitle Database Server" { tags "fab, owned" description "This is a database application holding all of the subtitles" this -> db "accesses data (CRUD)" } server = container "FAB Server" { tags "fab, owned" description "This server runs integrations with the subtitle editor and db" db -> this "reads data from db, writes data to db" this -> client "delivers services to client" } } das = softwareSystem "DAS" "PN" "Service API, red" vio = softwareSystem "VIO ESB" "PN" "Service API, gray" mam = softwareSystem "MINT" "PN" "Service API, red" mqp = softwareSystem "MQP" "PN" "Service API, red" saw = softwareSystem "SAW (SMPTE)" "PN" "Service API, yellow" smubl = softwareSystem "Smubl" "GCP system context" "Service API, gray" } group "GCP internal" { cms = softwareSystem "Sophora" "GCP system context" "Service API, owned, Google Cloud Platform - Developer Portal" { sophora = container "Sophora Editor" { tags "cms, owned" description "This is the tool, used by the editors." } akamai = container "Akamai" { tags "cms, owned" description "cdn, delivers stream references and parts" sophora -> this "delivers subtitles??" } player = container "ZDF Player" { tags "cms, owned" description "The player in Frontend" akamai -> this "delivers subtitles" } } clenc = softwareSystem "CLENC" "PN" "Google Cloud Platform - Developer Portal, Service API, gray" uploadportal = softwareSystem "Uploadportal" "GCP system context" "Service API, gray, Google Cloud Platform - Developer Portal" mineit = softwareSystem "mine.it" "PN" "Service API, gray" getit = softwareSystem "get.it" "PN" "Service API, gray" aisub = softwareSystem "Automatic Subtitler" "PN" "Service API, Google Cloud Platform - Developer Portal" { stt = container "ASR STT-Service" { tags "ai, owned" description "This software automatically generates subtitles for any transmitted media asset" } db = container "ASR DB [mongodb]" { tags "ai, Database, owned" description "This is a docstore holding all of the automatically generated subtitles" } webserver = container "ASR Proxy" { pubsub = component "Pubsub Interface" { description "Pubsub handler that will include at least Kafka, AMQP, MQTT and Google Pub Sub protocols" } rest = component "Rest Interface" { description "REST handler" } websocket = component "Websocket Interface" { description "Websocket handler mainly for browser notifications and updates, as well as providing streamed subtitles to clients" } routingTable = component "Routing Table" { description "Routing Table that decides how incoming requests are forwarded to the services" } controller = component "Controller Surface" { description "The instance of a webserver" this -> routingTable "consumes" this -> rest "uses" this -> pubsub "uses" this -> websocket "uses" } tags "ai, owned" description "Service that provides interfaces for all stt activities and actively manages cluster resources, also provides access to the ASR database" this --socket-> db "accesses data (CRUD)" this --pubsub-> stt "starts new stt jobs" } stream = container "ASR Stream Server" { tags "ai, owned" description "This server takes a stream as HLS, dash or rtmp stream and generates captions in near realtime" this --socket-> db "writes data to db" this --websocket-> webserver "transmit live st" } } } group "GCP external" { mediathek = softwareSystem "Mediathek" "PN" "Google Cloud Platform - Developer Portal, Service API, owned" } // --- User Setup --- // Editor subtitle_user -> fab.client "edits subtitles, exports subtitles" end_user -> mediathek "consumes content" // --- system requirements and dependencies --- fab.dbserver -> subtitle_user "Transmits subtitles to cms manually - export from fab db to sophora as a link" "manually" "red" subtitle_user -> cms.sophora "Transmits subtitles to cms manually - export from fab db to sophora as a link" "manually" "red" fab.server -> saw "Transmits live subtitles to SAW" "SMPTE?" "red" fab.dbserver -> mam "Transmits subtitles to MINT???" "REST?" "red" fab.dbserver -> smubl "Transmit subtitles" "Subtitles need to have a pharos-id" mam --REST-> vio "Transmits subtitles to n?" "" mqp --REST-> fab "Transmits video and st" mam --REST-> fab "Transmits video and st" uploadportal --REST-> vio "Receives subtitles" cms_user --https-> cms.sophora "Edits articles" vio --REST-> das "Transmits to DAS for longterm storage?" vio --REST-> mineit "Transmits video assets to mine.it to automatically generate subtitles" vio --REST-> smubl "Transmits video assets" smubl --REST-> clenc "lets transcode video" clenc --REST-> cms.akamai "submits transcoded video" cms.akamai --REST-> mediathek "render page" getit --pubsub-> aisub.webserver.pubsub "report new product ids" aisub.webserver.pubsub --pubsub-> getit "report metadata for product id" aisub.webserver.rest --rest-> smubl "report new transcription url for product id" aisub.webserver.rest --rest-> cms "report new smubl_basename for product id" aisub.webserver.rest --rest-> smubl "upload file to storage" aisub.webserver.websocket --websocket-> cms.player "show current subtitles to user" } views { properties { "mermaid.url" "https://mermaid.ink" "mermaid.format" "png" "structurizr.description" true "structurizr.title" true "structurizr.metadata" false // "structurizr.sort" "type" } // systemLandscape "landscape" { // include * // } systemContext fab "systemContext_fab" { include * // autolayout lr } systemContext cms "systemContext_cms" { include * // autolayout lr } container fab "Containers_fab" { include * // autolayout lr } container cms "Containers_cms" { include * // autolayout lr } container aisub "Containers_aisub" { include * } component aisub.webserver "Components_aisub_webserver" { include * } image aisub.webserver.rest { mermaid modules/aisub/webserver/interface.mmd title "REST Interface" } image aisub.webserver.controller { mermaid modules/aisub/webserver/sequence_flow.mmd title "Proxy Sequence" } image aisub.webserver.rest { mermaid modules/aisub/webserver/sequence_flow_bulk.mmd title "Bulk Import detail" } image fab.db { mermaid modules/fab/db/db.api.mmd title "DB Classes" } image fab.db { mermaid modules/fab/db/db-sequence.api.mmd title "DB Sequence" } image fab.db { mermaid modules/fab/db/qa_process.api.mmd title "QA Process" } styles { element "Person" { shape Person } element "Service API" { shape hexagon } element "Database" { shape cylinder } element "owned" { background #6CA4FF } element "yellow" { background #FA7D19 } element "red" { background #FF0000 } element "foreign" { background #A3A3A3 } element "user" { background #001AC5 color #ffffff } } themes https://static.structurizr.com/themes/microsoft-azure-2023.01.24/theme.json https://static.structurizr.com/themes/google-cloud-platform-v1.5/theme.json } }