Listeners
Separate public and administrative sockets. Loopback is the default for metrics, diagnostics, and configuration operations.
Documentation / Operator guide
Northstar Edge is a lightweight request router for distributed applications. It combines connection management, streaming responses, health reporting, and policy controls in one auditable service.
01
This guide installs a single gateway with a local configuration file. A Linux host with systemd, two CPU cores, and 512 MiB of available memory is sufficient for evaluation.
Use a dedicated service account and keep administrative endpoints on a private network. The examples below use northstar as the service user.
Download the release from your internal artifact mirror, verify its checksum, and place the binary in /usr/local/bin.
sudo install -m 0755 northstar-edge /usr/local/bin/northstar-edge
sudo useradd --system --home /var/lib/northstar --shell /usr/sbin/nologin northstar
sudo install -d -o northstar -g northstar /etc/northstar /var/lib/northstar
The listener accepts public application traffic. The administrative listener is separate and should never be exposed to the internet.
cat > /etc/northstar/gateway.yaml <<EOF
listener: 127.0.0.1:8080
admin_listener: 127.0.0.1:9090
upstream: https://api.example.com
request_timeout: 30s
stream_flush: immediate
EOF
northstar-edge validate --config /etc/northstar/gateway.yaml
systemctl enable --now northstar-edge
curl --fail http://127.0.0.1:9090/health/ready
02
Configuration is loaded once at startup. Changes are validated before a reload is accepted; an invalid update leaves the previous worker set running.
Separate public and administrative sockets. Loopback is the default for metrics, diagnostics, and configuration operations.
Define multiple origins with bounded connection pools, explicit timeouts, and passive health tracking.
Apply header allowlists, body limits, and route-specific deadlines without changing application code.
routes:
- name: documents
match:
path_prefix: /v1/documents
upstream: document-api
timeout: 20s
headers:
allow: [accept, authorization, content-type, x-request-id]
limits:
request_body: 2MiB
concurrent_streams: 128
Route order matters. Put the most specific path first and finish with a catch-all route that returns a controlled 404 response.
03
Long-lived responses use incremental delivery. Disable response compression on streaming routes and keep intermediary buffers small enough that events reach clients promptly.
curl --no-buffer https://edge.example.com/v1/events \
-H 'Accept: text/event-stream' \
-H 'X-Request-ID: 7b9d4f32'
Each event contains an identifier, an event name, and a UTF-8 data payload. Clients should resume from the last acknowledged identifier after a reconnect.
id: 01842
event: document.updated
data: {"document":"spec-17","revision":42}
If you place another proxy in front of Northstar, use unbuffered upstream delivery and disable gzip or zstd for this route. Static assets can continue to use compression.
04
Operational readiness depends on more than a running process. Monitor upstream latency, stream disconnects, file descriptors, and memory alongside ordinary request metrics.
northstar-edge validate --config /etc/northstar/gateway.yaml && \
systemctl reload northstar-edge
journalctl -u northstar-edge --since '-2 minutes'
05
Keep the data plane and control plane separate. Public listeners should expose only documented application routes; administration belongs on a private overlay or loopback interface.
NORTHSTAR_CONFIGOverrides the default configuration path.
NORTHSTAR_LOG_LEVELAccepts error, warn, info, or debug.
NORTHSTAR_SHUTDOWN_GRACEControls how long workers wait for active streams during shutdown.
/health/live reports process liveness. /health/ready additionally checks configuration validity and upstream availability. A ready instance returns HTTP 200 with a short JSON document.
{"status":"ready","config_revision":18,"upstream":"healthy"}
Improved stream cancellation, added bounded upstream pools, and made configuration reloads atomic. Administrative listeners now default to loopback on new installations.
Last documentation update: November 2026 · Operator guide revision 18