multi-tenancy asp.net mvc2
I need to develop a multi-tenant website like
sample1.mysite.com sample2.mysite.com
Hold on! No, this is a different problem from what you are thinking; and before giving me link to another question, please read through.
The only difference in this kind of multi-tenancy is that the target site will remain the same. Only the content/data will be filtered depending on the host s开发者_JAVA百科ite. I do have a partition key for each of these tenant sites.
www.mysite.com >> all data, specific content files (like css, images) sample1.mysite.com >> data specific to sample1, different content files
Need to know best practices regarding this.
Actually, just recently I found this article : http://archive.msdn.microsoft.com/aspnetmvcsubdomains
This solves the problem so far, I have tested it (also, tested the cache per domain) and it seems to work just perfect.
精彩评论