Re: Using caching and threading to load a page quickly

2014-10-03 Thread Chris h

Thanks Jonah,

I am sorry for the late reply.

The WordPress's RSS feed is stable but due to excessive resource usage, the 
newswebsite has been suspended a few times after which we had to call the 
Hosting company to restore it. 

To have the rest of the page load and then the feed display later, 
you'll have to use AJAX to pull in a separate CF page clientside. (You'd 
still use caching in the feed.cfm so it'd only be slow occasionally.)

Would the following code http://collabedit.com/tmjwj/history function as 
expected in an environment with less users than actual production?

If the newswebsite is suspended because it is using too many resources on 
shared hosting, the thread reading the feed will timeout in 30 seconds, so 
there will be no results. Will News feed not available be shown?

Or, since the variable #feedResult.entriesNews# had a value from the last 
successful read, those results will be displayed?



Another approach would have the feed fetching functionality in a 
separate template which is run as a scheduled task every 2 minutes. That 
task can shove the parsed (and potentially formatted) feed into the 
application scope. (With a lock.) And then your main page can output 
that variable (with a lock). Then your home page would load as fast as 
it would as if the feed were local.


So, as you suggest, I need to get the feed, write to the machine running CF 
server which will be used if the RSS feed is unavailable, in case the 
newswebsite is suspended again.

I will make the feed loading a scheduled task and have to call it in the 
Application.cfm(I know most people have already moved to Application.cfc) and 
if no response is used, use the previous feed obtained from the past successful 
fetch.


I appreciate your assistance and time.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359404
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CFML restart ACF 10 app server service

2014-10-03 Thread UXB Internet

  explains the problems with CF on shared hosting:
  http://www.michaels.me.uk/post.cfm/why-coldfusion-railo-are-not-
  suited-to-shared-hosting

Interesting article and a nice refresher for anyone running a shared hosting
environment.  It goes to show how the technology has changed over the years.
In 1998 when I started in this business the best solution for a shared
environment was CF because ASP and PHP were not very stable and the web
servers of the time forced them to run in context with the single web server
process.  Therefore a failed ASP or PHP page could easily lock the entire
web server whereas with CF running out of context as a service if bad code
caused CF to lock HTML pages would still be served.


Dennis Powers
UXB Internet - A website Design and Hosting Company 
P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844
W: http://www.uxbinternet.com
W: http://www.ctbusinesslist.com




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359405
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFML restart ACF 10 app server service

2014-10-03 Thread Russ Michaels

actually  asp and PHP always ran as a separate cgi process because they
were always executable or ISAPI, but before the days of application pools,
they were not as isolated as they are now. CF 1 - 5 were the same too as it
was writen in C language and also ran as a cgi process.
The main issue was people not knowing how to setup websites properly and
tune the settings and security, most folks back then (including me) would
just create a site using the default method and settings, which was not
very secure.
Back in those days ASP was for Windows and PHP was for Linux and CF was far
more RAD than both of them.


On Fri, Oct 3, 2014 at 10:36 PM, UXB Internet denn...@uxbinternet.com
wrote:


   explains the problems with CF on shared hosting:
   http://www.michaels.me.uk/post.cfm/why-coldfusion-railo-are-not-
   suited-to-shared-hosting

 Interesting article and a nice refresher for anyone running a shared
 hosting
 environment.  It goes to show how the technology has changed over the
 years.
 In 1998 when I started in this business the best solution for a shared
 environment was CF because ASP and PHP were not very stable and the web
 servers of the time forced them to run in context with the single web
 server
 process.  Therefore a failed ASP or PHP page could easily lock the entire
 web server whereas with CF running out of context as a service if bad code
 caused CF to lock HTML pages would still be served.


 Dennis Powers
 UXB Internet - A website Design and Hosting Company
 P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844
 W: http://www.uxbinternet.com
 W: http://www.ctbusinesslist.com




 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359406
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm