Xano Link is designed to enable single-tenant-like solutions to be built on a Xano Instance.
The Xano Link feature is an additional add-on. Please contact your Xano representative or support for details.
Single-tenancy means that a user is on their own dedicated server environment. Their data is completely separated and isolated from any other user. A multi-tenancy environment means users share the same server resources across a shared environment.
Xano Link is a feature that allows you to use a separate workspace for each client (aka tenant). Each workspace is a separate environment with its own copy of all schema, which includes the database, API, Addons, Functions, and Background Tasks. This allows for a single-tenant solution to be built on Xano.
Xano Link still shares the same Instance server resources across all tenants, so Link is not a true form of single-tenancy. However, it is a similar solution through data separation and workspace isolation.
Xano Link provides the Instance owner an interface where they can publish one source workspace to many client workspaces. Changes or updates can be made to the source workspace and published to many client workspaces. This is a manual process so it requires keeping track of which client workspaces need to be updated. It is recommended to use naming conventions for the workspaces to help keep track (e.g. product_name:source, product_name:user_id).
Xano Link can be accessed from the settings of the source workspace.
Accessing Xano Link
Once inside, you can choose to Link APIs, functions, addons, and database tables. Take note of the Select All/None and Auto include dependencies options to assist in ensuring that the Link only merges the data you want. You also have the option to include records from the selected database tables, or only merge the schema.
Select All/None allows you to quickly bulk select or de-select items.
Auto include dependencies will scan and auto-include in the Link any items that are dependent on what you have already selected. For example, if you are choosing API endpoints that include custom functions, the functions will also be merged without you having to select them manually.
Choosing Database Tables and Records
You have the option to choose specific tables and records to merge when using Xano Link. Click on the record count to select specifically which records you want to merge, or select all.
Choosing records to merge
When you use Xano Link to merge database tables, and the destination workspace already has that table created, you will need to change the GUID of the destination table to match, otherwise you will have duplicate tables. The steps below will outline how to change the GUID. Please proceed with caution as you change these advanced settings.
- 1.Head to the source table, click the three dots in the top-right, and choose Security.
- 2.Click "Show Advanced Settings" and copy the GUID that is shown in the box.
Copying the GUID from the source table
- 3.After you've copied the GUID, head to the destination table in the new workspace, and replace the GUID with the copied value from the source table and save your changes.
Once you're ready to publish an update select which client workspaces the update should be pushed to. You also have the option to merge the newly created branch with whatever branch in the target workspace is set to live, and / or set the newly created branch as the live branch.
Merge New Branch with existing Live Branch will merge the newly created branch with the branch in the destination workspace that is currently set to live.
Set New Branch Live will set the newly created branch as the live branch immediately.
Customization on a per-client basis is possible by using additional tables or APIs that are independent of the source workspace. Customization to the schema from the source workspace would get overwritten with any new updates.