Tech Note: Ajax and Timers and Tunes, Part 2

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

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? 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

► 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.

Exceedingly scary.

TwitterFacebook
LGF Pages
Recent Pages

researchok
'I Was Looking Forward to a Quiet Old Age': Instead, Etta Shiber, Helped Smuggle Stranded Allied Soldiers To Freedom
3 hours, 29 minutes ago
Views: 53 • Comments: 0
Tweets: 1 • Rating: 0

Daniel Ballard
Late Afternoon Light-Kalanchoe
11 hours, 10 minutes ago
Views: 98 • Comments: 0
Tweets: 0 • Rating: 4

MikeySDCA
Colin Powell Endorsed Same-Sex Marriage Once It Was Safe, More Evidence He's Hardly a Great Leader.
11 hours, 14 minutes ago
Views: 124 • Comments: 1
Tweets: 0 • Rating: 1

Eclectic Infidel
City College of San Francisco Budget Update
12 hours, 3 minutes ago
Views: 113 • Comments: 0
Tweets: 0 • Rating: 0

Michael McBacon
Kansas governor signs 'Shariah bill' to ban Islamic law
16 hours, 33 minutes ago
Views: 224 • Comments: 6
Tweets: 0 • Rating: 5

Aigle
National Geographic Traveler Veers Off Track
1 day, 16 hours ago
Views: 447 • Comments: 7
Tweets: 0 • Rating: -5

MichaelJ
Apple TV Slated to Debut in December?
1 day, 17 hours ago
Views: 221 • Comments: 0
Tweets: 0 • Rating: 1

Ascher
Israeli Who Saved Turk on Everest: You Never Abandon a Friend - Israel News, Ynetnews
1 day, 19 hours ago
Views: 296 • Comments: 1
Tweets: 0 • Rating: 3

Haywood Jabloeme
The Harrassment of Patterico & Its Roots in Left-Wing Activism
1 day, 19 hours ago
Views: 516 • Comments: 2
Tweets: 0 • Rating: 4

Curt
Brian Banks: (Video) Falsely accused of rape speaks out
1 day, 21 hours ago
Views: 269 • Comments: 2
Tweets: 0 • Rating: 5

 Frank says:

Anyone who is disturbed by the idea of newts in a nightclub is potentially dangerous.