update
This commit is contained in:
@@ -88,48 +88,72 @@ NATSBridge enables seamless communication across multiple platforms through NATS
|
|||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
flowchart TB
|
flowchart TB
|
||||||
subgraph Applications["Applications"]
|
%% Subgraph Definitions
|
||||||
direction TB
|
subgraph JuliaApp["Julia Application"]
|
||||||
subgraph Platform1["Julia"]
|
JuliaAppCode[App Code]
|
||||||
App1[App Code] --> Bridge1[NATSBridge.jl]
|
JuliaBridge[NATSBridge.jl]
|
||||||
Bridge1 --> NATS1[<b>NATS.jl</b>]
|
JuliaNATS[<b>NATS.jl</b>]
|
||||||
end
|
end
|
||||||
subgraph Platform2["JavaScript"]
|
|
||||||
App2[App Code] --> Bridge2[NATSBridge.js]
|
subgraph JSApp["JavaScript Application"]
|
||||||
Bridge2 --> NATS2[<b>nats.js</b>]
|
JSAppCode[App Code]
|
||||||
|
JSBridge[NATSBridge.js]
|
||||||
|
JSNATS[<b>nats.js</b>]
|
||||||
end
|
end
|
||||||
subgraph Platform3["Python/MicroPython"]
|
|
||||||
App3[App Code] --> Bridge3[NATSBridge.py/_mpy.py]
|
subgraph PythonApp["Python Application"]
|
||||||
Bridge3 --> NATS3[<b>nats.py</b>]
|
PythonAppCode[App Code]
|
||||||
|
PythonBridge[NATSBridge.py]
|
||||||
|
PythonNATS[<b>nats.py</b>]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
subgraph MicroPythonApp["MicroPython Application"]
|
||||||
|
MpyAppCode[App Code]
|
||||||
|
MpyBridge[NATSBridge_mpy.py]
|
||||||
|
MpyNATS[<b>NATS</b>]
|
||||||
end
|
end
|
||||||
|
|
||||||
subgraph Infrastructure["Infrastructure"]
|
subgraph Infrastructure["Infrastructure"]
|
||||||
direction TB
|
|
||||||
NATS[<b>NATS Server</b><br/>Message Broker]
|
NATS[<b>NATS Server</b><br/>Message Broker]
|
||||||
FileServer[<b>HTTP File Server</b><br/>Upload/Download]
|
FileServer[<b>HTTP File Server</b><br/>Upload/Download]
|
||||||
end
|
end
|
||||||
|
|
||||||
NATS1 --> NATS
|
%% Application Internal Flows
|
||||||
NATS2 --> NATS
|
JuliaAppCode --> JuliaBridge --> JuliaNATS
|
||||||
NATS3 --> NATS
|
JSAppCode --> JSBridge --> JSNATS
|
||||||
|
PythonAppCode --> PythonBridge --> PythonNATS
|
||||||
|
MpyAppCode --> MpyBridge --> MpyNATS
|
||||||
|
|
||||||
NATS --> NATS1
|
%% Connections to Infrastructure (Center)
|
||||||
NATS --> NATS2
|
%% NATS Server Connections
|
||||||
NATS --> NATS3
|
JuliaNATS --> NATS
|
||||||
|
JSNATS --> NATS
|
||||||
|
PythonNATS --> NATS
|
||||||
|
MpyNATS --> NATS
|
||||||
|
NATS --> JuliaNATS
|
||||||
|
NATS --> JSNATS
|
||||||
|
NATS --> PythonNATS
|
||||||
|
NATS --> MpyNATS
|
||||||
|
|
||||||
Bridge1 -.->|HTTP POST| FileServer
|
%% HTTP File Server Connections
|
||||||
Bridge2 -.->|HTTP POST| FileServer
|
JuliaBridge -.->|HTTP POST upload| FileServer
|
||||||
Bridge3 -.->|HTTP POST| FileServer
|
JSBridge -.->|HTTP POST upload| FileServer
|
||||||
|
PythonBridge -.->|HTTP POST upload| FileServer
|
||||||
|
MpyBridge -.->|HTTP POST upload| FileServer
|
||||||
|
|
||||||
FileServer -.->|HTTP GET| Bridge1
|
FileServer -.->|HTTP GET download| JuliaBridge
|
||||||
FileServer -.->|HTTP GET| Bridge2
|
FileServer -.->|HTTP GET download| JSBridge
|
||||||
FileServer -.->|HTTP GET| Bridge3
|
FileServer -.->|HTTP GET download| PythonBridge
|
||||||
|
FileServer -.->|HTTP GET download| MpyBridge
|
||||||
|
|
||||||
style Applications fill:#f0f0f0
|
%% Styling
|
||||||
style Infrastructure fill:#f0f0f0
|
style JuliaApp fill:#c5e1a5
|
||||||
|
style JSApp fill:#bbdefb
|
||||||
|
style PythonApp fill:#f8bbd0
|
||||||
|
style MicroPythonApp fill:#f0f0f0
|
||||||
style NATS fill:#fff3e0
|
style NATS fill:#fff3e0
|
||||||
style FileServer fill:#f3e5f5
|
style FileServer fill:#f3e5f5
|
||||||
|
style Infrastructure fill:#fafafa
|
||||||
```
|
```
|
||||||
|
|
||||||
### Message Flow
|
### Message Flow
|
||||||
|
|||||||
Reference in New Issue
Block a user