多租户 asp.net mvc2
我需要开发一个多租户网站,例如
example1.mysite.com example2.mysite.com
坚持住!不,这和你想的不一样;在给我另一个问题的链接之前,请仔细阅读。
这种多租户的唯一区别是目标站点保持不变。根据主机站点,仅过滤内容/数据。我确实有每个租户站点的分区键。
www.mysite.com>>所有数据、特定内容文件(如 css、图像) example1.mysite.com>>特定于样本 1 的数据,不同的内容文件
需要了解与此相关的最佳实践。
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 site. 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,最近我发现了这篇文章: http://archive.msdn.microsoft.com/aspnetmvcsubdomains
到目前为止,这解决了问题,我已经测试了它(还测试了每个域的缓存),它似乎工作得非常完美。
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.