构建企业级应用的六大误区(英文)
2008-01-05 09:29:52 来源:WEB开发网核心提示:构建企业级应用的六大误区(英文) Six Common EnterPRise Programming Mistakes by Brett McLaughlin, author of Building java Enterprise applications Vol.
构建企业级应用的六大误区(英文)
Six Common EnterPRise Programming Mistakes
by Brett McLaughlin, author of Building java Enterprise applications Vol. I: Architecture
04/03/2002
Instead of giving you tips to use in your programming (at least directly), I want to look at some common mistakes made in enterprise programming. And instead of focusing on what to do, I want to look at what you should not do.
Most programmers take books like mine and add in the good things, but they leave their mistakes in the very same programs! So I´ll toUCh on several common errors I see in enterprise programming, and then briefly mention how to avoid those mistakes.
1. It doesn´t matter what data store type you use.
One of the first steps in designing an application is to decide on the data store. It used to be that every application was based upon a database, and this was simply not an issue. However, there has recently been an upsurge in additional options: you can now use relational databases, xml databases, object databases, Directory servers, and more.
As a result, many companies have begun to interchange these different data stores, often without any real thought. If a directory server is cheaper than a database, it is used to replace the database. XML databases are put in place because they are "sexy" and satisfy "technology lust." However, the trend to use any data store for any case is simply absurd; your performance will began to degrade, your code will become overly complex, and you´ll have no idea why.
Each data store has a specific purpose. For example, directory servers are optimized for frequent reads, with few writes. Authentication and searching for names and addresses is a perfect usage of a directory server. However, if you start to add data programmatically to a directory server often, you'll see a degradation in performance. A database is better in this case.
The same sort of choices are important when determining what kind of database to use. For example, using an XML database in an application that never pulls XML directly out of that database is silly. You´re choosing a technology (XML), and then never using that technology.
In my new book, I detail these exact choices. (Yes, it´s more than just a book about Java.) In fact, you´ll learn how to integrate databases and directory servers into the same application, and even how to transfer data back and forth between them.
- ››构建Windows 8风格应用23-App Bar概述及使用规范
- ››构建域名服务器(DNS)
- ››应用云平台的可用性——从新浪SAE看云平台设计
- ››应用程序的配置管理Poco
- ››构建Android平台Google Map应用
- ››构建WinForm 通用速选(全选、反选、清空)组件
- ››应用WebSphere MQ V6 来构建企业信息总线的行业示...
- ››应用 Python 解决一些实际问题
- ››企业级b/s应用系统采用怎样的javascript框架
- ››应用JScript和XML自定义无刷新多级联动菜单
- ››构建Wordpress网站首选的5家国外主机
- ››构建高性能和高弹性 WebSphere eXtreme Scale 应用...
赞助商链接