Jan 3 2010

Coding For Application Mobility - Clustering

Posted by Mike Brunt at 9:49 PM Web Servers | .NET | DataBase | CloudComputing | ColdFusion | JRun-J2EE


One thing we have stressed at everyone of our presentations on clustering ColdFusion,  is the need to code from day one with the assumption that one day there will be multiple copies of the code.  What that means is that we need to avoid anything that is server/network specific.

We are currently assisting a client to move to clustering from a single web-CF server and they have had to spend hours recoding parts of the application which were server specific. 

Here are our guidelines  as to what to avoid...


  • IP Addresses: Avoid the use of IP Addresses totally in code, whether they be internal and specific to the server the code is running on or any external servers.  IP Addresses will change, whether it be because of the move to multiple servers for clustering, the move to a new hosting company etc.
  • Directory Paths: Never hard code directory paths in code, once again they can change.
  • Server (Host) Names: Here again we should avoid using server names in code, there is always the chance that they will change.


The broad view is to avoid the use of anything that is related to the environment the code is running in.  One more tip, please also avoid storing this values in an external mechanism, such as a database that is almost the worst of all as we cannot search for those values in the code itself.



SEO link vine

SEO link vine wrote on 04/18/10 8:45 PM

I know about Java. But I don't know about VMware. What is it ? Is it any kind of software or platform or framework ? If more information, post here.

zentai wrote on 05/27/10 1:13 AM

Please trust us. Choose us! spider man costume.We will bring you more exciting zentai unitard and better service.
solo hd

solo hd wrote on 05/03/11 12:11 AM

This <a href="http://www.solohdheadphone.com">solo hd</a> of headset timbre and its appearance style are very alike -- again, very thin. <a href="http://www.solohdheadphone.com">beats solo hd</a> voice very open seem a bit too thin, <a href="http://www.solohdheadphone.com/fabulous-monster-limited-edition-gold-c-81.html">Fabulous Monster Limited Edition GOLD</a> low frequency partial hard, descend not beautiful but speed feeling good. <a href="http://www.solohdheadphone.com ">discount solo hd</a> hf performance is good, accurate and not mellow, intermediate frequency performance is regular. Overall <a href="http://www.solohdheadphone.com/classic-monster-powered-isolatio-black-s-c-102.html">Classic Monster Powered Isolatio black</a> voice more features, more suitable for listening to electronic music or part of the pop.
chaussure foot mercurial

chaussure foot mercurial wrote on 10/28/13 4:16 AM

great,make people truly feel harmony and normally want checking your site.
cheap nike mercurial

cheap nike mercurial wrote on 12/15/13 1:16 AM

It's Great web site,It is worth it to read.

www.scorespro.com wrote on 02/09/15 3:05 AM

Primera Liga would be the First Scale of Spain's Liga de Fútbol Profesional or maybe Professional Footballing League and is also known for the reason that Liga BBVA as soon as the bank of which sponsors the item. It's essentially the most glamorous in addition to competitive leagues on this planet and this crowning honor of footballing in The nation.

www.oreskylaw.org wrote on 03/02/15 3:16 AM

Mots people human animals resist alter. We anticipate everything to stay the exact same, we expect items to last permanently, we anticipate the not possible. Because prior to the Regulation of Motion, the Regulation of Development, the Regulation of Vibration and also the Law associated with Change everything is within constant movement and alter.

www.theinjurylawnews.org` wrote on 03/02/15 3:16 AM

Injury law blogs would be the right tools that you should be up-to-the-minute will all of the latest happenings on the planet of regulation. For example, such regulation blogs will help you decide in case your case is worth legal rendering. There isn't any point in spending some time and profit fighting the losing fight.

www.thetexaslawyer.org wrote on 03/02/15 3:16 AM

If you want a attorney, it will be is suggested that you simply locate a Texas Attorney. These attorneys have made dedication to help to make their phrases a relationship, giving their own service for you regardless of what your interpersonal status within life might be.

www.publicbusinesslaw.org wrote on 03/02/15 3:17 AM

Company Law Before you begin a company, legally, you have to obtain any kind of business permit or enables required legally. Doing therefore will identify your company, protect public safety and health and assist you to keep an eye on your financial situation for taxes purposes.

www.mypetshop.org wrote on 03/02/15 3:17 AM

Dog shops are appeared to be one associated with few companies which have not suffered economic downturn. Well-known trade-marks for example Pedigree, Chappy, Whiskas, KiteKat indefatigably motivate us through TV screens to purchase food as well as toys for the pets.

www.petsspark.org wrote on 03/02/15 3:17 AM

For many, pets are family. And as a result, we ruin them the same as we do our kids. It isn't unusual to come across friends that indulge their own pets to the stage it seems your pet already offers everything.

www.hotpet.org wrote on 03/02/15 3:18 AM

You should know that with regards to natural treatments whether for you personally or your dog, you should try a number of different remedies, and you will find usually a lot more than just 1, as character is filled with medicinal useful qualities. Each dog in it is breed is exclusive and exactly what works for just one may or might not work with regard to another.

johnwilliams wrote on 06/09/15 7:40 AM

Best Fathers Day Images, Messages, Pictures,wishes,Wallpapers,sms,greetings, Cards,Fathers Day Poems,Quotes To Share On Whatsapp,Facebook,Twitter And Other Social Media.
<a href="http://www.happyfathersday.net.in/">happy fathers day quotes</a>

johnwilliams wrote on 06/22/15 1:14 AM

Fourth of july 2015 Images, Messages, Pictures,wishes,Wallpapers,sms,greetings, Cards,Quotes To Share On Whatsapp,Facebook,Twitter And Other Social Media.

johnwilliams wrote on 07/26/15 2:21 AM

Collection of best friendship day images, pictures, messages, quotes, sms, pics, greetings, cards, wishes, wallpapers, photos for sharing on whatsapp, facebook, twitter and other social media.
free font

free font wrote on 08/07/15 2:26 AM

Truly decorous Internet performer entirely, an appropriate confidential alternative determine a trend numerous processs earlier watching your protected perpetrate. That is very highly rated in protocol to reward lacking which normally steadily, the theifs to escalate this gentle of cosmos.

برامج wrote on 07/19/16 11:24 PM

nice post
برنامج الاذان

برنامج الاذان wrote on 07/19/16 11:28 PM

I am happy to find this post very useful for me, as it contains lot of information. cdsvsdvsdvs Thanks for your sharing good info.
مواقيت الصلاه

مواقيت الصلاه wrote on 07/19/16 11:34 PM

going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives in depth information.

ماسنجر wrote on 07/19/16 11:43 PM

load testing of Zeus as yet but will be doing so