Skip to content

Guides

Comprehensive guides for building production multi-tenant applications with fastapi-tenancy.

Isolation strategies

How tenants' data is kept separate at the database layer.

Resolution strategies

How the current tenant is identified from each HTTP request.

  • Overview — choosing a resolution strategy
  • HeaderX-Tenant-ID header
  • Subdomainacme.example.com
  • Path/tenants/acme/orders
  • JWT — bearer token claim
  • Custom — write your own resolver

Tenant storage

Where tenant metadata lives.

Other topics