No Compromises · Joel Clermont and Aaron Saray
Ever feel like a project requirement says "we need multi-tenancy," and you're not even sure what that means in your specific context? In the latest episode of the No Compromises podcast, we discuss how to evaluate multi-tenancy needs before committing to an architectural approach. We break down what multi-tenancy actually means, from separate databases to custom domains and per-tenant configuration, and why the real question isn't which package to use, but whether you need one at all. We also explore when hand-rolling a simple solution beats adopting a full package, what legal and compliance requirements can force your hand, and why this is one of those decisions that's genuinely hard to undo later. 00:00 Defining what multi-tenancy actually means 02:11 Different ways to structure multi-tenant systems 03:44 When separate databases are truly necessary 04:57 Questions to ask before choosing an approach 08:25 Package vs. rolling your own trade-offs 11:30 Silly bit If you want guidance on decisions like these, check out our code review service to get expert eyes on your architecture.
0:00JoelWelcome to No Compromises. A peek into the mind of two old web devs who have seen some things. This is Joel.
0:08AaronAnd this is Aaron. As we go into many different projects as consultants, we see a lot of different architectural patterns.
0:21And one of them that has always been sort of interesting to me is the multi-tenancy sort of setup inside of a Laravel application, when that
0:31Laravel application has to be used over multiple clients. So, it has multiple... I don't even know how to explain it.
0:40So, the idea of multi-tenancy basically being I can use this one single codebase but maybe separate multiple databases.
0:48That's a very simple way of looking at it. There's obviously many more different things.
0:52But the idea, I believe, is to generate some sort of isolation between clients so that there's not any sort of mistakes, I guess.
1:06As you see, I'm having a hard time describing it because... I'm, I guess... What are your thoughts on why people pick
1:12multi-tenancy architectures versus just choosing one directly? And, I don't know, having a client ID where they query on that, or something?
1:21JoelYeah, I think maybe part of the the struggle you're having is like, this is one of those terms that actually means multiple things. Right?
1:29AaronYeah.
1:31JoelBecause you even started talking about number of databases. And I would say, within multi-tenancy, you can have a
1:37true multi-tenant setup that is a single database, or is one per tenant. Like, those are kind of like the two main paths I've seen.
1:45But I was trying to think of how to phrase this, too. Because what you're talking about is like an app with users that can log in,
1:54has isolation between the users. At least, I hope it does. But that's not what I think anybody means when they say multi-tenancy.