nddrylliog/agora2 — comment on commit 78a4013e9fee62c3142a233c8bca6feac230e0e8
File: javascripts/agora.coffee line 28
By nddrylliog:

That is a fuckload of questions indeed, but they're all very relevant to the issue at hand.

I'm thinking we can stil go the Taffy + incremental changes approach if we keep 'events' in the MongoDB that have timestamps and references to the '_id' of new objects / deleted objects / whatever was changed. The client could then simply poll (in place of websockets, for now) every few seconds, sending the timestamp of the latest event he has in memory. Then the backend would simply query for all events more recent than that and send the relevant objects in bulk.

I think that's pretty reasonable and could be deployed by next week - not *true realtime* but a few secs' delay is no big deal, and the important thing is that the whole UI should be shielded from the implementation details below anyway.