port binding

An app offering its service by listening on a network port itself, with its own web server built in.

In more detail

Factor VII of the twelve-factor app: the app is self-contained, binds the port the platform chooses and speaks a protocol over it, and that is its whole contract with the execution environment. The violation is the older model of injecting the app into an external application server.

Example

return int(os.environ["PORT"])  # VII: the platform hands the port down

Related terms

Taught in

References