Port Binding
The app is self-contained — it does not require a runtime injection of a webserver (Apache, nginx) into the execution environment.…
$ prime install @backend-architecture/rule-port-binding Projection
Always in _index.xml · the agent never has to ask for this.
PortBinding [rule] v1.0.0
The app is self-contained — it does not require a runtime injection of a webserver (Apache, nginx) into the execution environment. The app exports HTTP (or any protocol) by binding to a port that the environment hands it. The platform routes external requests to that port.
Loaded when retrieval picks the atom as adjacent / supporting.
PortBinding [rule] v1.0.0
The app is self-contained — it does not require a runtime injection of a webserver (Apache, nginx) into the execution environment. The app exports HTTP (or any protocol) by binding to a port that the environment hands it. The platform routes external requests to that port.
Checks
- The app reads a PORT env var and binds it itself (Express app.listen, Go http.ListenAndServe).
- No assumption that nginx is in front; the app must function as the public-facing server.
- Reverse proxies / load balancers are infra concerns layered above, not preconditions.
- This applies to non-HTTP services too — bind a port, speak whatever protocol.
Label
Export services via port binding; the app is self-contained
Loaded when retrieval picks the atom as a focal / direct hit.
PortBinding [rule] v1.0.0
The app is self-contained — it does not require a runtime injection of a webserver (Apache, nginx) into the execution environment. The app exports HTTP (or any protocol) by binding to a port that the environment hands it. The platform routes external requests to that port.
Checks
- The app reads a PORT env var and binds it itself (Express app.listen, Go http.ListenAndServe).
- No assumption that nginx is in front; the app must function as the public-facing server.
- Reverse proxies / load balancers are infra concerns layered above, not preconditions.
- This applies to non-HTTP services too — bind a port, speak whatever protocol.
Label
Export services via port binding; the app is self-contained
Label
Export services via port binding; the app is self-contained
Source
prime-system/examples/backend-architecture/primes/compiled/@backend-architecture/rule-port-binding/atom.yaml