Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-05-2006, 07:15 AM
AjiNIMC's Avatar
WebProWorld Pro
 

Join Date: Aug 2004
Location: India
Posts: 268
AjiNIMC RepRank 0
Default If the 3rd party js server is down, it hangs the site

Hi,

I am developing a js based application for other sites (like website counter) where the js runs from my server. Now the problem is that if my server goes down or become slow it effects all the other syndicated sites.

Is there a way out?

Let me put it in other words,
My Server is xyz.com
I provided a script xyz.com/script.js to 123.com. Now if 123.com is putting this code inside one of its pages say index.html. Now index.html of 123.com has code which says script src="xyz.com/script.js".

Now if xyz.com is not responding it is hanging 123.com as well. Is there a way out?

Thanks,
AjiNIMC
Reply With Quote
  #2 (permalink)  
Old 09-06-2006, 04:31 AM
sands's Avatar
WebProWorld Veteran
 

Join Date: Sep 2005
Location: Kerala, India
Posts: 397
sands RepRank 1
Default

Quote:
Is there a way out?
Sure! Go for another server. Your server has no business to go slow or not respond or whatever. If it does, it is not worth keeping, especially if that application is of any importance.

If for some reason you do not wish to change servers, then maybe you could just load the .js file on to another more reliable server and add 2 .js links that call the code to each page, each pointing to the same .js file but on different servers. So if one does not load, hopefully the other would. Should work unless there is something in the code that would not make this feasible.
__________________
My Nook | My Biz | My Photos
Reply With Quote
  #3 (permalink)  
Old 09-06-2006, 04:39 AM
AjiNIMC's Avatar
WebProWorld Pro
 

Join Date: Aug 2004
Location: India
Posts: 268
AjiNIMC RepRank 0
Default Thanks

Thanks for the reply.

Quote:
Your server has no business to go slow or not respond or whatever.
All we can do is be 100% perfect but then still God plays a role :). I am trying to be safe as because of our code others server should never hang even for a sec.

Regards
Aji
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0