多租户 Saas 资源
你好 我们正在开发一个项目,并决定采用多租户 Saas 架构 级别 4 和共享数据库共享架构方法,如本页所示 http://msdn .microsoft.com/en-us/library/aa479086.aspx 但我们无法找到起点,即从哪里开始编码。 是否有任何可用的入门套件或任何好的技术资源。我在互联网上找到的只是关于 saas adv/disadv 的一般性讨论。 该项目采用 .net 技术
提前致谢
Hi
We are working on a project and have decided to go with the multitenant Saas architecture
level 4 and the Shared database shared schema approach as shown on this page http://msdn.microsoft.com/en-us/library/aa479086.aspx
But we are not able to find the starting point i.e from where to start coding.
Is there any starter kit available or any good technical resource. what i find on the internet is just the genaral discussion about saas adv/disadv.
This project is in .net technologies
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我对共享模式方法的 2c...
这是我的首选方法(个人偏好),但我认为关键的差异化因素不是业务逻辑,而是数据的检索。这是一种方法。
无论提供什么数据,业务逻辑都将并且应该以相同的方式运行。在代码方面,数据层应该负责根据租户 ID 仅拉取正确的租户数据。可能有人认为租户对数据的过滤也应该在业务层中完成。优点之一是您可以获得额外的好处,即确保您使用的是正确的租户数据。
我认为您不会找到适合 SAAS 应用程序的入门套件。我认为最好的方法是阅读一些已完成项目的代码来帮助您入门。
关于一些资源(由于您没有具体说明具体是什么技术,我提供了与 ASP.NET-MVC 相关的链接)
My 2c on the shared schema approach...
This is my preferred approach(personal preference) but the way I see it is that the key differentiated factor is not the business logic but rather the retrieval of the data. This is one approach.
The business logic will and should operate the same way regardless of the data provided. In terms of code, the data layer should be responsible for pulling only the correct tenants data based on the tenant id. There may be some opinions that this filtering of data by tenant be also done in the business layer. One advantage is that you have the added benefit of making sure you are working with the correct tenant's data.
I don't think you will find a proper starter kit for a SAAS app. The best way in my opinion would be to read the code of a few completed projects to get you started.
On to some resources (since you have not specified what technology exactly, I am providing asp.net-mvc-related links)
您可以查看 ASP.NET Iteration Zero:http://aspnetzero.com/
它是付费的,但有详细的文档记录,并且有一个好的架构。
顺便说一句,它的核心部分是开源的。
http://www.aspnetzero.com/Documents/Developing-Step-By-Step
http://www.aspnetboilerplate.com/Pages/Documents
You can take a look at ASP.NET Iteration Zero: http://aspnetzero.com/
It's paid but well documented and have a good architecture.
It's core part is open source by the way.
http://www.aspnetzero.com/Documents/Developing-Step-By-Step
http://www.aspnetboilerplate.com/Pages/Documents
看看 TechCello。它不仅涵盖多租户架构,还涵盖计费维护等。
我不隶属于他们。我只是碰巧在寻找同样的东西。
Take a look at TechCello. it covers not only the multi-tenant architecture but also maintenance for billing, etc.
I am not affiliated with them. I just happen to be looking for the same thing.