How would you implement a multi-tenant architecture?

Technical