diff --git a/sequence diagram/Diagram-sequence-eng.drawio b/sequence diagram/Diagram-sequence-eng.drawio deleted file mode 100644 index cdd49bb..0000000 --- a/sequence diagram/Diagram-sequence-eng.drawio +++ /dev/null @@ -1,355 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sequence diagram/Diagram-sequence-eng.pdf b/sequence diagram/Diagram-sequence-eng.pdf deleted file mode 100644 index f0e5e7b..0000000 Binary files a/sequence diagram/Diagram-sequence-eng.pdf and /dev/null differ diff --git a/sequence diagram/Diagram-sequence-eng.png b/sequence diagram/Diagram-sequence-eng.png deleted file mode 100644 index c1cbd15..0000000 Binary files a/sequence diagram/Diagram-sequence-eng.png and /dev/null differ diff --git a/sequence diagram/Діаграма-sequence-eng.puml b/sequence diagram/Діаграма-sequence-eng.puml new file mode 100644 index 0000000..34c2f75 --- /dev/null +++ b/sequence diagram/Діаграма-sequence-eng.puml @@ -0,0 +1,30 @@ +@startuml +participant Agent as agent +participant "MQTT Broker (raw\ntopic)" as mqtt1 +participant "Edge Service" as edge +participant "MQTT\nBroker (processed\ntopic)" as mqtt2 +participant "Hub Service" as hub +participant "Redis" as redis +participant "Store API" as store +participant "PostgreSQL" as db +participant "MapView Client" as mapview + +agent -> mqtt1 : Publish raw\ntelemetry +mqtt1 -> edge : Deliver raw\nmessage +edge -> edge : Validate\nAgentData +edge -> edge : Process\ntelemetry +edge -> mqtt2 : Publish\nprocessed data +mqtt2 -> hub : Deliver processed\nmessage +hub -> hub : Validate\nProcessedAgentData +hub -> redis : LPUSH to buffer +hub -> redis : LPOP batch item +redis -> hub : Return item +hub -> store : POST batch +store -> db : INSERT records +db --> store : Return created\nrecords +store -> mapview : WebSocket push +mapview -> mapview : Sort by timestamp +mapview -> mapview : Update vehicle\nmarker +mapview -> mapview : Add pothole/bump\nmarker +store --> hub : Success response +@enduml diff --git a/sequence diagram/Діаграма-sequence-ua.pdf b/sequence diagram/Діаграма-sequence-ua.pdf deleted file mode 100644 index 147879c..0000000 Binary files a/sequence diagram/Діаграма-sequence-ua.pdf and /dev/null differ diff --git a/sequence diagram/Діаграма-sequence-ua.png b/sequence diagram/Діаграма-sequence-ua.png deleted file mode 100644 index 7433ffb..0000000 Binary files a/sequence diagram/Діаграма-sequence-ua.png and /dev/null differ diff --git a/sequence diagram/Діаграма-sequence-ua.puml b/sequence diagram/Діаграма-sequence-ua.puml new file mode 100644 index 0000000..89de5e6 --- /dev/null +++ b/sequence diagram/Діаграма-sequence-ua.puml @@ -0,0 +1,30 @@ +@startuml +participant Агент as agent +participant "MQTT Broker (raw\ntopic)" as mqtt1 +participant "Edge Service" as edge +participant "MQTT\nBroker (processed\ntopic)" as mqtt2 +participant "Hub Service" as hub +participant "Redis" as redis +participant "Store API" as store +participant "PostgreSQL" as db +participant "MapView Client" as mapview + +agent -> mqtt1 : Надіслати\nсиру\nтелеметрію +mqtt1 -> edge : Передати\nсире\nповідомлення +edge -> edge : Перевірити\nAgentData +edge -> edge : Обробити\nтелеметрію +edge -> mqtt2 : Надіслати\nоброблені дані +mqtt2 -> hub : Передати\nоброблене\nповідомлення +hub -> hub : Перевірити\nProcessedAgentData +hub -> redis : LPUSH у буфер +hub -> redis : LPOP елемента\nbatch +redis -> hub : Повернути\nелемент +hub -> store : POST batch +store -> db : Додати записи +db --> store : Повернути\nстворені записи +store -> mapview : Надіслати через WebSocket +mapview -> mapview : Сортувати за\ntimestamp +mapview -> mapview : Оновити маркер\nтранспорту +mapview -> mapview : Додати маркер\npothole/bump +store --> hub : Успішна відповідь +@enduml diff --git a/sequence diagram/Діаграма-squence-ua.drawio b/sequence diagram/Діаграма-squence-ua.drawio deleted file mode 100644 index 23a33cc..0000000 --- a/sequence diagram/Діаграма-squence-ua.drawio +++ /dev/null @@ -1,355 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -