4 ms·
It's true that database servers in the RDBMS ecosystem are not analogous to gzip or wc or even awk in the Unix ecosystem; they are analogous to Unix itself, and
by kragen 11y ago
It's true that database servers in the RDBMS ecosystem are not analogous to gzip or wc or even awk in the Unix ecosystem; they are analogous to Unix itself, and they live in an uneasy détente with it. They are the "ground of being" upon which various components can be composed, the role Kleppman proposes here for Kafka (and Hadoop, and all the other nonsense underpinning Kafka). You could argue that in fact database servers are terrible at composability even of the things you can put into them (scripting languages, data types, triggers), and I think that is true. More lower down about why that is.
The question of how to build an "operating system for the internet" is really interesting. How can we make it as easy to write a networked program that can be composed with other networked programs, in the way that you can compose tail and grep?
Kafka and Samza aren’t it; they're cluster-centric, not internet-centric. They assume a single administrator, Kafka's publish-and-subscribe model is inherently unreliable in the presence of spammers or other sources of system overload, and spammers are unavoidable if you can't kick them off the system. (If you're going to run Hadoop in "secure mode", then it uses Kerberos for authentication; I need say no more.)
With regard to system overload, this is exactly backwards:
As long as the buffer
fits within Kafka’s available disk space,
the slow consumer can catch up later.
This makes the system
less sensitive to individual slow components,
and more robust overall.
You can reliably feed terabytes of data through a Unix pipeline consisting of a fast process feeding that data to a slow process (e.g. rot13 | some slow Perl script). Without backpressure, you have to buffer the terabytes of intermediate data, which will fill up your disk, causing your system to fail; or you can drop data, causing your system to fail. Systems without backpressure cannot provide this kind of composability reliably. (Similarly, systems that require you to name your data outputs in a global mutable-object namespace, like Kafka topics, pose obstacles to composability. This, more than anything else, is what limits the composability of queries in traditional SQL databases.)
Don't get me wrong. I think pub-sub is great, and especially for loosely-coupled integration of different systems. I use pub-sub systems every day. I've even written a few. But don't make the mistake of thinking that they're the networked equivalent of Unix.
IPFS might be it. There's a whole panoply of other projects which, like IPFS, are trying to build a decentralized internet OS (MaidSafe, Ethereum, and so on) and probably sooner or later one of them will succeed.
One more minor quibble, which to my mind shows that the author wasn’t very interested in writing true things instead of false things:
you can pipe
the output of gunzip
to wc
without a second thought,
even though the authors of those two tools
probably never spoke to each other
David MacKenzie and Paul Rubin are in fact listed among the contributors to gunzip.