4 ms·
If it was impossible for a federated network, it would also be impossible for Twitter. They can either guarantee that messages only show up at the top, or that
by sp332 14y ago
If it was impossible for a federated network, it would also be impossible for Twitter. They can either guarantee that messages only show up at the top, or that messages always show up in order (meaning older posts get inserted into the middle of the timeline, as you eventually receive them).
- dwineman 14y agoRight, but since Twitter manages all of Twitter's servers (and the dedicated low-latency network via which they're presumably all connected) they can satisfy both of these constraints without sacrificing the third (immediacy). I'm speculating here, but I think that's why it takes a few seconds to post a tweet: it's propagating across the internal federation so that all the nodes have it before it "goes live."
- sp332 14y agoTo be specific, your tweet is not timestamped when you send it. It only gets an "official" timestamp when twitter decides to give it one, after receiving it. That means Twitter arbitrarily sets the timestamp whenever they get around to shoving it on top of your feed. So they do have the problem of tweets arriving out of order (due to network latency etc), they just hide it by rewriting timestamps! eta: I admit this is a smaller problem for a centralized service than a federated one, but I would argue that it can work "well enough".
- fleitz 14y agoHow is twitter immediate when it's down? Twitter doesn't solve the immediacy problem with any hard guarantees either. Most of the time email is on par with twitter.
- dwineman 14y agoHuh? When Twitter's down, no one can post, so immediacy is meaningless. This is like saying "my car's faster than yours after yours hits a tree."
- fleitz 14y agoExcept that twitter does go down, so if you had a distributed car that was incapable of hitting a tree it would be an advantage. The situ with email is that at any moment the system is up but individual nodes may be unreachable or delayed, conversely if twitter is up all nodes are reachable in constant time, but if it's down all nodes are unreachable. In real systems these two properties are mean virtually the same thing, at any given point in time your party may or may not be reachable with a given latency.
- mbreese 14y agoWhy couldn't the user decide how to view message? You could easily allow a user to see messages ordered by "send time" or "received time". You could even add an "unread" flag to messages, so that unread messages show up first, then migrate to their proper locations in order. Ya know... kinda like email.
- sp332 14y agoSure, of course they could. The point is that you can't do both at the same time.
- rabidsnail 14y agoYou can if you use vector clocks. @sp332 You can prevent that by buffering messages. The less you tolerate messages appearing in-between messages you've seen before, the more you buffer. If the latency between your host and the host of someone you follow is high enough that it's taking more than a few seconds for you to get the message, they're effectively down. Late is better than never.
- sp332 14y agoVector clocks are only a partial ordering. You'd still have old events popping into the middle of your timeline.
- deleted 14y ago[deleted]