OK – just dumping links to my talk – AJAX @ localhost (PDF), Latency demo (apologies to the script.acul.us guys but it was a good example) and sync == bad demo.
AJAX@localhost
{ 46 comments }
-
November 23, 2008 at 7:08 am
zelmonoloac
-
February 21, 2007 at 10:51 pm
asdfghj
-
February 18, 2006 at 6:27 am
In general, I see this something like bank systems—there it’s not acceptable that any transactions get lost or processed incorrectly. To me “it works most of the time” isn’t enough, particularily because the tendency with AJAX is to couple the UI straight to the network.
Yes, I think it depends on the application. For an RSS feed reader it is OK that feeds get displayed in a random order. For every that involves transactions (bank system, …) there must be a transaction manager that enforces rules for how data is accessed.
I am not sure that that the solution given for the autocompleter which consists in blocking newer transactions until the previous one has been completed is a good solution, since this is basically doing synchronous calls.
I have experimented with stack sequences (LIFO) with a queue size of 1. It guarantees that only the latest action of the user will be displayed (the other ones are discarded).
for instance if you type:
1 – 2 – 3
in one sequence, only ’3′ will be displayed
If works fine, the only problem is that there must be a timeout so that requests do not block the entire sequence, indefinitely.
-
February 16, 2006 at 6:12 am
here is another demo:
http://www.z3lab.org/sections/front-page/design-features/typewriter-demoin my experience so far, network latency must be combined with some latency on the server (one request takes 1 second, the other takes 2 seconds) for the problem to arise.
Running the same demo without the Ajax Proxy or without the latency on the server gives totally different results, so I’d agree with Thomas that practically it may not necessarily be a problem.
-
February 15, 2006 at 10:09 pm
I respect dat shorty. Feel me?
-
February 15, 2006 at 9:39 am
Hi!
Here is a solution for controlling network latency in Ajax (this is done in the data model inside the storage adapter that does the ajax.request call). There is an event system that informs the view when the model’s data has changed. So if the data does not change, the view will not be updated.
see:
http://www.z3lab.org/sections/blogs/jean-marc-orliaguet/2006_02_15_controlling-network-
February 15, 2006 at 4:00 am
So Harry … you still in for a request queue ?
-
February 14, 2006 at 3:19 pm
Harry -
Thanks for the mention in your great talk. And to paulyG and others, thanks for your support.
We’re not that far off from providing what we think is a world-class toolkit. One of our challenges in communicating the entire scope of the product is to try to describe what several of our early access customers have termed “AJAX times 100″. To do this, we’ve coined a term “Client/SOA”, to describe what we’re trying to achieve with TIBET. The definition can be found here:
http://en.wikipedia.org/wiki/Client/SOA
We’re currently planning on shipping our final release at the end of Q1.
Thanks again to all!
Cheers,
- Bill
William J. Edney
Product Evangelist
Technical Pursuit Inc.-
February 13, 2006 at 7:38 pm
I thought you were spot-on Harry. I was almost jumping off my chair most of the way through dying to wave my hand up and say “have you heard of Tibet?” But you had that too.
It was very worthwhile to watch you step by step explain in depth what the Tibet page just about says.
Clever, succinct and well delivered – new batteries in the microphone maybe helped too… I 2nd your comments on a great day in London, bravo and thanks to all the organisers.
-
February 13, 2006 at 1:38 pm
I believe its pronounced A-JAX i.e. “ae jacks”
-
February 13, 2006 at 7:50 am
I don’t think it hit quite 20 mins. Although I understand latency, and could’ve skipped over that segment of the talk, it was a god idea to provide some brief information on it. It helps to provide a common foundation that everyone is on before talking on. Without such, more questions are expected, and can interfere with the flow of the talk.
Jee
-
February 12, 2006 at 11:27 pm
Wao Guys Now here is the Summury I got For the “AJAX” Pronounce:
In Poland its : “Zae-Jack-Ey”
ikeo Says: exactly … its “ayax”
Trent Reimer Says: “AJAX” was Greek:
My Duct friend BerislavLopac Says: It’s “ayax”,
My United csi95 Says: A-JACKS.pronounced it as A-JACKS.
someonewhois says : “Eh-Jacks”So The Conclusion may be : Whatever We pronounce , Its going to work like AJAX only!!!!
AJAX will Rock in any Form !
-
February 12, 2006 at 9:23 pm
I pronounce it as “Zae-Jack-Ey”. Im from Poland.
-
February 12, 2006 at 2:43 pm
Glad to see you are unable to spell script.aculo.us correctly as well as being unable to pronounce it… scriptalicious?
Might I also suggest that at a “developer” conference, 20 minutes giving a consumer guide to latency was a bit much. Maybe save that for a PHP Consumer Conference?
-
February 12, 2006 at 7:12 am
Hey Harry -
Nice article. And you choose a good library to demonstrate it (as I was using scripaculous in my applications :).
I just had one question / suggestion – what if we handle this problem using a request queue? We hold all requests inside a queue and only when one request is completed will we fire the next one.
Prototype library (which is used by scriptaculous) gives us something which we can use to build such a request queue.
Let me know…
Thanks,
Mandy.-
February 11, 2006 at 11:58 am
Just wondering if this couldn’t be easily fixed
just a simple count in the javascript sending.
and disregard data with a lower number then the last one processed.wrong?
-
February 11, 2006 at 11:18 am
Ditto, the talk was excellent. I specially enjoyed to see someone that after 5 hours of programming talk analyses things in the business context as well as acknowledging end users. Technology is not about 5 minutes of limelight, or “buzzword mashups” but ultimately making things work.
However I would like to think there is some room for some sort of AJAX to exist. Perhaps in the context of intranet applications? I agree a big percentage of existing AJAX apps are pretty useless, perhaps is not mean to be replacing GET or POST but as a complement? providing feedback?
-
February 11, 2006 at 8:43 am
The seminars were video recorded, so i assume that they could be ported to a ipod video format. I don’t have a video ipod to test, but could do the conversions… I’ll have a look.
The book in question was http://www.amazon.co.uk/exec/obidos/ASIN/1590595823/qid=1139661763/sr=8-2/ref=pd_ka_2/026-5426694-6962049
Its not an exceptionally good book from the start. Actually, i’ll re-phrase. If you know zip-all about ajax, it will teach you. What it doesn’t teach you is the downfalls of ajax that Harry mentioned – those points he mentioned need to be preached a bit more :)
Jee
-
February 11, 2006 at 7:23 am
What Ajax book would that be? And is it available in the US or on AMazon?
I thought the demos supplied by Harry above just rocked and would have loved to have been at the conference… I wonder how long before video podcasting catches on and becomes affordable…
-
February 10, 2006 at 9:55 pm
Was a great talk, although I somehow ended up winning the AJAX book – which Harry kindly wrote ‘Ajax Rocks Man!’ inside ;)
Jee
-
February 10, 2006 at 9:32 pm
“Open fire. All weapons. Dispatch war rocket ‘Ajax’ to bring back his body.”
:)
-
February 10, 2006 at 8:56 pm
exactly … its “ayax”
Don’t you guys watch Dutch football??! :)-
February 10, 2006 at 7:38 pm
I thought “AJAX” was Greek: http://en.wikipedia.org/wiki/Telamonian_Aias
-
February 10, 2006 at 6:54 pm
It’s “ayax”, as any Dutch would tell you.
-
February 10, 2006 at 5:07 pm
AJAX, in the United States, is pronounced A-JACKS.
-
February 10, 2006 at 4:28 pm
Thanks akrabat. The PDF was definitely an interesting read.
-
February 10, 2006 at 4:25 pm
Excellent talk Harry, thanks! Nice to see an injection of sanity into the current hype. I think AJAX is interesting and will certainly be investigating what can be done with it.
During the talk, Harry said that the demos were done using Wink (http://www.debugmode.com/wink/)
-
February 10, 2006 at 4:15 pm
I think Its “Yejacks” :)
How would it be “yejacks”? Where does that y come from? I’ve always said it “Eh-Jacks”, as in pronouncing the A alone then JAX.
What did you use for those demos, Harry? They’re pretty cool.
-
February 10, 2006 at 4:06 pm
I found the pdf at:
http://www.phppatterns.com/lib/exe/fetch.php/ajax_at_localhost.pdfRegards
-
February 10, 2006 at 4:04 pm
;) the big question is: why cant most ajax frameworks not bundle calls in INE reqest. maybe ot for this kinda application, but more important when it comes to real applications ;)
-
February 10, 2006 at 4:02 pm
http://www.phppatterns.com/lib/exe/media.php?delete=ajax_at_localhost.pdf
Where’s the pdf?
take a closer look at the url
media.php?delete=ajax_at_localhost.pdfRoo(u)ts back to a couple of posts ago.
-
February 10, 2006 at 3:50 pm
I think Its “Yejacks” :)
-
February 10, 2006 at 3:48 pm
AJAX : Could someone tell me how this term “AJAX” is pronounced!! Coz some of my friends call it as “yezacks” and some “iacks”
-
February 10, 2006 at 3:43 pm
Regarding latency problems, perhaps we should be checking the results coming in before we apply them? Take the auto completion exmaple: if the current text doesn’t match the latest AJAX response it is simple enough to ignore the response.
Also would love to read your PDF if the link can be fixed, you have a habit of raising the right questions.
-
February 10, 2006 at 3:38 pm
for some reason i can’t download that pdf.. Nothing happens when I click it, firefox, safari. Too lazy to view source.
-
February 10, 2006 at 2:39 pm
The “Starbucks Facor” hehe..
Comments on this entry are closed.
{ 7 trackbacks }
- Ajaxian » Ajax@localhost Talk (Harry Fuecks)
- There and Back Again » Blog Archive » AJAX and Latency
- SitePoint Blogs » Two kinds of AJAX: HTML++ vs Client / SOA
- Scriptorama » How many ticks does it take to get the data of it?
- Tech2All.Com » Blog Archive » Two kinds of AJAX: HTML++ vs Client / SOA
- SitePoint Blogs » AJAX and Session “Race Conditions”
- RSS SCRIPT » A swipe at Advani, a nod to Left, Manmohan plays safe




