zlacker

[parent] [thread] 3 comments
1. tzs+(OP)[view] [source] 2018-05-25 04:16:14
Did they actually need to know Bieber's friend count both accurately and in real time?

I would expect that for top Twitter accounts like his, you could get a very good approximation by logging events that increment or decrement the friend count, and using the rates those events are occurring and the last known exact friend count to forecast the current friend count. That would not be exact, but I bet you could get it close enough that users would not see anything off about it.

replies(2): >>mrgord+z2 >>segmon+uT
2. mrgord+z2[view] [source] 2018-05-25 04:53:38
>>tzs+(OP)
Yes they made Storm for this
3. segmon+uT[view] [source] 2018-05-25 14:26:26
>>tzs+(OP)
Ha, I always joke that Twitter is a good example of why one should avoid distributed systems. Every often, you see it showing the wrong number of friends, tweets, likes, etc. I don't care, I suppose some people care about such metrics.
replies(1): >>scarfa+AZ
◧◩
4. scarfa+AZ[view] [source] [discussion] 2018-05-25 15:05:05
>>segmon+uT
That's the essence of the CAP theorem. You can have two of three - consistency, availability, and partition tolerance. Sometimes it makes sense to choose availability over consistency.
[go to top]