Skip to main content

Module tenancy

Module tenancy 

Source
Expand description

The reference tenancy implementation the binary serves.

A minimal but complete TenancySpi: the partition is the tenant_id body field on ingest (or the x-tenant header on by-id reads, which carry no body), every document gets a _tenant field and a {partition}:{body.id} id with routing, and every partition lives on one shared index. It exists to make the binary runnable and to demonstrate the SPI; real consumers provide their own.

Structsยง

ReferenceTenancy
A single-shared-index tenancy: all partitions share one physical index, isolated by an injected _tenant field.