Support for Multi tenant application development

Namaste,

I would like to build multi tenant application using Ruby on rails. How can we leverage the tidb to develop multi tenant application ?

Example from Citusdb is here, Multi-tenant Applications — Citus 11.1 documentation

Thanks.

TiDB is well-suited for developing multi-tenant or SaaS systems

As of now, we do not have developer-friendly examples for building multi-tenant or SaaS apps. However, as you mentioned the example from CitusDB, you can take reference from it. Besides, you can replace the create_distributed_table part with TiDB’s partition table Partitioning | PingCAP Docs.

1 Like

Note that partitioning is not required with TiDB to scale beyond a single node.

For Ruby we have this:

Our developer documentation unfortunately doesn’t have anything specific to Ruby, but it might still be useful:

1 Like

Namaste,

When can I expect code examples for multi-tenant applications ?

Thanks.

We will inform you once we have improved the documentation in this area. TiDB is compatible with MySQL, you can refer to some MySQL and Rails tutorials in a multi-tenant scenario, such as Building a Multi-tenant Ruby on Rails App With Subdomains | AppSignal Blog