Ask Travis/Mike how the multitenancy is setup for HAPI and document it

Description

None

Activity

Show:
Nikolai Schwertner
October 9, 2020, 9:18 PM

Requested by Scott

Gopal Menon
October 13, 2020, 8:32 PM
Edited

The Logica implementation of multitenancy is through use of a separate schema for each partition. All fhir queries contain the tenant id in the url. Whenever a database connection is needed to be borrowed, the function call contains a tenant id. The database connection that is lent out, contains a reference to a connection pool that contains the schema to use for the particular tenant. This is how the tenant data is kept separate.

Gopal Menon
October 13, 2020, 8:43 PM
Edited

The hapi implementation of Multitenancy is through use of a a partition id in the database that is stored in a column. All tables that store resources will contain a partition id and that is how multitenancy is achieved. fhir queries can contain the partition id in the request or in the request header. The hapi multitenancy implementation has some limitations.
https://hapifhir.io/hapi-fhir/docs/server_jpa_partitioning/partitioning.html#limitations

Gopal Menon
October 14, 2020, 8:54 PM

Attached a document that describes the Multitenancy implementation in the sandbox.

Assignee

Gopal Menon

Reporter

Shilpy Sharma

Labels

None

Priority

Minor
Configure