Port binding
Export services via port binding.
- Web apps are often executed inside webserver containers.
- Apps are completely self-contained and don't rely on runtime injection of a webserver into the execution environment to create client-facing services.
- Services export their native protocol by binding a port and listening for traffic on it.
- Routing differs:
- Local development environments just use ports on
localhost
. - Production environments have some kind of API gateway for this.
- Local development environments just use ports on
- This enables one app to be a backing service for another by referencing it in the consuming app's Configuration.
References
Backlinks