# vinay163581/coen-6861-high_layer_telecommunication_protocols- architecture

> Architecture diagram of the GitHub repository vinay163581/coen-6861-high_layer_telecommunication_protocols-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-
- Repository: https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-

## Overview

Local Video CDN distributes uploaded videos from an origin to selected replicas, then serves playback through controller redirects. The browser dashboard uploads, pushes, monitors availability and starts playback; the controller checks replica status and selects an online copy, while the browser streams bytes directly from that replica. The graph separates origin distribution, controller coordination and replica delivery. Evidence is limited to the README and sampled excerpts; some service internals and frontend playback code were not shown.

Main entry points: [`src/service.js`](https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/blob/main/src/service.js) (Controller service), [`public/app.js`](https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/blob/main/public/app.js) (Dashboard UI), [`data/origin`](https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/tree/main/data/origin) (Origin library), [`data/replica-a`](https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/tree/main/data/replica-a) (Replica A copies)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_dashboard_ui["Dashboard UI<br/>[app.js]"]
end

subgraph group_origin["Origin distribution"]
  node_origin_api["Origin service<br/>[service.js]"]
  node_origin_store[("Origin library")]
end

subgraph group_control["Controller"]
  node_controller["Controller service<br/>[service.js]"]
end

subgraph group_delivery["Replica delivery"]
  node_replica_a["Replica A<br/>[service.js]"]
  node_store_a[("Replica A copies")]
  node_replica_b["Replica B<br/>[service.js]"]
  node_store_b[("Replica B copies")]
end

node_browser(("Browser user"))

node_browser -->|"uses"| node_dashboard_ui
node_dashboard_ui -->|"requests status"| node_controller
node_dashboard_ui -->|"uploads video"| node_controller
node_dashboard_ui -->|"requests push"| node_controller
node_controller -->|"proxies upload"| node_origin_api
node_origin_api -->|"stores upload"| node_origin_store
node_origin_api -->|"pushes video"| node_replica_a
node_origin_api -->|"pushes video"| node_replica_b
node_replica_a -->|"stores copy"| node_store_a
node_replica_b -->|"stores copy"| node_store_b
node_controller -->|"checks status"| node_replica_a
node_controller -->|"checks status"| node_replica_b
node_browser -->|"requests playback"| node_controller
node_controller -->|"redirects playback"| node_browser
node_browser -->|"streams bytes"| node_replica_a
node_browser -->|"streams bytes"| node_replica_b

click node_dashboard_ui "https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/blob/main/public/app.js"
click node_controller "https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/blob/main/src/service.js"
click node_origin_api "https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/blob/main/src/service.js"
click node_origin_store "https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/tree/main/data/origin"
click node_replica_a "https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/blob/main/src/service.js"
click node_store_a "https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/tree/main/data/replica-a"
click node_replica_b "https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/blob/main/src/service.js"
click node_store_b "https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/tree/main/data/replica-b"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dashboard_ui,node_browser toneBlue
class node_origin_api,node_origin_store toneAmber
class node_controller toneMint
class node_replica_a,node_store_a,node_replica_b,node_store_b toneRose
```

## Components

### Dashboard

- [Dashboard UI](https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/blob/main/public/app.js): `public/app.js`

### Origin distribution

- [Origin service](https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/blob/main/src/service.js): `src/service.js`
- [Origin library](https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/tree/main/data/origin): `data/origin`

### Controller

- [Controller service](https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/blob/main/src/service.js): `src/service.js`

### Replica delivery

- [Replica A](https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/blob/main/src/service.js): `src/service.js`
- [Replica A copies](https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/tree/main/data/replica-a): `data/replica-a`
- [Replica B](https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/blob/main/src/service.js): `src/service.js`
- [Replica B copies](https://github.com/vinay163581/coen-6861-high_layer_telecommunication_protocols-/tree/main/data/replica-b): `data/replica-b`

### Other components

- **Browser user**

## Connections

- Browser user → Dashboard UI: uses (evidence: `README.md`)
- Dashboard UI → Controller service: requests status (evidence: `public/app.js`)
- Dashboard UI → Controller service: uploads video (evidence: `public/app.js`)
- Dashboard UI → Controller service: requests push (evidence: `public/app.js`)
- Controller service → Origin service: proxies upload (evidence: `src/service.js`)
- Origin service → Origin library: stores upload (evidence: `src/service.js`)
- Origin service → Replica A: pushes video (evidence: `README.md`)
- Origin service → Replica B: pushes video (evidence: `README.md`)
- Replica A → Replica A copies: stores copy (evidence: `README.md`)
- Replica B → Replica B copies: stores copy (evidence: `README.md`)
- Controller service → Replica A: checks status (evidence: `README.md`)
- Controller service → Replica B: checks status (evidence: `README.md`)
- Browser user → Controller service: requests playback (evidence: `README.md`)
- Controller service → Browser user: redirects playback (evidence: `README.md`)
- Browser user → Replica A: streams bytes (evidence: `README.md`)
- Browser user → Replica B: streams bytes (evidence: `README.md`)
