Setu-TS
    Preparing search index...

    Interface CustomDiscoveryOptions

    The 'custom' arm — the application's own backend.

    0.2.0

    interface CustomDiscoveryOptions {
        cacheTtlMs?: number;
        discovery: DiscoveryProvider;
        ejection?: false | EjectionOptions;
        provider: "custom";
        selfRegistration?: SelfRegistration;
        strategy?: LoadBalanceStrategy;
    }

    Hierarchy

    • CommonDiscoveryOptions
      • CustomDiscoveryOptions
    Index
    cacheTtlMs?: number

    Milliseconds a resolved instance list is served from cache.

    0 disables caching so every resolve hits the backend. A watched service invalidates its own entry on every change, so this is a safety net rather than the primary freshness mechanism.

    The provider, used as supplied.

    ejection?: false | EjectionOptions

    Outlier-ejection tuning, or false to disable ejection entirely.

    provider: "custom"

    Discriminant.

    selfRegistration?: SelfRegistration

    Advertise this instance to the backend (Consul only).

    Default selection strategy; PickOptions.strategy overrides it per call.