zlacker

[return to "In Twitter’s early days, only one celebrity could tweet at a time"]
1. molecu+qx[view] [source] 2018-05-24 23:43:06
>>evanwe+(OP)
2010: "At any moment, Justin Bieber uses 3% of our infrastructure. Racks of servers are dedicated to him"

https://gizmodo.com/5632095/justin-bieber-has-dedicated-serv...

◧◩
2. fizx+Lx[view] [source] 2018-05-24 23:46:56
>>molecu+qx
Bieber-related conversation might reasonably have been 3%. Updating his friend count was a constant source of lock contention on a particular mysql.

There were never explicitly dedicated databases/servers, unless you count the hotspot caused by whatever shard he hashed into.

◧◩◪
3. lwansb+sz[view] [source] 2018-05-25 00:09:40
>>fizx+Lx
You would think a HyperLogLog would be approximately good enough when follower counts reach tens of millions.
◧◩◪◨
4. fizx+qB[view] [source] 2018-05-25 00:34:06
>>lwansb+sz
Hyperloglog was only just invented, and hadn't really made its way into the popular developer consciousness.

Anyhow, the solution is easier than that (implement lock striping, i.e. https://stackoverflow.com/questions/16151606/need-simple-exp...), but I was reorg'd away before my code hit production, so I'm not sure what happened there.

[go to top]