elfs: (Default)
[personal profile] elfs
Along with Pound and Merb, I found another very important geek toy this weekend: Juggernaut. Juggernaut is going to absolutely change the way the web works, and it's going to do it frigteningly fast. Because Juggernaut destroys the one major complaint we developers have about the web: it's statelessness.

Juggernaut creates a little javascript applet (not java, javascript) on the browser with a permanent TCP/IP connection to the server. Through this connection, it is possible for the server to send events to the client without being polled.

If you have no idea how important that is, don't worry about it. To those of us for whom time-critical events are just that, critical, it makes all the difference. Now, instead of constantly harassing the server and being out-of-date within seconds of the poll, you get real-time data from the server when the server thinks it's significant. It pulls the web into the 20th century: no more busy-waiting, no more collate-without-effect.

Now if only I had something that had a use for it.

Date: 2007-12-04 07:03 am (UTC)
From: [identity profile] phoenix14159.livejournal.com
Wow.

Just... Wow.

This doesn't affect anything I'm doing now, but it would've made systems I've worked on in the past an order of magnitude more elegant.

Wow.

Date: 2007-12-04 07:52 am (UTC)
From: [identity profile] antonia-tiger.livejournal.com
I can see the advantages.

But there are going to be effects on the TCP/IP stack the server uses. Less overhead making and breaking connections, but more resources tied up by connections. Less CPU time, more memory use, perhsps.

To my untutored eye it looks to shift some of the problems from people at your level to the people who have to deal with the actual details of the internet.

The winnage may not be evenly distributed.

Date: 2007-12-04 07:55 am (UTC)
From: [identity profile] duskwuff.livejournal.com
To be fair, it requires Flash. I was hoping they'd discovered some clever way of doing it in pure JS, but alas - they haven't.

Also, I think you mean that this "pulls the web into the 21st century". Otherwise, that's rather a unimpressive feat. :P

Date: 2007-12-04 08:35 am (UTC)
ext_74896: Tyler Durden (Default)
From: [identity profile] mundens.livejournal.com
Um, this isn't really new, and last time the equivalent came around with what were called "push technologies" it failed miserably. There just wasn't any real point.

Also, it puts a additional load on the server and makes server farming and fail-over impossible.

Don't you know who I am?

Date: 2007-12-04 10:27 am (UTC)
From: (Anonymous)
I'm the Juggernaut, bitch!

(Sorry... someone had to say it..)

Date: 2007-12-04 09:23 pm (UTC)
From: [identity profile] dossy.livejournal.com
This isn't as life-changing as you make it out to be.

On the web, this was originally called HTTP Server Push by Netscape in 1995. It was also called HTTP Streaming.

Just like AJAX was available much earlier than when it's popularity took off, HTTP Server Push hasn't gotten much attention until recently, with folks calling it Comet. Between Netscape's original "server push" and the nascent "Comet", this design was referred to as Publish/Subscribe or "pub-sub".

"Now if only I had something that had a use for it."

That's exactly why this technique isn't "life changing." No one else has a really good use for it, either, yet.

Date: 2007-12-04 10:26 pm (UTC)
From: [identity profile] elfs.livejournal.com
HTTP Push and Comet are both broken because they attempt to make HTTP do something it was never meant to do.

On the other hand, Juggernaut is not broken because it doesn't try to use HTTP; instead it uses an ordinary "blind" but always connected protocol, the Flash XML protocol, to send events to the browser. This protocol is similar to many familiar ones: POP, IMAP, NNTP, FTP-COMMAND.

Ever use IM? IRC? A Muck? How about a visually oriented muck? With high powered Ajax like EXTJS or Scriptaculous, a large number of event-driven things like games and chats can now be written directly into the browser, but they lack an event model; they all polled. Now, they don't have to.

I suspect this technique is either going to show up in the next rev of JS, or we'll be seeing the flash-based solution become standard sometime pretty soon.

Date: 2007-12-05 09:47 am (UTC)
From: [identity profile] ewhac.livejournal.com
Like a dancing cow, it's impressive that it works at all.

...Or, you could just write a custom app. In C. Like you're supposed to. Honestly, I don't understand this fetish for re-implementing an entire fricking operating system inside a Web browser. Yes, you could probably write 'fsck' in JavaScript to run inside Firefox, but why???

<curmudge, curmudge...>

Profile

elfs: (Default)
Elf Sternberg

December 2025

S M T W T F S
 12345 6
78910111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 28th, 2025 08:31 am
Powered by Dreamwidth Studios