What is the best multi-tentant-setup if you have b...
# ask-ai
d
What is the best multi-tentant-setup if you have bigquery as a destination?
k
For a multi-tenant setup with BigQuery as a destination in Airbyte, the recommended approach is to use separate datasets for each tenant or source. This can be achieved by leveraging the
CUSTOM_NAMESPACE
option in Airbyte, which allows you to create datasets in BigQuery with custom names. This way, you can organize data by client or project, ensuring that data from different tenants does not get mixed up. Each tenant's data will reside in its own dataset, providing clear separation and easier management of access controls and billing. Here’s a summary of the best practices: - Create a separate BigQuery dataset for each tenant or source. - Use the
CUSTOM_NAMESPACE
option
in Airbyte to control the dataset naming and organization. - This approach helps you avoid data mixing and supports clear multi-tenancy boundaries in your analytics environment. This method is confirmed by Airbyte support in the community forum: > "You can use the
CUSTOM_NAMESPACE
option to create datasets in BigQuery with the name you prefer. With this you can organize among clients or data projects." [Support for Multi Tenancy](https://discuss.airbyte.io/t/411) If you need to manage access to Airbyte itself (so that different groups can only see their own connections, sources, and destinations), you can use Airbyte's workspaces feature. In the open-source version, workspaces are managed via the API, not the UI. Each group can be assigned to a different workspace, further isolating their resources and logs: > "You can definitely use workspaces for this purpose in the OSS version of Airbyte... you need to manage them using the API." [Multitenancy in open-source Airbyte](https://discuss.airbyte.io/t/2492) In summary: - Use separate BigQuery datasets per tenant via
CUSTOM_NAMESPACE
. - Optionally, use Airbyte workspaces (managed via API) for UI/resource isolation. Let me know if you need more details on configuring these options!