Global Configuration
Overview
global: contains Router-wide settings and shared infrastructure. It is the
counterpart to the route-local routing: tree: define a service or store once
under global:, then opt individual routes into it with signals, algorithms,
or plugins.
Key Advantages
- Defines shared infrastructure once for all recipes and routes.
- Keeps route-local policy separate from platform-wide services.
- Makes model, storage, and external-service dependencies explicit.
What Problem Does It Solve?
Embedding runtimes, APIs, storage backends, observability, and helper services are shared resources. Keeping them outside decisions avoids duplicated connections and makes the data and trust boundaries visible.
When to Use
Use global: for behavior or infrastructure shared by several recipes. Keep
route matching, candidate models, algorithms, and plugins in routing:. Global
settings are shared across recipes; signals, projections, and decisions are
recipe-scoped, while algorithms and plugins belong to individual decisions.