Multi-tenant application on Windows Azure

一笑奈何 提交于 2019-12-20 04:30:34

问题


We want to create multitenant application with shared database table structure.

Currently with standard SQL Server we could achieve that with providing TenantID for each table.

Could we achieve the same on Windows Azure, but without TenantIDs?

Best regards, Alexey Zakharov


回答1:


The question was about another thing. I want to know if Azure SQL provide multi tenant database with shared schema as a feature. – Alexey Zakharov May 21 at 6:00

The short answer is that it doesn't. SQl Azure is essentially (a large subset of) SQL Server.




回答2:


I would think you'd want to do the same thing (use a TenantID column in SQL Azure or in Windows Azure tables).




回答3:


I concur with the answer smarx gave you, but also consider this: If you have multiple tenants and this drives you above a SQL Azure size limit (say, 1GB or 10GB), you'd need to make a jump to the next-larger database, and this could increase your cost beyond what you want:

  • 1GB: $10 monthly
  • 10GB: $100 monthly
  • 50GB: being released in June, presumably 5x10GB cost

So in the case where you're under the 1GB limit with one tenant, but over 1GB with, say, 2-5 tenants, it would be more cost-effective to set up separate 1GB databases for each tenant, and then manage this sharding in your business tier, based on TenantID.



来源:https://stackoverflow.com/questions/2872732/multi-tenant-application-on-windows-azure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!