Hacker News new | ask | show | jobs
by elendilm 54 days ago
The very thought of a single storage request hitting the network unnecessarily boils my blood.

Some latency increase must be traded for scalability. But at least we get the required utility in return.

But without that utility, one is just hiking up the cost. Any competitor who can deliver at reduced cost holds a potent weapon that you simply cannot survive.

A company that has efficient cost structure across its operational domains holds an advantage which is near impossible to out-compete. A sense of inevitability and resilience is what reduction in cost buys you.

Cost is a weapon. One of the most fundamental weapons in almost all domains.

1 comments

Latency can also be traded for availability. EBS storage provides replication and can trivially be removed/attached to new instances if the database server for some reason needs to be taken down. Any database with built-in replication/consensus (Kafka, Spanner, Dynamo, Cockroach, etc.) is making this same tradeoff and is effectively hitting the network on every storage request.
> Any database with built-in replication/consensus (Kafka, Spanner, Dynamo, Cockroach, etc.) is making this same tradeoff and is effectively hitting the network on every storage request.

I don't think this is true. I am not sure about those you described, but say you have PG replicas, you can run query on replica node without hitting some network attached storage. This is obviously true for reads but not for writes.

Yeah, you are correct. I was thinking about writes but not reads. Even the databases I mentioned typically have optimizations such that when there is a stable leader, reads don't require any network.
"Unnecessary" is the keyword you missed. Refer to sentences 1, 2 and 3 in my response.

The argument of cost is fundamental and no amount of Kafka, etc. can override it.

Gotcha, seems like we agree then.

Considering that the topic is an article is comparing raw NVMe vs EBS performance for postgres storage and GP saying that cloud is unnecessarily inefficient, I misinterpreted your comment as implying that networked storage is always an unnecessary cost. In many cases the cost of replication and availability is lower than the cost of data loss and downtime.

Even during replication, any unnecessary network payload beyond the absolute minimum required is still a cost that boils my blood :-).