Sharding Pinterest: How we scaled our MySQL fleet
engineering.pinterest.com
Sharding Pinterest: How we scaled our MySQL fleet
1–10 of 87 posts
Re: Sharding Pinterest: How we scaled our MySQL fleet
#2Re: Sharding Pinterest: How we scaled our MySQL fleet
#3Re: Sharding Pinterest: How we scaled our MySQL fleet
#4It seems mysql (and hopefully postgresql sometime soon) with custom sharding logic in the app layer still hits the sweet spot for scaling to the order of 100M users. With some thoughts going into designing an appropriate data model and sharding logic, certain join queries can be delegated to the databases too.
Re: Sharding Pinterest: How we scaled our MySQL fleet
#5Shard ID = (241294492511762325 >> 46) & 0xFFFF = 3429
Type ID = (241294492511762325 >> 36) & 0x3FF = 1
Local ID = (241294492511762325 >> 0) & 0xFFFFFFFFF = 7075733
Re: Sharding Pinterest: How we scaled our MySQL fleet
#6With Cassandra, you can set replication factors, speed up the writes, and automatically shard the data without having to manage your own "mapping tables".
Re: Sharding Pinterest: How we scaled our MySQL fleet
#7This looks like a big hack to compensate for using the wrong tool. Cassandra would have been a better solution IMO. With Cassandra, you can set replication factors, speed up the writes, and automatically shard the data without having to manage your own "mapping tables".
Re: Sharding Pinterest: How we scaled our MySQL fleet
#8Is this the guy that's going to reddit?
Re: Sharding Pinterest: How we scaled our MySQL fleet
#9Can somebody help me understand this conversion? Shard ID = (241294492511762325 >> 46) & 0xFFFF = 3429 Type ID = (241294492511762325 >> 36) & 0x3FF = 1 Local ID = (241294492511762325 >> 0) & 0xFFFFFFFFF = 7075733