About Tenancy mode in the applications
Introduction
Tenancy mode defines how an application handles and segregates data, users, and resources across different clients or organisations. Selecting the appropriate tenancy mode is crucial for efficient data management, user segregation, and scalability.
For Fab Builder users, choosing the right tenancy mode is essential for performance, security, and future growth. Fab Builder’s intuitive options enable you to tailor the app architecture to suit both small and large-scale needs.
Selecting the Right Tenancy Mode
Choosing the right tenancy mode is crucial to ensure your application meets both business and technical requirements. On Fab Builder, selecting the appropriate tenancy mode can help you optimise performance, security, and scalability, while keeping costs under control. Here are the key factors to consider when making this decision:
1. Scalability Needs: Fab Builder’s Multi-Tenant and Flexible Tenant modes are designed to scale efficiently for businesses with expanding user bases or diverse needs. Single Tenant mode is best suited for organisations that require a dedicated instance to handle high volumes of traffic without compromising performance.
2. Security Requirements: Single Tenant mode offers the highest level of security with dedicated instances, ensuring total data isolation. For businesses that require a balance between security and resource efficiency, Multi-Tenant and Flexible Tenant modes provide secure multi-user environments with robust access controls.
3. Cost Implications: Fab Builder offers cost-effective options with Multi-Tenant and Flexible Tenant modes, allowing you to share resources across multiple tenants, reducing infrastructure costs. Single Tenant mode is more expensive due to the dedicated resources, making it ideal for high-priority use cases.
4. Branding and User Management: For businesses managing multiple brands or franchises, Fab Builder’s Multi-Subdomain mode allows for custom subdomains, enhancing branding and ensuring better user management across different organisational units.
Overview of the Tenancy Modes
Fab Builder Studio offers four tenancy modes, each tailored to specific use cases and organisational needs. Understanding these modes helps users configure their applications for optimal performance, data segregation, and scalability.
1. Single Tenant Mode
- Description: In Single Tenant mode, each organisation or user gets a dedicated instance of the application, ensuring complete data isolation.
- Use Case: Ideal for businesses that require a high level of security, customisation, and isolated environments. This mode is perfect for enterprises with specific needs for data privacy and control.
2. Multi-Tenant Mode
- Description: Multi-Tenant mode uses a shared instance to serve multiple users or organisations, keeping data separated but utilising shared resources.
- Use Case: Best suited for SaaS platforms and applications that serve many clients from a single instance. It’s an ideal choice for users looking to manage multiple clients efficiently, with a focus on cost-effective scaling.
3. Flexible Tenant Mode
- Description: Flexible Tenant mode combines the features of both Single and Multi-Tenant modes, allowing for custom configurations to suit unique needs.
- Use Case: This mode is suitable for applications that require a mix of isolated and shared features, offering a tailored approach for complex environments.
4. Multi-Subdomain Mode
- Description: Multi-Subdomain mode provides separate subdomains for each tenant, enhancing branding and ensuring better resource segregation.
- Use Case: Ideal for organisations managing multiple brands, franchises, or regional operations. This mode is perfect for users on Fab Builder who need to create distinct, brand-specific environments within a single platform.
Implementation in Fab Builder
In Fab Builder, setting up your app’s tenancy mode is simple and flexible. Here’s a quick overview of how it works:
- Start Your Project: You are provided with 3 options "Start from Scratch", "Start with Template," or "Import from Swagger." and can choose anything accordingly. You can also use the "Generate with AI" feature for a more streamlined approach.
- Choose Your Tech Stack: Select your frontend (e.g., React Ant Design), backend (Node.js), and database (MongoDB).
- Set Tenancy Mode: During the setup, choose from four tenancy modes: Single, Multi, Flexible, or Multi Subdomain. Each option caters to different business needs.
- Review and Finalise: After reviewing the details, click "Complete" to finish setup.
Switching Between Tenancy Modes: One of the great things about Fab Builder is that if your requirements change, you can switch between tenancy modes. Fab Builder gives you the freedom to change your setup from a single tenant to a multi-tenant setup as your business grows.
Conclusion
Selecting the right tenancy mode is critical to scaling your app’s security, cost efficiency, and scalability. Fab Builder supports four tenancy modes — Single Tenant, Multi Tenant, Flexible Tenant, and Multi Subdomain to cater to different businesses. Pick a tenancy mode carefully to help your app scale, provide security, and have a strong brand once your business begins to grow.