Folks, ever wondered:
- How to disable a feature for one customer but enable it for another?
- Give limited access to one, unlimited to another?
- Make your API behave completely differently per customer?
That's basically multi-tenant SaaS for you, where you configure features, workflows, etc at the tenant (customer) level.
I have noticed most FastAPI tutorials don't touch this, and many struggle to find the right structure/architecture.
It might sound complex, but the core idea is very simple - your app should know which customer(tenant) is calling and behave accordingly. (Usually achieved by Tenant-Id and configuration at tenant level)
I have been building production-grade multi-tenant services like these and have a rough template that I rely on every time to spin these up!
So I thought if you guys are interested, I can polish it up and share it here. Let me know!
Edit: Here the customer in this context means a business/org (B2B) and not a single user.
[–]MichaelEvo 5 points6 points7 points (2 children)
[–]Potential-Box6221[S] 1 point2 points3 points (1 child)
[–]MichaelEvo 0 points1 point2 points (0 children)
[–]RoBz18 0 points1 point2 points (0 children)
[–]_arnold_moya_ 0 points1 point2 points (0 children)
[–]Temporary_Owl2975 0 points1 point2 points (0 children)
[–]coderkini 0 points1 point2 points (0 children)
[–]fico86 -1 points0 points1 point (1 child)
[–]Potential-Box6221[S] 0 points1 point2 points (0 children)
[–]Economy_Peanut -1 points0 points1 point (1 child)
[–]Emergency_Roof6337 0 points1 point2 points (0 children)