ConfigurationConfiguration Load Flow

Configuration Load Flow

The diagram below shows how ConfigurationManager.load() processes sources from lowest to highest priority.

Configuration Load Flow

The diagram below shows how ConfigurationManager.load() processes sources from lowest to highest priority.


Worker API flow


Source interface

interface IConfigurationSource {
    readonly sourceType: string;
    load(): Promise<Partial<IConfiguration>>;
}

Any class implementing IConfigurationSource can be inserted into the pipeline, making it straightforward to add Terraform, remote API, or database-backed sources in the future.