method IServiceDiscovery.resolve
IServiceDiscovery.resolve(serviceName: string): Promise<readonly ServiceInstance[]>

Lists every instance discovery knows for a service.

Reports what the backend says, so ejected instances are included — ejection is a IServiceDiscovery.pick concern, not a knowledge one. An unknown service name resolves to an empty list rather than throwing.

Parameters

serviceName: string

Logical service name

Return Type

Promise<readonly ServiceInstance[]>

Every known instance, possibly empty

Throws

Error

If the backend fails and nothing is cached

Usage

import { type IServiceDiscovery } from "common/src/index.ts";