3 ms·
This theory has unfortunately never panned out for me. To the extent that I get a little anxious about my employer getting too aggressive with PR. Organic grow
by hinkley 8y ago
This theory has unfortunately never panned out for me. To the extent that I get a little anxious about my employer getting too aggressive with PR. Organic growth always plays out better for the engineers in the short to medium term.
IT's version of the Laws of Thermodynamics is that nearly every interesting action you can do programatically is going to take at least O(log n) time, where n is the amount of data you have (at rest, in flight, or both).
If I have 16x as much traffic as I used to deal with, my load isn't 16x higher, it's 64x higher - if I'm fortunate and we've engineered for scale. But it could easily be three orders of magnitude higher (16164) if I'm not.
For the 64x scenario I tell my boss to buy more hardware and I put medium to high priority tickets in the backlog to improve the worst cases. In the 3 orders situation, those tickets bump all of our other priorities, and there are more of them. Performance is now a feature. It sucks up a significant and very visible fraction of our engineering budget, which comes with its own sort of opportunity costs.
If you try to scale vertically, we all know that except at the low end, buying a server that's twice as beefy costs far more than twice as much. If you go horizontal, there are plateaus where your network topology has to get more complex (hardware cost, maintenance cost, speed, pick two). Personally, I think the biggest lie in cloud computing is that 10G ethernet fixes all of your network topology problems (ie, it's treated as magic that you don't have to worry about). As disks and PCIe get faster over the next couple years I think that'll be back on people's radars.
- hexane360 8y agoIf your complexity is O(log n), an increase of 16x only increases your time by log(16)=1.2 (constant, not a multiple).
- naniwaduni 8y agoI'll say, I'm so used to seeing "log" denote either lg or ln (depending on whether the context is closer to maths or computing) that seeing the claim that log(16)=1.2 threw me for a loop. This despite it being fundamentally meaningless because of course it needs to be multiplied by some time-dimensioned value anyway.
- hinkley 8y agoYou have a way to process 16x as much traffic without using any new resources?
- mruts 8y agoHow does it follow that with O(log n) complexity you get 64x more work with 16x more data?
- naniwaduni 8y agoit's implicitly O(n log n) because you need to do O(log n) for an interesting operation on each request.
- hexane360 8y agoStill, that means doubling your traffic adds a fixed amount of computation due to the log n component. That doesn't turn 16x into 64x. It turns 16x into 16x+y, where if you 16x again it turns into 256x+2y. Logs grow slowly.