如何构建多租户应用程序 [英] how to build a multi-tenant app

查看:173
本文介绍了如何构建多租户应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图构建我的第一个多租户应用程序,我使用共享数据库,现在已经完成,我想现在构建应用程序,我尝试了这种方法:应用程序中的所有网址具有以下形式〜/ user / page.aspx(用户目录是逻辑的)其中user是当前用户,在他登录后保存在会话中。
当用户请求页面时,说〜/ user / profile.aspx,他被路由到页面〜/ profile.aspx,然后他的数据从数据库中检索出来。
我不认为这是多租户应用程序如何以这种方式工作,但我无法想到另一种方法,
帮助plz

感谢 

解决方案

你到现在为止的方式是正确的。页面将根据数据和角色保持不变,页面会发生变化。
根据您的安全要求,您甚至可以考虑为不同的客户分离数据库。
有关如何开发多个数据库的更多信息。租户申请,看看是否有帮助,其他方式让我知道。
http://blogs.msdn.com/lchong/archive/2010/01/21/arcast-tv-special-designing-多租户的应用程序上 - 窗口天青-设有约瑟夫-hofstader.aspx

干杯
巴斯卡尔

hi,
im trying to build my first multi-tenant application, i used a shared database and it is complete now, i want to build the app now, and i tried this approach: all urls in the app have the following form ~/user/page.aspx(user directory is logical) where user is the current user, which is saved in a session after he logs in.
when the user requests a page, say ~/user/profile.aspx, he is routed to the page ~/profile.aspx and then his data are retrieved from the database..
i dont think this is how multi tenant applications work this way, but i couldnt think of another method,
help plz

thanks 

解决方案

The way you have approached till now is correct. Page would remain the same while based on data and role, the page changes.
Based on your security requirement, you can even think of seperating the databases for different customers.
For more on how to develop multi-tenant application, see if this helps, othewise do let me know.
http://blogs.msdn.com/lchong/archive/2010/01/21/arcast-tv-special-designing-multi-tenant-applications-on-windows-azure-featuring-joseph-hofstader.aspx

Cheers
Bhaskar


这篇关于如何构建多租户应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆