News for hackers. Stuff that matters.
Re:Is Twitter causally-consistent? by snowwrestler on Wednesday November 14, 2018 @07:32AM (#18449351)
Isn’t this a known feature of Twitter, usually called a soft block or forced unfollow? You block and unblock someone quickly and it forces them to unfollow you (and more importantly, does not signal them that it happened). I have heard of people fearing harassment to use this technique to get themselves out of a person’s timeline (out of sight, out of mind) without the pseudo-confrontation of a block.
Re:Is Twitter causally-consistent? by x5315 on Wednesday November 14, 2018 @10:09AM (#18450352)
This is correct.

When we process a block request from user A -> user B, we remove the follow edges between user A -> user B and user B -> user A, and then add a block edge from user A -> user B.

When we process an unblock request from user A -> user B, we remove the block edge from user A -> user B.

I imagine that the "Aleksey checked that he was following me again" was either client caching, or eventual consistency latency. There's no nightly batch job or anything doing that.

Source: I work on the social graph service at Twitter.

Re:Is Twitter causally-consistent? by mad44 on Wednesday November 14, 2018 @12:50PM (#18451925)
After the test, I unblocked Aleksey, and this tweet includes the video where we saw that Aleksey could see my tweets in his timeline again. Something went wrong after that I guess. https://twitter.com/muratdemirbas/status/1062763863332937728
Re:Is Twitter causally-consistent? by mad44 on Wednesday November 14, 2018 @01:47PM (#18452587)
Yet, another update. It might be that since my tweet included a mention to him, Aleksey clicked on the notification and could see my tweets after that, and not in his timeline. We repeated the experiment, and found that after I blocked and unblocked him, he was indeed still unfollowing me.
Re:Is Twitter causally-consistent? by x5315 on Wednesday November 14, 2018 @01:50PM (#18452611)
Ah ok. :thumbsup:

I described how the logic works above, but we're always subject to and victims of replication or cache-expiration latency. So it could have been that.

Re:Is Twitter causally-consistent? by michaelmrose on Wednesday November 14, 2018 @08:15AM (#18449581)
Isn't it weird that someone else controls this. It seems like a website removing itself from your bookmarks.

Maybe twitter could instead work on not being a terrible way to communicate coherent thoughts to each other instead.

Re:Is Twitter causally-consistent? by wafflesraccoon on Wednesday November 14, 2018 @11:34AM (#18451127)
I would argue that it is closer to being unfriended on Facebook than a website removing itself from your bookmarks.
Re:Is Twitter causally-consistent? by michaelmrose on Wednesday November 14, 2018 @12:48PM (#18451889)
Facebook is mostly info that is scoped to a defined set of people. It makes implicit sense to have your access to private information removed if you no longer qualify eg no longer a friend.

Twitter is publishing data that is world visible and making it hard for individuals who have been snubbed to keep track of what everyone including them if they log out can in fact see by removing their bookmark to same.

The behavior of toggling block is weirder yet because the data is world published, you can read it, you can follow it but someone else has reached out and toggled the state of your account in some weird spooky action at a distance fashion that works only because it confuses people.

Well designed things work in a way that is predictable to users. Who would predict that your follow status on accounts would from the perspective of the user toggle itself randomly.

It's even worse that twitter sees purpose built for short toxic exchanges too short and badly organized for anyone to get each others point where the standard protocol is to disengage from anyone who disagrees and shout at all the people who believe exactly as you do.

Re:Is Twitter causally-consistent? by iainmerrick on Wednesday November 14, 2018 @07:50AM (#18449446)
Maybe... but known to whom? Is it documented?
Re:Is Twitter causally-consistent? by madeofpalk on Wednesday November 14, 2018 @08:03AM (#18449512)
I'm not sure about twitter, but my housemate was talking to me about how she would use this technique on Instagram to get people from unfollowing her. It's no longer required because you can do that explicitly now.
Re:Is Twitter causally-consistent? by x5315 on Wednesday November 14, 2018 @10:10AM (#18450354)
https://developer.twitter.com/en/docs/accounts-and-users/mut...

"If a follow or friend relationship exists it is destroyed."

Re:Is Twitter causally-consistent? by pjc50 on Wednesday November 14, 2018 @11:36AM (#18451149)
For years there have been persistent rumours of an "unfollow bug", where X finds that they're not following Y and Y has no idea about why.
Re:Is Twitter causally-consistent? by duskwuff on Wednesday November 14, 2018 @11:30AM (#18451098)
This is also the only way to remove followers from a protected account.
Re:Is Twitter causally-consistent? by dredmorbius on Wednesday November 14, 2018 @12:34PM (#18451755)
There's a similar mechanism on G+
Re:Is Twitter causally-consistent? by mav3rick on Wednesday November 14, 2018 @06:57AM (#18449203)
I find designing for different consistency (trade offs with scale etc.) models super interesting. Where can I find work like this ? I am assuming at big companies this work is already done. Any distributed systems experts here that can point me to some companies and / or small projects I ca build on the side.
Re:Is Twitter causally-consistent? by pvarangot on Wednesday November 14, 2018 @09:10AM (#18449906)
Martin Kleppmann's book Designing Data-Intensive Applications has two chapters where it talks about consistency (one about replication and another one about consensus and consistency). That books reference sections for each character are goldmines.

The work is never "completely done" because most of the known or reliable solutions involve choosing tradeoffs with scalability, speed or data locality, so you can always go bespoke to optimize for the current business needs, and when they change you may need to change protocols or algorithms again.

Re:Is Twitter causally-consistent? by mav3rick on Wednesday November 14, 2018 @07:39AM (#18449393)
I've read and watched a lot of resources, thanks for more links :) Any pointers on companies that may hire for such jobs ?
Re:Is Twitter causally-consistent? by devxpy on Wednesday November 14, 2018 @07:14AM (#18449275)
https://youtu.be/YAFGQurdJ3U

Here is a nice, technical talk on distributed databases

Re:Is Twitter causally-consistent? by baq on Wednesday November 14, 2018 @07:23AM (#18449312)
read all of this

https://aphyr.com/tags/jepsen

chronologically

Re:Is Twitter causally-consistent? by beaconstudios on Wednesday November 14, 2018 @07:10AM (#18449251)
database design runs into these trade-offs a lot. CAP theorem is the canonical example.
Re:Is Twitter causally-consistent? by d33 on Wednesday November 14, 2018 @05:53AM (#18448964)
Could someone explain casual consistency to me? Is it just about not showing earlier messages to someone who got blocked, or is there something more to it?
Re:Is Twitter causally-consistent? by mav3rick on Wednesday November 14, 2018 @06:55AM (#18449194)
If B happened as a result of A, then every node should observe A BEFORE B. For instance, "Deleting an ex (A) and posting a relationship with a new SO (B)". If this social network wasn't causally consistent then -

Your ex may see your life update (and then be deleted).

I may be wrong, so other experts feel free to correct me.

Re:Is Twitter causally-consistent? by thebootstrapper on Wednesday November 14, 2018 @06:59AM (#18449209)
Read this paper[1], it explains various consistency in distributed system by using baseball scores updated over different medium. [1] https://www.microsoft.com/en-us/research/publication/replica...
Re:Is Twitter causally-consistent? by bonoboTP on Wednesday November 14, 2018 @06:56AM (#18449197)
Why call it causal though? It seems like temporal consistency to me. What's the causation aspect?
Re:Is Twitter causally-consistent? by beaconstudios on Wednesday November 14, 2018 @07:13AM (#18449270)
because the thing that needs to be maintained is the causal ordering of events. For the example from TFA, block -> tweet and tweet -> block have the causal effect of the blocked user seeing or not seeing the tweet respectively. Phrasing it as causal ordering removes time from the equation, which you aren't always able to take into account with distributed systems. Causal ordering also allows for causally unrelated events to appear in any order, for example updating your bio and posting a tweet. Check out the wiki article on logical clocks for a rough starting point in delving into this topic: https://en.wikipedia.org/wiki/Logical_clock.
Re:Is Twitter causally-consistent? by kd5bjo on Wednesday November 14, 2018 @07:26AM (#18449324)
A more common example of causally unrelated events is two people tweeting from different parts of the world that don’t follow each other. The order these appear somewhere really doesn’t matter to anyone.
Re:Is Twitter causally-consistent? by Liquid_Fire on Wednesday November 14, 2018 @07:26AM (#18449326)
But there is no causal relationship between the two events. You didn't tweet because you blocked the person, or block them because you tweeted.

This blog post is really about sequential consistency.

Re:Is Twitter causally-consistent? by beaconstudios on Wednesday November 14, 2018 @07:42AM (#18449399)
no it isn't. The two events are linked by a effect, ie switching the order of events has a different effect. They are causally linked, but not in the a => b sense. It's not about sequential consistency because for many other sets of events, the order does not matter and thus doesn't have to be enforced.
Re:Is Twitter causally-consistent? by ishitatsuyuki on Wednesday November 14, 2018 @06:12AM (#18449043)
Re:Is Twitter causally-consistent? by svdr on Wednesday November 14, 2018 @07:26AM (#18449328)
Causal, not casual :)
Re:Is Twitter causally-consistent? by anonymousDan on Wednesday November 14, 2018 @06:18AM (#18449065)