ulo
ulo
Documentation

Start here

Coming from NestJSNestJS topics, mapped

The model

Protocols

Integrations

Operating

DeploymentProductionDockerSocket activation

Reference

Deployment

Deployment

Release builds, graceful shutdown, containers, and socket activation.

An Ulo application is one binary. Its main names the runtime and the servers, so deployment needs three things beyond a development run:

  • A signal future passed to serve. ulo_runtime_tokio::shutdown_signal() resolves on SIGINT and SIGTERM, and serve then drains in-flight work and returns. Without a signal future the process has nothing to drain on.
  • Timeouts that fit the orchestrator's grace period: drain_timeout and shutdown_timeout on the builder.
  • A listener address reachable from outside the container: 0.0.0.0 rather than 127.0.0.1.

Production

Release builds, configuration, graceful shutdown, health probes, systemd and a reverse proxy.

Docker

A multi-stage image, a static musl build, and compose for dependencies.

Socket activation

Serving on a socket a supervisor opened, so a restart refuses no connection.

Asserting failures

Testing that a mistake is refused: wiring, connect, load and lookup errors read as values.

Production

Release builds, configuration, graceful shutdown, health probes, systemd and a reverse proxy.