Web / Apache OFBiz Interview questions
How does OFBiz support multi-tenancy?
OFBiz supports multi-tenancy at the delegator level: each tenant gets its own delegator name mapped, via entityengine.xml and the Tenant/TenantDataSource entities, to either a separate schema or an entirely separate database, while sharing the same deployed application code.
A tenant is identified from the incoming request (commonly via a subdomain or URL parameter), and the framework swaps in the matching delegator for that request's duration, so every entity call transparently targets the right tenant's data without application code needing tenant-aware branching logic.
This differs from a "shared schema with a tenant_id column" approach used by some SaaS platforms - OFBiz's model gives stronger data isolation between tenants at the cost of managing more schemas or databases operationally.
More Related questions...