关于Java数据库架构 [英] About Java Database architecture

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

问题描述

你好朋友。

是不可能的,如果我们使用3 rd 轮胎结构将需要更多时间来执行然后2 nd 轮胎建筑?因为 Bigness Logic 数据库位于不同的系统中。那么我们为什么要最好地使用它??

解决方案

使用3层架构的原因通常不是性能,至少不是唯一的原因。好处在于其他地方。看看例如

- 多层架构 [ ^ ]

- N-Tier架构和技巧 [ ^ ]



关于您对业务逻辑和数据库的评论驻留在不同系统上,在2层应用程序中也是如此。话虽如此,在两种体系结构中执行数据库命令的速度都是相同的。从端到端的总体执行时间可能不同,但这可能不是使用或放弃n层架构的原因。例如,如果应用程序和数据库最初位于同一台计算机上,那么如果将它们分成不同的层,性能可能会变得更好,特别是在它们都大量消耗瓶颈资源(如CPU或磁盘)的情况下

hello friends.
is that not possible that if we use 3rd tire architecture will take more time to execute then 2nd tire architecture? Because the Bigness Logic and Database are at the different System. So Why Should we have top use it...?

解决方案

The reason to use 3 tier architecture is typically not the performance, at least not the only reason. The benefits lie elsewhere. Have a look at for example
- Multitier architecture[^]
- N-Tier Architecture and Tips[^]

Regarding your comment on business logic and database residing on different systems, this is often true also in 2 tier applications. Having this said, the speed of executing the database commands can be the same in both architectures. The overall execution time from end to end may be different but again this probably wouldn't be the reason to use or abandon n-tier architecture. Cosider for example that if the application and the database originally resided on the same computer the performance may get better if they are separated into different tiers, especially in a situation where they both are consuming heavily a bottleneck resource such as CPU or disk


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

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