Tech Note: Ajax and Timers and Tunes, Part 2

Charles Johnsonfollow me on twitter
Wed Jul 30, 2008 at 5:41 pm PDT • Views: 143

After evaluating the impact of our new live updating code for the “Now Playing” section of the left sidebar, I’ve decided to limit the live updates to registered, logged in users. At our normal peak traffic times, with thousands of browsers checking the server at 30 second intervals via Ajax, the system load was getting a bit too high for comfort.

I even tried caching the output, and storing it on the database server instead of the web server’s file system, but it looks like the bottleneck is the sheer number of simultaneous connections.

So to see the live updates, you’ll need to be logged in to an LGF account.

(I’m not doing all this simply to share my music tastes with the world, by the way. There are many interesting “live update” possibilities that could result in cool new features for LGF. All data is good.)

Advertisement

78 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Account Settings Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► LGF Hits

► Resources

► Never Forget

► Statistics

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

The lowest of the low.

TwitterFacebook
LGF Pages
Recent Pages

Channeling Confucius
Santorum's Well-Compensated Love of Fracking
8 minutes ago
Views: 8 • Comments: 0
Tweets: 0 • Rating: 0

Channeling Confucius
Washington's Governor Signs Gay Marriage Into Law - the Atlantic Wire
10 minutes ago
Views: 5 • Comments: 0
Tweets: 0 • Rating: 0

Channeling Confucius
Government Rejects Pardon Request for Alan Turing
15 minutes ago
Views: 10 • Comments: 0
Tweets: 0 • Rating: 0

Charleston Chew
A Guide To Candidate Archetypes, part 2
34 minutes ago
Views: 14 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Analysis: Smart Politics Trumps Policy in Obama Budget
48 minutes ago
Views: 45 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Could Mitt Romney Lose to Rick Santorum in Michigan?
48 minutes ago
Views: 38 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Plotting War or Recreation? Hutaree Militia Trial Ends First Day
48 minutes ago
Views: 36 • Comments: 0
Tweets: 0 • Rating: 0

researchok
At Least Your Money Can Live Like a Millionaire's
49 minutes ago
Views: 29 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Activists: Syrian Rebels Repel Attack on Town
49 minutes ago
Views: 33 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Voice From Inside Syria: World Powers Are the Only Hope for Resolution
50 minutes ago
Views: 38 • Comments: 0
Tweets: 0 • Rating: 0

 Frank says:

We could jam in Joe's garage,
we didn't have no dope or LSD,
but a coupl'o'quarts o'beer,
would fix it so the intonation,
would not offend your ear.