SAService Architect Back to designer
SAService ArchitectDocumentation
Framework lifecycle ServiceGenerated::start / stopRuntime

C++ Boost lifecycle

Boost.Asio coroutine makers, generated HTTP activation, graph drain, and runtime release.

When to use

Use this page when implementing maker hooks, owning resources, or diagnosing startup and shutdown.

Behavior

  • Generated makers return boost::asio::awaitable results before graph activation.
  • initRuntime constructs router, server, clients, functions, streams, and endpoint bindings.
  • ServiceApp::start activates resources; generated HTTP admission opens afterward.
  • Stop drains graph work while callers and streams live, then stops Sinks and execution runtime.

C++ Boost startup sequence

C++ Boost shutdown sequence

  • The generated HTTP server uses the service shutdown timeout.
  • Graph callbacks may emit results while draining, so Sinks stay alive.
  • stopRuntime and releaseRuntime cover normal stop, rollback, and destruction.

Hooks and boundaries properties

Generated extension points and runtime-owned lifecycle boundaries.

PropertyTypeDescription
initMakersgenerated

Assigns coroutine factories.

customMakersInitvirtual hook

Replaces factories before invocation.

initRuntimegenerated

Awaitably creates objects and binds graph.

http_server_->Startadmission

Opens HTTP after ServiceApp is ready.

stopRuntimegenerated

Coordinates server stop, drain, and release.

Lifecycle outline

configure -> make once -> bind -> start -> admit -> drain -> stop