Transaction management strategies on high performance application. This is an interesting topic, I guess, since many of enterprise applications have such problem.
Most of the enterprise applications are having a problem of performance because they maintain ACID in every of their transaction. Thus, the transaction will be atomic. Imagine that we have a few transactions, 100 transactions maybe, that we need to maintain the atomic-ity of these transactions for only one action of user (clicking certain button). And definitely, the user of some applications are not only 1, so it will cost more slowness. The more users who access your application at the same time, the more slow of your application will be.
Sometime, we sacrifice performance for application's design. we usually choose to have a good design of the application rather than a high performance of application. For example, the use of ORM, let's say hibernate. Using this kind of ORM, definitely, will slow down your application. But, it will make your application more portable if you want to use another database and also, it will make the code of your application much more maintainable.
This kind of trade off cannot be avoided. It will always exist in every of software development. However, it needs to be assessed and evaluated so that those factors can benefit end user.
One thing that may come on your mind is the use of stored procedure to leverage the performance. Why does stored procedure can be used to leverage the performance instead of having plain sql? Because stored procedure is a precompiled sql statement and also less data being transferred between application and database server. Unfortunately, not many ORM fully support store procedure. The only ORM that I know which supports store procedure is Hibernate. For detail about store procedure can be seen on the link below:
http://docs.jboss.org/hibernate/stable/core/reference/en/html/querysql.html#sp_query
Sunday, July 26, 2009
Transaction, maintainability and performance
Subscribe to:
Post Comments (Atom)
1 comment:
av女優VS檳榔西施
日本美女寫真集
免費貼圖區
免費情色影片觀賞
成人動畫論壇
sogo 成人論壇
kk視訊
激情網愛
網愛俱樂部
網友一夜情聊天室
aa片免費看a片
AA片免費看
百分百貼影片區
百分百貼成人影片區
a片線上看-aa片免費看
百分百貼影片區
百分百成人圖片
百分百貼圖
娛樂百分百
百分百貼圖區
百分百
百分百圖帖
免費色咪咪影片
線上 a片
一夜激情聊天室
男女網愛聊天室
live影音網愛
性愛情小說
色情聊天室
黑澀會美眉無名
色美媚部落格
黑澀會美眉
網心之悸動聊天室
show-live視訊
優質浪女視訊聊天室
女狼俱樂部視訊聊天室
春夫人視訊情人網
玩美女人視訊聊天室
色情豆豆聊天室
Post a Comment