Skip to main content
NexusConfig is an init-only record that holds every value required to construct a NexusClient.

Field reference

API key types

Calling GetSecretAsync(...) with a public key throws NexusPublicKeyException synchronously, before the network call.

Where to keep the API key

Anywhere IConfiguration already reads - environment variables, Azure Key Vault, AWS Secrets Manager, your existing secrets pipeline. The SDK never logs the raw key.

Choosing the TTL

The TTL is a tradeoff between staleness window and redundant network traffic. With SSE enabled, changes propagate in milliseconds regardless of the TTL - the TTL only matters as a safety net if the stream falls back.
If SSE is connected, the SDK clamps the effective TTL to at least 60 s - there is no point polling more aggressively when the stream pushes events the moment they happen.