SaaS

Multi-Tenancy Trends in SaaS Applications

Multi-Tenancy Trends in SaaS Applications

Multi-tenancy became a “thing” when cloud-based B2B services needed to be more scalable and operational. Today, there’s no arguing that multi-tenancy is the way to go. But why is the SaaS community thinking about multi-tenancy today? Which aspects are vital, and what core assumptions does multi-tenancy rest on?

If you need to get up to speed on multi-tenancy, here’s a break-down of the latest trends and leading concepts governing it today. 

What is a “Tenant” Anyway?

Products use different names for a tenant. Some call it an “Account”, “Customer”, “Workspace”, “Team”, and more. 

All of these names describe a unit that groups a team with its permissions, views, settings, and policies. But most of all, in my humble opinion, “tenancy” is about the business need.  A typical B2B multi tenant SaaS solution provides business value to a specific business, so in our case a tenant is the specific business unit your SaaS offering serves.

What is a Multi Tenancy Model?

In B2B SaaS, multi-tenancy is the ability of a SaaS app to serve several customers (or accounts) from the same codebase, database, and production deployment. Instead of having several separate production instances of your app (Frontend, Backend and Data Layers) you can have one logical instance which serves many accounts, based on a set of permissions and associations.

Note: The environment still can (and should) be distributed and include multiple microservices and databases, which will most likely be separated by business domain rather than by customer.

Different Aspects of Multi-Tenancy

Fifteen years ago, the multi-tenancy discussion was highly technical, because that was the main challenge organizations had to solve. Everyone was moving from years of on-prem software installations that didn’t require a real-time production database to a scalable, secure, and operationally light real-time service for hundreds or thousands of customers at once, running from the same codebase and server.

Standard technical solutions have formed over the years. Now that everybody has a pretty good idea of how to solve multi-tenancy in their backend infrastructure, the discussion has moved to the operational level: development cycles, bug fixes, CI/CD, monitoring and scaling of multi-tenant SaaS environments. 

Standardized solutions are starting to cover the operational side as well. Companies like Atlassian promote and adopt Agile Development flows, and the open-source community promotes Scaling and Monitoring with tools like Kubernetes, Prometheus, Istio and many more.

How do Multi Tenancy Applications Work? 

The next level is the product. How should multi-tenancy work at the user experience level? Should it even be called multi-tenancy in this context, or by some other name that will be more relevant to the business end-user? What are the main requirements and best practices for handling multi-tenancy in your SaaS product? Is a real standard starting to form?

Here are the key assumptions to build into your multi tenant SaaS solution.

Granularity

A standard is already forming on the software engineering side, but regulations, security and privacy are nowhere near as mature. In our experience, every customer will ask for a different permutation of roles, security policies, and settings within your SaaS application. 

Don’t assume that you can define a randomly-determined set of rules in your backend and everyone will align themselves accordingly. They will request their own roles and tenancy hierarchy management, separate authentication policies, geo-centric data privacy rules, data filters, dashboard overviews, geo-location access policy, business settings, and more.

Provide enough granularity for maximum flexibility within your app, so when a customer presents a new requirement (and they will) you won’t need to run a quarterly estimated epic to meet it or lose the deal. You don’t need the highest level of flexibility at the MVP stage, but a mature SaaS product has to enable a rich level of tenant-based granularity for different sets of customers.

Inversion of Control

Supporting a rich and granular set of definitions per tenant is not enough. Customers also want to define, manage, and control these definitions on their own for their specific use cases. 

Self-service, meaning customers can solve product requirements without contacting the SaaS vendor’s support, is becoming a standard requirement for SaaS applications. As a customer, you expect full control over the product: if a concept exists within the app, you can control its properties and settings to fit your requirements. 

This concept is becoming increasingly popular in several SaaS product essentials:

  • SSO – Customers want to configure their own Identity Provider. 
  • Authentication – Customers want to control their password complexity policy and Multi-Factor Authentication (MFA).
  • Roles & Permission Management – Customers want to create and manage their own set of roles based on their requirements. 
  • Event Management – Customers want to onboard their own channels and configure which events they want to receive on which channel.
  • Dashboards & Reports – Customers want to create their own overviews and reports and schedule them when it suits them.

Many more settings and configurations should be manageable by your customers without involving your support.

Read SaaS Multitenancy: Components, Pros and Cons and 5 Best Practices

Multi Tenant SaaS Architecture: Scale for All

The Pareto rule may apply here. In many B2B SaaS cases, especially when a product has an enterprise-facing tier, 20% of your customers will produce 80% of activity within your app. This creates two main challenges:

  1. Allowing Elastic Scalability for Big Customers

In many cases, a customer will start from a Proof of Concept (POC) and then expand their usage of your product. So even if you end up maintaining two product environments, one for heavy-scale and one for small-scale customers, the migration should be seamless: customers shouldn’t notice that they are being moved from one backend setup to another.

  1. Avoiding Small Customer Starvation 

Small customers matter. They usually advance the “thought-leadership” and “bottom-up penetration” approaches. Their user experience shouldn’t be compromised to accommodate the big sharks. Your system must be elastic enough to support small and big customers, with seamless migration between the tiers.

Environment Flexibility

Letting customers control where their tenant physically resides is one of the main requirements for most SaaS products these days. The two main concepts that apply here are Customer’s cloud and Geo-flexibility.

  • Customer’s Cloud

As a SaaS vendor, you may think it’s enough to deploy a multi-tenant system on your own cloud cluster. That’s not quite the case yet. Cloud adoption hasn’t killed on-prem; in many cases, the new on-prem is your customer’s cloud environment.

Many customers will require an installation of your product in their cloud environment, so your multi-tenancy infrastructure should support installing some tenants on the customer’s cloud.

  • Geo-Flexibility

GDPR and other geo-related restrictions on data access and storage mean you need flexibility in where your customers’ data physically resides. Some customers will even need user-based granularity to choose which end-users’ data resides in which geo-location.

Summing up

Multi-tenancy is no longer an engineering-only problem; it is one of the main pillars of B2B SaaS applications. Start by defining the granularity your customers will require, then give them the highest level of self-service control over their account’s configurations. 

At Frontegg, we believe that multi-tenancy is a core B2B SaaS value, one that defines the solution’s maturity level, a make-or-break factor for different types of customers. That’s why we build very flexible and granular tenancy management capabilities. Full multi-tenancy support is embedded in each of our composable SaaS essentials, which we would love to tell you more about.