最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Trello staying updated? - Stack Overflow

programmeradmin8浏览0评论

How does trello keep all the users screens updated with new information as it es in?

For example, if I change something on my screen, it automatically changes on all the other users screen who are also on that page...Are they just constantly refreshing the page or is their something else going on?

How does trello. keep all the users screens updated with new information as it es in?

For example, if I change something on my screen, it automatically changes on all the other users screen who are also on that page...Are they just constantly refreshing the page or is their something else going on?

Share Improve this question asked Jan 6, 2012 at 10:38 David19801David19801 11.4k26 gold badges86 silver badges127 bronze badges 1
  • It does use ajax polling, and will keep updated :) – Rene Pot Commented Jan 6, 2012 at 10:57
Add a ment  | 

3 Answers 3

Reset to default 16

Original Answer

Whilst I do not work for Trello, from the outside it looks like it is using AJAX polling to look for updates to the presented information from looking at the site in firebug.

You can also use Comet to achieve this.

Updated

So I have done a little more digging and I found this on Hacker News:

Trello does use Socket.io. If your browser supports websockets it will use them, but it will transparently fall back to polling if necessary. - posted by ianthehenry Link to post

And then later:

We're scaling back a little to handle the usage spike from the initial launch, so some users will get polling even if their browsers support websockets. As the load stabilizes, we'll be switching them back on and you should see performance improve quite a bit. - posted by ianthehenry Link to post

I can only assume that ianthehenry is working for FogCreek, but I am unable to confirm it.

He also goes on to mention some of the other projects they use with:

Express, Async, Mongoose, Redis, Socket.io, CoffeeScript, Less, and Underscore, off the top of my head. We also use Node Inspector during development; that's a great little tool. - posted by ianthehenry Link to post

Update Again

Trello themselves have just written a blog post confirming their stack: http://blog.fogcreek./the-trello-tech-stack/

They use the http://socket.io/ - project that makes WebSockets and realtime possible in all browsers

I’m not sure what Trello does, but you can do the trick using Comet.

发布评论

评论列表(0)

  1. 暂无评论