D
Deleted member 43669
Guest
I'm drafting an article about scalability for my blog. I've been researching a bit and thinking about the stuff and got the following ideas:
Read-based workloads are easily scalable- you can scale by buying bigger servers and buying more servers and replicating. It's maybe not linear cost scaling, but it seems to be good enough.
The problem is writes. You can buy faster disks, but somehow I think that you hit limits pretty quickly. Scaling by better iron... if you get a big enough big-ass RAID10 array, at some point you're going to saturate CPU or IO bandwidth and at some point your system won't simply go up. A common box can hit 1500 write db transactions per second pretty easily, but it seems like a really low number (if you are dealing with heavy write-based sites, such as Facebook and their 250M uploaded photos a day (or a small fraction of that), and I don't think you can really go many orders of magnitude about that number, even with SSDs and RAID10.
So then you want to scale horizontally, but you've got a problem. If you want a write to be available to all nodes, you are screwed. You have the same limits as with one node. Reads will scale, but writes won't.
So what do you do? Well, if you application allows it, you can shard your data. If you can partition somehow and split the data across the nodes, you can distribute writes too and scale. However, can you, most of the time? FB users are well-connected, and probably a user's writes need to be read by different users in a way where you can't really shard.
So if you can't shard? Well, you gotta give up on writes being available immediately on all nodes, don't you? You have to risk outdated information, inconsistency, etc... meaning that if your write workload is big enough and you can't shard in a decent way... you gotta give up on decent RDBMSs goodness and go to the NoSQL write-scaling solutions (which is not a virtue of not being SQL, it's a virtue of sacrificing data integrity).
But my question is... if you go for eventual consistency... are you really shattering the write scaling limits? If you get a high-enough sustained write workload, you won't ever get to "eventual", right?
So in the end... we are still slaves to Moore's law...?
Thoughts?
Alex
Read-based workloads are easily scalable- you can scale by buying bigger servers and buying more servers and replicating. It's maybe not linear cost scaling, but it seems to be good enough.
The problem is writes. You can buy faster disks, but somehow I think that you hit limits pretty quickly. Scaling by better iron... if you get a big enough big-ass RAID10 array, at some point you're going to saturate CPU or IO bandwidth and at some point your system won't simply go up. A common box can hit 1500 write db transactions per second pretty easily, but it seems like a really low number (if you are dealing with heavy write-based sites, such as Facebook and their 250M uploaded photos a day (or a small fraction of that), and I don't think you can really go many orders of magnitude about that number, even with SSDs and RAID10.
So then you want to scale horizontally, but you've got a problem. If you want a write to be available to all nodes, you are screwed. You have the same limits as with one node. Reads will scale, but writes won't.
So what do you do? Well, if you application allows it, you can shard your data. If you can partition somehow and split the data across the nodes, you can distribute writes too and scale. However, can you, most of the time? FB users are well-connected, and probably a user's writes need to be read by different users in a way where you can't really shard.
So if you can't shard? Well, you gotta give up on writes being available immediately on all nodes, don't you? You have to risk outdated information, inconsistency, etc... meaning that if your write workload is big enough and you can't shard in a decent way... you gotta give up on decent RDBMSs goodness and go to the NoSQL write-scaling solutions (which is not a virtue of not being SQL, it's a virtue of sacrificing data integrity).
But my question is... if you go for eventual consistency... are you really shattering the write scaling limits? If you get a high-enough sustained write workload, you won't ever get to "eventual", right?
So in the end... we are still slaves to Moore's law...?
Thoughts?
Alex