Re:Ask HN: How come there is no example code for B2B-SaaS apps?
by HatchedLake721 on Sunday May 03, 2020 @04:51AM
(#23057803)
The highest level entry point makes so much sense. I’ve been building multitenant saas for last 3 years enforcing “where tenant = x” and you’ve just blown my mind.
[ Parent
| on HN ]
Re:Ask HN: How come there is no example code for B2B-SaaS apps?
by hackerm0nkey on Sunday May 03, 2020 @07:22AM
(#23058344)
On more than one occasion I've started with a simple table for all tenants (where tenant = x) because we didn't know at the time if we will have many.
Then progressively when we understood how the service will be used, refactored to keep separate tenant's data separate.
Ended up with each tenant in a given schema, we were using Java and relied on Hibernate (ORM) to help connecting to the correct DB (it does support multi-tenancy) as well as on a DB migration tool (Liquibase) so any changes we made to the schema get replicated over all tenants.
Re:Ask HN: How come there is no example code for B2B-SaaS apps?
by thrownaway954 on Monday May 04, 2020 @12:07PM
(#23069702)
that's why we're here... learning something new everyday is a great things. now imagine how cool it will be implementing this is your projects from here out :)