3层架构超过2层架构的实时优势是什么?为什么我们使用3层建筑? [英] what is the real time advantage of 3 tier architecture over 2 tier architecture? why we use 3 tier architure?

查看:100
本文介绍了3层架构超过2层架构的实时优势是什么?为什么我们使用3层建筑?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我谷歌..以获得2层架构的3层架构的好处,但没有完全满意。 3层架构使代码比双层架构更复杂。我无法弄清楚3层架构的实际好处。

解决方案

看来你在这里的层和层...

层是指应用程序中关注点的逻辑分离,其中层是指应用程序的物理分布...

分发超过2层(客户端 - 服务器)的应用程序具有为应用程序获取更多物理资源的优势(例如在专用服务器上运行SQL,与Web服务器分离)。将应用程序物理分离到不同的层也可以帮助解决一些安全问题(DMZ上的Web服务器和防火墙后面的SQL)。

设计和维护这样的应用程序确实要求更高,但确定类型和一定的大小它是设计...


尝试阅读这个以供参考

3层架构

i google.. to get benefits of 3tier architecture over 2 tier architecture but not get fully satisfied. 3tier architecture makes code more complex than two tier architecture. i can't figure out practical benefits of 3 tier architecture.

解决方案

It seems you confused between tier and layer here...
Layer refers to the logical separation of concerns in an application, where tier refers to the physical distribution of an application...
Distributing an application over more than 2 tiers (client-server) has the advantage to get more physical resources fro your application (like running SQL on dedicated server, separated from web server). Physical separation of an application to different tiers also can help solve some security problems (web server on DMZ and SQL behind firewall).
It's true that designing and maintaining such an application is more demanding, but with certain type and certain size it's amust have design...


try to read this for some reference
3-Tier-architecture


这篇关于3层架构超过2层架构的实时优势是什么?为什么我们使用3层建筑?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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