Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

An Observer Pattern in Webdevelopment

Olivier Hermanus
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

At the risk of sounding somewhat newbish. I'm looking for the best way to implement the ever elusive observer model for the web.

The problem I'm facing, must've been faced before. And I've done some homework on the topic. But I'm at a loss...

In making an online chat-applet, at some point we have to make a decision. Do we use a traditional Ajax server polling technique, or is there a cooler way of doing things. Like a server-to-client push in an observer pattern.

Does anybody have useful advice about any of the interesting technologies for server pushes, like long polling, pushlets, etc?

None of them really knock me flat on my back... Is there a better of way of doing things? (Ps. I'm not a fan of writing a Java client, it should be limited to JavaScript at the most).

Google seems to be able to make it work rather well with Google Talk, Gmail and even Google Docs (try collaborating on a single spreadsheet and you'll know what I mean).

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic