# openbackhaul/networkdatalakeproxy architecture

> Architecture diagram of the GitHub repository openbackhaul/networkdatalakeproxy, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/openbackhaul/networkdatalakeproxy
- Repository: https://github.com/openbackhaul/networkdatalakeproxy

## Overview

NetworkDataLakeProxy is a server-side interface that exposes filtered MWDI data and related network-model operations. Its principal workflow accepts an inventory request, resolves the configured MWDI forwarding target, forwards the request, and returns the result; the service also applies ControlConstruct request throttling and schema filtering. The tree documents physical and logical inventory, plus profile, transport, operation, and Elasticsearch interfaces. Some connections are based on import references in the SOURCE INDEX; unsampled implementation details are not assumed.

Main entry points: [`server/service/ElasticsearchClientService.js`](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/ElasticsearchClientService.js) (Elasticsearch service), [`server/service/IndividualServicesService.js`](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/IndividualServicesService.js) (Inventory orchestration), [`server/service/individualServices/RestClient.js`](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/individualServices/RestClient.js) (REST client), [`server/controllers/IndividualServices.js`](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/controllers/IndividualServices.js) (Inventory API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inventory["Inventory workflow"]
  node_individual_api["Inventory API"]
  node_inventory_service["Inventory orchestration"]
  node_request_handler["MWDI request handler<br/>[RequestHandler.js]"]
  node_rest_client["REST client<br/>[RestClient.js]"]
end

subgraph group_interfaces["Network interfaces"]
  node_api_controllers["Profile and service APIs<br/>[BasicServices.js]"]
  node_profile_services["Profile services"]
  node_operation_controllers["Operation APIs<br/>[OperationClient.js]"]
  node_operation_services["Operation services"]
  node_http_controllers["HTTP APIs<br/>[HttpClient.js]"]
  node_http_services["HTTP services"]
  node_tcp_controllers["TCP APIs<br/>[TcpClient.js]"]
  node_tcp_services["TCP services"]
  node_es_controller["Elasticsearch API"]
  node_es_service["Elasticsearch service"]
end

subgraph group_model["Model and forwarding"]
  node_control_util["Control Construct utilities"]
  node_bequeath["Release handover<br/>[BequeathHandler.js]"]
  node_forwarding_prep["Forwarding automation"]
  node_es_prep["Elasticsearch preparation"]
end

subgraph group_support["Runtime support"]
  node_config_store[("Configuration store")]
  node_logging["Logging<br/>[LoggingService.js]"]
end

node_consumer(("Higher-layer consumer"))
node_mwdi["MWDI"]
node_elasticsearch["Elasticsearch"]

node_consumer -->|"requests inventory"| node_individual_api
node_individual_api -->|"dispatches"| node_inventory_service
node_inventory_service -->|"delegates"| node_request_handler
node_request_handler -->|"resolves target"| node_control_util
node_request_handler -->|"forwards request"| node_rest_client
node_rest_client -->|"sends HTTP"| node_mwdi
node_individual_api -->|"returns result"| node_inventory_service
node_api_controllers -->|"calls"| node_profile_services
node_operation_controllers -->|"calls"| node_operation_services
node_http_controllers -->|"calls"| node_http_services
node_tcp_controllers -->|"calls"| node_tcp_services
node_es_controller -->|"calls"| node_es_service
node_es_service -->|"reads and writes"| node_config_store
node_es_service -->|"manages client"| node_elasticsearch
node_es_service -->|"prepares index"| node_es_prep
node_bequeath -->|"queries model"| node_control_util
node_bequeath -->|"notifies services"| node_rest_client
node_http_services -->|"uses automation"| node_forwarding_prep
node_operation_services -->|"uses automation"| node_forwarding_prep
node_tcp_services -->|"uses automation"| node_forwarding_prep
node_inventory_service -->|"logs"| node_logging
node_rest_client -->|"logs"| node_logging

click node_individual_api "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/controllers/IndividualServices.js"
click node_inventory_service "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/IndividualServicesService.js"
click node_request_handler "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/individualServices/RequestHandler.js"
click node_rest_client "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/individualServices/RestClient.js"
click node_api_controllers "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/controllers/BasicServices.js"
click node_profile_services "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/IntegerProfileService.js"
click node_operation_controllers "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/controllers/OperationClient.js"
click node_operation_services "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/OperationClientService.js"
click node_http_controllers "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/controllers/HttpClient.js"
click node_http_services "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/HttpClientService.js"
click node_tcp_controllers "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/controllers/TcpClient.js"
click node_tcp_services "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/TcpClientService.js"
click node_es_controller "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/controllers/ElasticsearchClient.js"
click node_es_service "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/ElasticsearchClientService.js"
click node_control_util "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/individualServices/ControlConstructUtil.js"
click node_bequeath "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/individualServices/BequeathHandler.js"
click node_forwarding_prep "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/individualServices/PrepareForwardingAutomation.js"
click node_es_prep "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/individualServices/ElasticsearchPreparation.js"
click node_logging "https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/LoggingService.js"

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_individual_api,node_inventory_service,node_request_handler,node_rest_client toneBlue
class node_api_controllers,node_profile_services,node_operation_controllers,node_operation_services,node_http_controllers,node_http_services,node_tcp_controllers,node_tcp_services,node_es_controller,node_es_service toneAmber
class node_control_util,node_bequeath,node_forwarding_prep,node_es_prep toneMint
class node_config_store,node_logging toneRose
class node_consumer,node_mwdi,node_elasticsearch toneIndigo
```

## Components

### Inventory workflow

- [Inventory API](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/controllers/IndividualServices.js): `server/controllers/IndividualServices.js`
- [Inventory orchestration](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/IndividualServicesService.js): `server/service/IndividualServicesService.js`
- [MWDI request handler](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/individualServices/RequestHandler.js): `server/service/individualServices/RequestHandler.js`
- [REST client](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/individualServices/RestClient.js): `server/service/individualServices/RestClient.js`

### Network interfaces

- [Profile and service APIs](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/controllers/BasicServices.js): `server/controllers/BasicServices.js`
- [Profile services](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/IntegerProfileService.js): `server/service/IntegerProfileService.js`
- [Operation APIs](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/controllers/OperationClient.js): `server/controllers/OperationClient.js`
- [Operation services](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/OperationClientService.js): `server/service/OperationClientService.js`
- [HTTP APIs](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/controllers/HttpClient.js): `server/controllers/HttpClient.js`
- [HTTP services](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/HttpClientService.js): `server/service/HttpClientService.js`
- [TCP APIs](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/controllers/TcpClient.js): `server/controllers/TcpClient.js`
- [TCP services](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/TcpClientService.js): `server/service/TcpClientService.js`
- [Elasticsearch API](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/controllers/ElasticsearchClient.js): `server/controllers/ElasticsearchClient.js`
- [Elasticsearch service](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/ElasticsearchClientService.js): `server/service/ElasticsearchClientService.js`

### Model and forwarding

- [Control Construct utilities](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/individualServices/ControlConstructUtil.js): `server/service/individualServices/ControlConstructUtil.js`
- [Release handover](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/individualServices/BequeathHandler.js): `server/service/individualServices/BequeathHandler.js`
- [Forwarding automation](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/individualServices/PrepareForwardingAutomation.js): `server/service/individualServices/PrepareForwardingAutomation.js`
- [Elasticsearch preparation](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/individualServices/ElasticsearchPreparation.js): `server/service/individualServices/ElasticsearchPreparation.js`

### Runtime support

- **Configuration store**
- [Logging](https://github.com/openbackhaul/networkdatalakeproxy/blob/develop/server/service/LoggingService.js): `server/service/LoggingService.js`

### Other components

- **Higher-layer consumer**
- **MWDI**
- **Elasticsearch**

## Connections

- Higher-layer consumer → Inventory API: requests inventory (evidence: `README.md`)
- Inventory API → Inventory orchestration: dispatches (evidence: `server/controllers/IndividualServices.js`)
- Inventory orchestration → MWDI request handler: delegates (evidence: `server/service/IndividualServicesService.js`)
- MWDI request handler → Control Construct utilities: resolves target (evidence: `server/service/individualServices/RequestHandler.js`)
- MWDI request handler → REST client: forwards request (evidence: `server/service/individualServices/RequestHandler.js`)
- REST client → MWDI: sends HTTP (evidence: `server/service/individualServices/RestClient.js`)
- Inventory API → Inventory orchestration: returns result (evidence: `server/controllers/IndividualServices.js`)
- Profile and service APIs → Profile services: calls (evidence: `server/controllers/BasicServices.js`)
- Operation APIs → Operation services: calls (evidence: `server/controllers/OperationClient.js`)
- HTTP APIs → HTTP services: calls (evidence: `server/controllers/HttpClient.js`)
- TCP APIs → TCP services: calls (evidence: `server/controllers/TcpClient.js`)
- Elasticsearch API → Elasticsearch service: calls (evidence: `server/controllers/ElasticsearchClient.js`)
- Elasticsearch service → Configuration store: reads and writes (evidence: `server/service/ElasticsearchClientService.js`)
- Elasticsearch service → Elasticsearch: manages client (evidence: `server/service/ElasticsearchClientService.js`)
- Elasticsearch service → Elasticsearch preparation: prepares index (evidence: `server/service/ElasticsearchClientService.js`)
- Release handover → Control Construct utilities: queries model (evidence: `server/service/individualServices/BequeathHandler.js`)
- Release handover → REST client: notifies services (evidence: `server/service/individualServices/BequeathHandler.js`)
- HTTP services → Forwarding automation: uses automation (evidence: `server/service/HttpClientService.js`)
- Operation services → Forwarding automation: uses automation (evidence: `server/service/OperationClientService.js`)
- TCP services → Forwarding automation: uses automation (evidence: `server/service/TcpClientService.js`)
- Inventory orchestration → Logging: logs (evidence: `server/service/IndividualServicesService.js`)
- REST client → Logging: logs (evidence: `server/service/individualServices/RestClient.js`)
