Skip to content

Cookbook

From zero to production in 13 recipes. Start at 01 and go in order, or jump to what you need.

The Path (sequential)

Recipes 01-06 build on each other. Start at 01 and work through in order.

#RecipeWhat it adds
01HTTP GatewaySingle MCP provider behind Hangar
02Health ChecksKnow when your provider is dead
03Circuit BreakerStop hammering a failing provider
04FailoverAutomatic switch to backup provider
05Load BalancingDistribute load across multiple providers
06Rate LimitingProtect providers from overload

Standalone Recipes

These recipes can be done independently but assume basic Hangar setup from recipe 01.

#RecipePrerequisite
07Observability: Metrics01
08Observability: Langfuse01
09Subprocess Providers01
10Discovery: Docker01
11Discovery: Kubernetes01
12Auth & RBAC01
13Production Checklist01-06

How to Use This Cookbook

Each recipe follows the same structure:

  1. The Problem — What pain you're solving
  2. The Config — Complete, copy-pasteable configuration
  3. Try It — Step-by-step commands with expected output
  4. What Just Happened — Technical explanation
  5. Key Config Reference — New configuration options
  6. What's Next — Link to the next recipe

Config blocks show the COMPLETE file, not fragments. New additions are marked with # NEW comments.

Released under the MIT License.