当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: Often, when someone asks how we
 

 

 ·the week that was @ jdj    »显示摘要«
    摘要: if you werent there, a couple of years from now youll misremember and say you were. thats how big - how momentous - web services edge 2001 west and xmledge were. call that late october conferenc......
    摘要:if you were one of the 14,000 developers walking the aisles of the javaone worldwide developers conference in san francisco in june, you likely picked up the buzz that surrounded the issues and opport......


Clustered Timers @ JDJ

often, when someone asks how we are going to scale the web application were about to develop, we look at them, smile, and say, "not a problem - well just cluster the application servers." clustering our application across multiple servers provides us with the ability to handle large volumes of traffic and to scale systems by adding additional servers to the cluster.

in addition to providing scalability, application clusters make the system more robust by allowing for automatic system failover when a server fails. this way when one server goes down the application continues to run, albeit with slightly decreased performance. while it is true that the current generation of application servers makes it relatively pain-free to create a cluster, there are still several significant, if often overlooked, design issues that must be taken into account now that the system is clustered.

when we run our web application in a cluster, we have the exact same software running on each machine in the cluster. while this eliminates a host of configuration management difficulties, it does create other problems. while we dont have to write different code for every possible machine in the cluster, there are times when this simplicity actually makes things more complex; the running of scheduled tasks is typically one of these areas. scheduled tasks are used to execute procedures that need to run at certain fixed times or at fixed intervals. typical examples of scheduled tasks within a web application are report-generation tasks and tasks that send data to external systems that are only available within a certain time frame.

to understand why clustering affects how we design our application to handle scheduled tasks, lets consider a generic e-commerce web application. to allow management to analyze sale
...   下一页

 ·never too rich or too thin @ jdj    »显示摘要«
    摘要:you can never be too rich or too thin. thats what wally simpson might have quipped to her stock trading application had she lived to enjoy the blessings of the internet. indeed, wally may have had a p......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE