Host lifecycle — configure · serving · stopping

the framework runtime is tied to host start/stop as its lifecycle service

Host lifecycle — configure · serving · stopping the framework runtime is tied to host start/stop as its lifecycle service start · Architecture component start Configuration · AddZLinkFramework · Architecture component Configuration AddZLinkFramework Serving · channel·SPOT·stream · Architecture component Serving channel·SPOT·stream Stopping · runtime cleanup · Architecture component Stopping runtime cleanup end · Architecture component end CreateBuilder() app.Run() host shutdown

Configuration phase

  • • Declare Services / AddZLinkFramework and channel / SPOT / stream / registry before app.Run(). A bad configuration is rejected as an exception at host startup.

Serving

  • • The stretch where channel·SPOT·stream dispatch runs.

Stopping

  • • Once the host shutdown signal arrives, it goes down in the order hosted service stop → runtime cleanup.