Repository navigation
Release v5.19.0
Stage now starts extension backends when something needs them, stops them when they are idle, and runs each one in the tier that fits it, so fifty extensions no longer mean fifty always-on containers.
Added
- Execution tiers for backends that come from extension packages: no process for frontend-only extensions, a shared host per runtime (
dotnet,node,jvm) that isolates the extensions it loads, a native process, or a dedicated container. The deployment decides what may share a host withStage:Extensions:Execution:Sharing; anything else needs a container configured underContainers, and a system without one is refused with a message that names the setting. - Lazy activation: a backend starts on the first ability call, proxied request or delivered inbound request that needs it, stops after its idle timeout (ten minutes by default) when nothing is in flight, and starts again for the next call. A call that finds its backend stopped waits for the start and is not lost.
- Activation policy: the extension contract's default, overridden by the system's own
activation always | on demand [idle after <n> <unit>]line in the model.alwayskeeps the backend running and starts it again if it fails. - Frontend-aware activation: reaching a screen that places an extension component starts that extension's backend before the component's first call, with
POST /stage/extensions/activation/screens/{screen}. Reaching the screen is the trigger and mounting a component is not; the reasoning is in the documentation. Which systems a screen places comes fromIScreenExtensionUsage, which is empty until screens can use extension components (Cratis/Screenplay#1255). - Workbench visibility:
GET /stage/extensions/activationand a script-free page at/stage/extensions/activation/viewshow each extension's tier, state (inactive, starting, active, stopping), policy, last activation and any reason it could not start. - Documentation: Execution tiers and activation, linked with the extension packages page, the Screenplay systems overview and settings page. Part of Cratis/Screenplay#1248. (#1066)
Changed
- Receiving an inbound webhook no longer waits for a cold start: it is stored and acknowledged, and the backend starts when the stored request is delivered.
IExtensionEndpointsgainsKnows, which implementations that only resolve endpoints get for free. IExtensionPackagesgainsSystems, which lists the systems of the model that name an extension. A custom implementation must add it.