Skip to main content
The local resolver is a small application, provided as a Docker container, that resolves flags locally in your network for improved performance.

How It Works

The local resolver provides the same API as Confidence’s remote resolvers. It fetches all rules and flags from Confidence and stores them locally. When a request comes in, the local resolver can resolve the flag locally without having to make a request to Confidence. This approach offers faster response times for backend services, which is important for providing users a great experience.

SDK Configuration

The SDKs (except for mobile SDKs) have an option for redirecting flag resolution to the local resolver. For example, with the JavaScript SDK:
const confidence = Confidence.create({
  clientSecret: '<flags-client-secret>',
  resolveBaseUrl: 'http://localhost:8090',
  ...
});
The local resolver is typically available at http://localhost:8090 when running as a sidecar.

Sticky Assignments with a Local Resolver

If you want to use sticky assignments with a local resolver, you need access to a low latency key-value storage that can store mappings between entity IDs and variants. Reach out to Confidence support for more information!