3层架构 [英] 3 Tier Architecture

查看:72
本文介绍了3层架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题问我采访。



1.我们可以在单独的服务器/机器上开发3个不同的层(表示层,业务层和数据访问层)吗?



2.then如何将以上层中的一层导入另一层3轮胎架构?

如果是,那么我们如何访问它?



例如,如果我在单独的服务器上开发DataAccessLayer,那么我们如何将这个层用于已在不同服务器/机器上开发的Presentation层?

This question ask me interview.

1.Can we develop 3 different layers(Presentation layer,Business Layer and Data Access Layer) on separate server / machine ?

2.then How to import one of above layer into another layer of 3 tire architecture ?
If yes,then How can we access it ?

for example if i develop DataAccessLayer on separate server then how can we use this layer into Presentation layer which is already developed on different server/machine ?

推荐答案

嗨..

见这个!

3层架构在.Net [ ^ ]

HTTP:// WWW .aspdotnet-suresh.com / 2010/05 / introduction-to-3-tier-architecture-in_17.html [ ^ ]

http://aspdotnet-learn.blogspot.in/2013/08/3-tier-architecture-example- in-aspnet.html [ ^ ]

谢谢你。
Hi..
See this one!
3 Tier Architecture In .Net[^]
http://www.aspdotnet-suresh.com/2010/05/introduction-to-3-tier-architecture-in_17.html[^]
http://aspdotnet-learn.blogspot.in/2013/08/3-tier-architecture-example-in-aspnet.html[^]
Thank u.


  1. 是的,你可以
  2. 这个问题毫无意义。它没有定义什么是导入;这个词不正确。图层没有导入关系。





但是,最后一句中的问题确实有意义。答案取决于实施数据访问层所使用的技术。通常,它可以实现为某种Web服务(特别是与ASP.NET相关的体系结构相关的问题标记),从广义上来说。然后另一层(可能是BL,而不是直接表示层)可以作为其客户端与此服务进行通信。请参阅:

http://en.wikipedia.org/wiki/Web_service [< a href =http://en.wikipedia.org/wiki/Web_servicetarget =_ blanktitle =New Window> ^ ],

http://en.wikipedia.org/wiki/List_of_web_service_specifications [ ^ ],

http://msdn.microsoft.com/en-us/library/t745kdsh%28v=vs.90%29.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/ms972326.aspx [ ^ ] ,

http://quickstarts.asp.net/QuickStartv20/webservices/default.aspx [ ^ ],
http://msdn.microsoft.com/en -us / library / hh156544%28v = vs.110%29.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/ms951274.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/ms730214%28v=vs.110%29.aspx [< a href =http://msdn.microsoft.com/en-u s / library / ms730214%28v = vs.110%29.aspxtarget =_ blanktitle =New Window> ^ ]。



-SA



However, the question in your last clause does make sense. The answer depends on the technology used in implementation of the Data Access Layer. Very typically, it can be implemented as some kind of Web Service (especially in relation to architectures related to ASP.NET mentioned as a tag to your question), in wide sense of this word. Then the other layer (presumably BL, not directly Presentation Layer) could communicate with this Service acting as its client. Please see:
http://en.wikipedia.org/wiki/Web_service[^],
http://en.wikipedia.org/wiki/List_of_web_service_specifications[^],
http://msdn.microsoft.com/en-us/library/t745kdsh%28v=vs.90%29.aspx[^],
http://msdn.microsoft.com/en-us/library/ms972326.aspx[^],
http://quickstarts.asp.net/QuickStartv20/webservices/default.aspx[^],
http://msdn.microsoft.com/en-us/library/hh156544%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/ms951274.aspx[^],
http://msdn.microsoft.com/en-us/library/ms730214%28v=vs.110%29.aspx[^].

—SA


您的问题在这里得到解答:

N层架构和技巧 [ ^ ]
Your questions were answered here:
N-Tier Architecture and Tips[^]


这篇关于3层架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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