27 comments

  • MarginalGainz13 hours ago
    The saddest part about this article being from 2014 is that the situation has arguably gotten worse.<p>We now have even more layers of abstraction (Airflow, dbt, Snowflake) applied to datasets that often fit entirely in RAM.<p>I&#x27;ve seen startups burning $5k&#x2F;mo on distributed compute clusters to process &lt;10GB of daily logs, purely because setting up a &#x27;Modern Data Stack&#x27; is what gets you promoted, while writing a robust bash script is seen as &#x27;unscalable&#x27; or &#x27;hacky&#x27;. The incentives are misaligned with efficiency.
    • jesse__9 hours ago
      I&#x27;ve done a handful of interviews recently where the &#x27;scaling&#x27; problem involves something that comfortably fits on one machine. The funniest one was ingesting something like 1gb of json <i>per day</i>. I explained, from first principals, how it fits, and received feedback along the lines of &quot;our engineers agreed with your technical assessment, but that&#x27;s not the answer we wanted, so we&#x27;re going to pass&quot;. I&#x27;ve had this experience a good handful of times.<p>I think a lot of people don&#x27;t realize machines come with TBs of RAM and hundreds of physical cores. One machine is fucking huge these days.
      • kevmo3148 hours ago
        The wildest part is they’ll take those massive machines, shard them into tiny Kubernetes pods, and then engineer something that “scales horizontally” with the number of pods.
        • jesse__8 hours ago
          Yeah man, you&#x27;re running on a multitasking OS. Just let the scheduler do the thing.
          • dgxyz5 hours ago
            Yeah this. As I explain many times to people, processes are the only virtualisation you need if you aren’t running a fucked up pile of shit.<p>The problem we have is fucked up piles of shit not that we don’t have kubernetes and don’t have containers.
            • jchw3 hours ago
              Containers <i>are</i> just processes plus some namespacing, nothing really stops you from running very huge tasks on Kubernetes nodes. I think the argument <i>for</i> containers and Kubernetes is pretty good owing to their operational advantages (OCI images for distributing software, distributed cron jobs in Kubernetes, observability tools like Falco, and so forth).<p>So I totally understand why people preemptively choose Kubernetes before they are scaling to the point where having a distributed scheduler is strictly necessary. Hadoop, on the other hand, you&#x27;re definitely paying a large upfront cost for scalability you very much might not need.
              • dgxyz1 hour ago
                Time to market and operational costs are much higher on kubernetes and containers from many years of actual experience. This is both in production and in development. It’s usually a bad engineering decision. If you’re doing a lift and shift, it’s definitely bad. If you’re starting greenfield it makes sense to pick technology stacks that don’t incur this crap.<p>It only makes sense if you’re managing large amounts of large siloed bits of kit. I’ve not seen this other than at unnamed big tech companies.<p>99.9% of people are just burning money for a fashion show where everyone is wearing clown suits because someone said clown suits are good.
            • jesse__3 hours ago
              Hahhah, yuuuup.<p>I can maybe make a case for running in containers if you need some specific security properties but .. mostly I think the proliferation of &#x27;fucked up piles of shit&#x27; is the problem.
            • Gud3 hours ago
              Disagree.<p>Different processes can need different environments.<p>I advocate for something lightweight like FreeBSD jails.
          • mystraline6 hours ago
            Its all fun and games, until the control plane gets killed by the OOMkiller.<p>Naturally, that detaches all your containers. And theres no seamless reattach for control plane restart.
            • dgxyz5 hours ago
              Or your CNI implementation is made of rolled up turds and you lose a node or two from the cluster control plane every day.<p>(Large EKS cluster)
          • zacmps6 hours ago
            Until you need to schedule GPUs or other heterogenous compute...
            • jesse__6 hours ago
              Are you saying that running your application in a pile of containers somehow helps that problem ..? It&#x27;s the same problem as CPU scheduling, we just don&#x27;t have good schedulers yet.. Lots of people are working on it though
        • andai7 hours ago
          I had to re-read this a few times. I am sad now.
        • cyberpunk6 hours ago
          To be fair each of those pods can have dedicated, separate external storage volumes which may actually help and it’s def easier than maintaining 200 iscsi or more whatever targets yourself
        • jayd161 hour ago
          I mean, a large part of the point is that you can run on separate physical machines, too.
        • ahartmetz7 hours ago
          I think my brain hurts
      • yndoendo7 hours ago
        I recently had to parse 500MB to 2GB daily log files into analytical information for sales. Quick and dirty, the application would of needed 64GB RAM and work laptop only has 48GB RAM. After taking time cleaning it up, it was using under 1GB of RAM and worked faster by only retaining records in RAM if need be between each day.<p>It is not about what you are doing, it is always about how you do it.<p>This was the same with doing OCR analysis of assembly and production manuals. Quick and dirty, it would of took over 24 hours of processing time, after moving to semaphores with parallelization it took less than two hours to process all the information.
        • maest1 hour ago
          &gt; It is not about what you are doing, it is always about how you do it.<p>It saddens me to see how the LinkedIn slop style is expanding to other platforms
      • bauerd7 hours ago
        In interviews just give them what they are looking for. Don&#x27;t overthink it. Interviews have gotten so stupidly standardized as the industry at large copied the same Big Tech DSA&#x2F;System Design&#x2F;Behavioral process. And therefore interview processes have long been decoupled from the business reality most companies face. Just shard the database and don&#x27;t forget the API Gateway
        • tshaddox5 hours ago
          &gt; In interviews just give them what they are looking for<p>Unless, of course, you have multiple options and you don’t want to work for a company that’s looking for dumb stuff in interviews.
          • jmye5 hours ago
            100%. Interviews should be a two-way filter. I’m sympathetic to unemployed-and-just-need-something, but also: boy are there a lot of companies hiring data engineers.
        • jesse__7 hours ago
          Meh .. I&#x27;ve played that game; it doesn&#x27;t work out well for anyone involved.<p>I optimize my answers for the companies I <i>want</i> to work for, and get rejected by the ones I don&#x27;t. The hardest part of that strategy is coming to terms with the idea that I constantly get rejected by people that I think are mostly &lt;derogatory_words_here&gt;, but I&#x27;ve developed thick skin over the years.<p>I&#x27;d much rather spend a year unemployed (and do a ton of painful interviews) and find a company who&#x27;s values align with mine, than work for a year on a team I disagree with constantly and quit out of frustration.
          • bauerd7 hours ago
            The company&#x27;s values may align to yours, even though they reject you. It&#x27;s because the interview process doesn&#x27;t need to have anything to do with their real-world process. Their engineers probe you for the same &quot;best practices&quot; that they themselves were constantly probed for in their own interviews. Interviewing is its very own skill that doesn&#x27;t necessarily translate into real-life performance.
            • jesse__6 hours ago
              I agree with your observation. My issue is (from experience) it&#x27;s really hard to tell from the outside if a teams&#x27; values align with mine. Many teams talk the talk, but don&#x27;t walk the walk, as the saying goes. It&#x27;s just easier to not participate than it is to guess, and be wrong.<p>I also believe that running a broken interview process actively selects for qualities you actually don&#x27;t want, so it&#x27;s much more likely that teams conducting those interviews aren&#x27;t teams I want to work on.<p>Edit: As credence for my claims, the best team I&#x27;ve ever worked on was a team I did 90%+ of the hiring for, and we didn&#x27;t do any of the &#x27;typical&#x27; interview bullshit most companies do.<p>What we did instead was sit people down and have deep technical conversations about systems they&#x27;d worked on in the past. The candidate would explain, in as much detail as they could muster, a system they&#x27;d worked on in the past, down to the lowest level details. Usually, they would talk to us for at least 20-30 minutes, then, we (the interviewers) would pose questions, usually starting with the form &#x27;if we changed X, what effect would it have&#x27;. Doing interviews in this style make a few things immediately obvious:<p>1. Did the candidate have a deep, systemic understanding of the system they worked on?<p>2. Does the candidate have a good mental model for evaluating change in the system?<p>That&#x27;s how I conduct interviews, and unsurprisingly, when I get interviewed like that, my success rate is 100%. I don&#x27;t think I&#x27;ve ever done an interview like that which did not result in an offer.<p>Anyways, there&#x27;s some rambling and unsolicited opinions for you :)
            • wat100001 hour ago
              The interview process determines who gets hired, which determines their real-world process. Even if most of their people were hired under a better system, future hires will come in under this one.
        • mystifyingpoi6 hours ago
          This. Most interviewers don&#x27;t want to do interviews, they have more important job to do (at least, that&#x27;s what they claim). So they learn questions and approaches from the same materials and guides that are used by candidates. Well, I&#x27;m guilty of doing exactly this a few times.
        • groundzeros20155 hours ago
          Meh. as an interviewer I would always make it clear if we wanted to switch to “let’s pretend it doesn’t fit on a machine now”.<p>Demonstrating competency is always good.
      • coliveira8 hours ago
        Yes, but then how are these people going to justify the money they&#x27;re spending on cloud systems?... They need to find only reasons to maintain their &quot;investment&quot;, otherwise they could be held as incompetent when their solution is proven to be ineffective. So, they have to show that it was a unanimous technical decision to do whatever they wanted in the first place.
      • dehrmann7 hours ago
        &gt; but that&#x27;s not the answer we wanted<p>You could have learned this if you were better about collecting requirements. You can tell the interviewer &quot;I&#x27;d do it like this for this size data, but I&#x27;d do it like this for 100x data. Which size should I design this for?&quot; If they&#x27;re looking for one direction and you ask which one, interviewers will tell you.
        • jesse__6 hours ago
          I&#x27;ve done that too and, in my experience, people that ask a scaling question that fits on a single machine don&#x27;t have the capacity to have that nuanced conversation. I usually try to help the interviewer adjust the scale to something that actually requires many machines, but they usually don&#x27;t get it.<p>Said another way, how do you have a meaningful conversation about scaling with a person who thinks their application is huge, but in reality only requires a tiny fraction of a single machine? Sometimes, there&#x27;s such a massive gulf between perception and reality that the only thing to do is chuckle and move on.
          • esafak46 minutes ago
            The burden of wisdom.
      • franciscop1 hour ago
        I have a funny story I need to tell some day about how I could get a 4GB JSON loaded purely in the browser at some insane speed, by reading the bytes, identifying the &quot;\n&quot; then making a lookup table. It started low stakes but ended up becoming a multi-million internal project (in man-hours) that virtually everyone on the company used. It&#x27;s the kind of project that if started &quot;big&quot; from the beginning, I&#x27;d bet anything it wouldn&#x27;t have gotten so far.<p>Edit: I did try JSON.parse() first, which I expected to fail and it did fail BUT it&#x27;s important that you try anyway.
      • ytoawwhra923 hours ago
        &gt; I explained, from first principals, how it fits, and received feedback along the lines of &quot;our engineers agreed with your technical assessment, but that&#x27;s not the answer we wanted, so we&#x27;re going to pass&quot;. I&#x27;ve had this experience a good handful of times.<p>Probably a better outcome than being hired onto a team where everyone know you&#x27;re technically correct but they ignore your suggestions for some mysterious (to you) reason.
      • ahartmetz8 hours ago
        Every one of these cores is really fast, too!
        • jesse__6 hours ago
          yeah man, computers are completely bananacakes
      • colechristensen5 hours ago
        Yeah I had this problem at a couple of times in startup interviews where the interviewer asked a question I happened to have expertise in and then disagreed with my answer and clearly they didn&#x27;t know all that much about it. It&#x27;s ok, they did me a favor.<p>It may or may not be related that the places that this happened were always very ethnically monotone with narrow age ranges (nothing against any particular ethnic group, they were all <i>different</i> ethnic monotones)
        • jesse__5 hours ago
          Hah yeah, that&#x27;s a funny one, being able to run circles around the interviewer.
      • badgersnake6 hours ago
        This kind of bad interview is rife. It’s often more a case of guess what the interviewer thinks than come up with a good solution.
      • jitl5 hours ago
        1gb of json u can do in one parse ¯\_(ツ)_&#x2F;¯ big batches are fast
      • yieldcrv8 hours ago
        “there’s no wrong answer, we just want to see how you think” gaslighting in tech needs to be studied by the EEOC, Department of Labor, FTC, SEC, and Delaware Chancery Court to name a few<p>let’s see how <i>they</i> think and turn this into a paid interview
    • pocketarc12 hours ago
      I agree - and it&#x27;s not just what gets you promoted, but also what gets you hired, and what people look for in general.<p>You&#x27;re looking for your first DevOps person, so you want someone who has experience doing DevOps. They&#x27;ll tell you about all the fancy frameworks and tooling they&#x27;ve used to do Serious Business™, and you&#x27;ll be impressed and hire them. They&#x27;ll then proceed to do exactly that for your company, and you&#x27;ll feel good because you feel it sets you up for the future.<p>Nobody&#x27;s against it. So you end up in that situation, which even a basic home desktop would be more than capable of handling.
      • jrjeksjd8d12 hours ago
        I have been the first (and only) DevOps person at a couple startups. I&#x27;m usually pretty guilty of NIH and wanting to develop in-house tooling to improve productivity. But more and more in my career I try to make boring choices.<p>Cost is usually not a huge problem beyond seed stage. Series A-B the biggest problem is growing the customer base so the fixed infra costs become a rounding error. We&#x27;ve built the product and we&#x27;re usually focused on customer enablement and technical wins - proving that the product works 100% of the time to large enterprises so we can close deals. We can&#x27;t afford weird flakiness in the middle of a POC.<p>Another factor I rarely see discussed is bus factor. I&#x27;ve been in the industry for over a decade, and I like to be able to go on vacation. It&#x27;s nice to hand off the pager sometimes. Using established technologies makes it possible to delegate responsibility to the rest of the team, instead of me owning a little rats nest fiefdom of my own design.<p>The fact is that if 5k&#x2F;month infra cost for a core part of the service sinks your VC backed startup, you&#x27;ve got bigger problems. Investors gave you a big pile of money to go and get customers _now_. An extra month of runway isn&#x27;t going to save you.
        • woooooo12 hours ago
          The issue is when all the spending gets you is more complexity, maintenance, and you don&#x27;t even get a performance benefit.<p>I once interviewed with a company that did some machine learning stuff, this was a while back when that typically meant &quot;1 layer of weights from a regression we run overnight every night&quot;. The company asked how I had solved the complex problem of getting the weights to inference servers. I said we had a 30 line shell script that ssh&#x27;d them over and then mv&#x27;d them into place. Meanwhile the application reopened the file every so often. Zero problems with it ever. They thought I was a caveman.
          • cheema335 hours ago
            I work for a small company with a handful of devs. We don&#x27;t have a dedicated devops person, so I do it all. Everything is self-hosted. Been that way for years. But, yeah, if I go on vacation and something foes screwy, the business is hosed. However, even if it were hosted on AWS or elsewhere, it would not be any better. If anything, it may be worse. Instead of a person being well versed in standards based tech, they&#x27;d have to be an AWS expert. Why would we want that?<p>I have recently started using terraform&#x2F;tofu and ansible to automate nearly all of the devops operations. We are at a point where Claude Code can use these tools and our existing configs to make configuration changes, debug issues by reviewing logs etc. It is much faster at debugging an issue than I am and I know our stuff inside and out.<p>I am beginning to think that AI will soon force people to rethink their cloud hosting strategy.
          • ffsm810 hours ago
            The issue with solutions like that is usually that people don&#x27;t know how it works and how to find it if it ever stops working...<p>Basically discoverability is where shell script fail
            • roncesvalles6 hours ago
              You can literally have a 20 line Python script on cron that verifies if everything ran properly and fires off a PagerDuty if it didn&#x27;t. And it looks like PagerDuty even supports heartbeat so that means even if your Python script failed, you could get alerted.
            • chuckadams10 hours ago
              Those scripts have logs, right? Log a hostname and path when they run. If no one thinks to look at logs, then there&#x27;s a bigger problem going on than a one-off script.
            • woooooo10 hours ago
              That becomes a problem if you let the shell script mutate into an &quot;everything&quot; script that&#x27;s solving tons of business problems. Or if you&#x27;re reinventing kubernetes with shell scripts. There&#x27;s still a place for simple solutions to simple problems.
              • esafak33 minutes ago
                That&#x27;s happens naturally as every engineer adds just another feature to it.
            • LevGoldstein8 hours ago
              Which is why you take the time to put usage docs in the repo README, make sure the script is packaged and deployed via the same methods that the rest of the company uses, and ensure that it logs success&#x2F;failure conditions. That&#x27;s been pretty standard at every organization I&#x27;ve been at my entire professional career. Anyone who can&#x27;t manage that is going to create worse problems when designing&#x2F;building&#x2F;maintaining a more complex system.
              • mlyle6 hours ago
                Yah. A lot of the complexity in data movement or processing is unneeded. But decent standardized orchestration, documentation, and change management isn&#x27;t optional even for the 20 line shell script. Thankfully, that stuff is a lot easier for the 20 line standard shell script.<p>Or python. The python3 standard library is pretty capable, and it&#x27;s ubiquitous. You can do a lot in 50-100 lines (counting documentation) with no dependencies. In turn it&#x27;s easy to plug into the other stuff.
            • justsomehnguy10 hours ago
              &gt; Basically discoverability is where shell script fail<p>No, it&#x27;s lack of documentation and no amount of $$$$&#x2F;m enterprise AI solutions (R)(TM) would help you if there is no documentation.
        • SJC_Hacker3 hours ago
          In my experience, that $5k&#x2F;month easily blows up into $100k&#x2F;month
      • pragma_x10 hours ago
        I&#x27;ve seen the ramifications of this &quot;CV first&quot; kind of engineering. Let&#x27;s just say that it&#x27;s a bad time when you&#x27;re saddled with tech debt solely from a handful of influential people that really just wanted to work elsewhere.
        • bandrami5 hours ago
          I&#x27;m largely a stranger to the js world but from the outside it sure looks like projects are sharded so as to maximize npm contribution count
      • atomicnumber35 hours ago
        I&#x27;m convinced k8s is a conspiracy by bigtech to suppress startups.
        • hunterpayne51 minutes ago
          So its the EJBs of this age then?
    • wccrawford12 hours ago
      I&#x27;ve spent my last 2 decades doing what&#x27;s right, using the technologies that make sense instead of the techs that are cool on my resume.<p>And then I got laid off. Now, I&#x27;ve got very few modern frameworks on my resume and I&#x27;ve been jobless for over a year.<p>I&#x27;m feeling a right fool now.
      • hackthemack7 hours ago
        I have hung on to my job for many years now because of being in a similar situation in regards to trying to do the right thing and the fear of not being hire-able.<p>There is something wrong with the industry in chasing fads and group think. It has always been this way. Businesses chased Java in the late 90s, early 00s. They chased CORBA, WSDL, ESB, ERP and a host of other acronyms back in the day.<p>More recently, Data Lake, Big Data, Cloud Compute, AI.<p>Most of the executives I have met really have no clue. They just go with what is being promoted in the space because it offers a safety net. Look, we are &quot;not behind the curve!&quot;. We are innovating along with the rest of the industry.<p>Interviews do not really test much for ability to think and reason. If you ran an entire ISP, if you figured out, on your own, without any help, how to shard databases, put in multiple layers of redundancy, caching... well, nobody cares now. You had to do it in AWS or Azure or whatever stack they have currently.<p>Sadly, I do not think it will ever be fixed. It is something intrinsic to human nature.
      • ahartmetz7 hours ago
        Try Rust? The system programming world isn&#x27;t very bullshit-infested and Rust is trendy (which is good for a change), also employers can&#x27;t realistically expect many years of Rust experience.<p>Need training and something to show? Contribute to some FOSS project.
      • fHr11 hours ago
        This exactly, actual doers are most of the time not rewarded meanwhile the AWS senior sucking Jeffs wiener specialist gets a job doing nothing but generating costs and leave behind more shit after his 3 years moving the ladder up to some even bigger bs pretend consulting job at an even bigger company. It&#x27;s the same bs mostly for developers. I rewrite their library from TS to Rust and it gains them 50x performance increases and saves them 5k+ a week over all their compute now but nobody gives a shit and I do not have a certification for that to show off on my LinkedIn. Meanwhile my PM did nothing got paid to do some shity certificate and then gets the credit and the certificate and pisses of to the next bigger fish collecting another 100k more meanwhile I get a 1k bonus and a pat on the shoulder. Corporate late stage capitalism is complete fucking bs and I think about becoming a PM as well now. I feel like a fool and betrayed. Meanwhile they constantly threaten our Team to lay it off or outsource it as they say we are to expensive in a first world country and they easily find as good people in India etc. What a time to be alive.
        • antonvs7 hours ago
          &gt; saves them 5k+ a week over all their compute<p>If you&#x27;re willing and able to promote yourself internally, you can make people give a shit, or at least publicly claim they do. That&#x27;s 260k+ per year, and even big businesses are going to care about that at some level, especially if it&#x27;s something that can be replicated. Find 10 systems you can do that with, and it&#x27;s 2.6m+ per year.<p>But, if you don&#x27;t want to play the self-promotion game, yeah someone else is going to benefit from your work.
    • nicoburns12 hours ago
      &gt; datasets that often fit entirely in RAM.<p>Yep, and a lot more datasets fit entirely into RAM now. Ignoring the recent price spikes for a moment, 128GB of RAM in a laptop is entirely achievable and not even the limit of what is possible. That was a pipe dream in 2014 when computers with only 4GB were still common. And of course for servers the max RAM is much higher, and in a lot of scenarios streaming data off a fast local SSD may be almost as good.
      • dapperdrake11 hours ago
        Oldie-but-goldy:<p><a href="https:&#x2F;&#x2F;yourdatafitsinram.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;yourdatafitsinram.net&#x2F;</a>
      • newyankee10 hours ago
        I have actually worked in a company as a consultant data guy in a non technical team, I had a 128 GB PC 10 years back, and did everything with open source R then, and it worked ! The others thought it was wizardry
      • plagiarist8 hours ago
        You don&#x27;t really need to ignore the price spikes even. You can still buy more than 128Gb RAM on a machine with the $5k from one of the months.
    • czhu126 hours ago
      I think it’s not so much engineers actually setting up a distributed compute, as it is dropping a credit card into a paid cloud service, which behind the scenes sets up a distributed compute cluster and bills you for the compute in an obfuscated way, then gives a 20% discount + SSO if you sign up for annual enterprise plan.<p>This kind of practice is insidious because early on, they charge $20&#x2F;month to get started on the first 100mb of log ingestion, and you can have it up and running in 30 seconds with a credit card. Who would turn that down?<p>Revisit that set up 2 years later and it’s turned into a 60k&#x2F;y behemoth that no one can unwind
    • reval13 hours ago
      I’ve seen this pattern play out before. The pushback on simpler alternatives seems from a legitimate need for short time to market from the demand some of the equation and a lack of knowledge on the supply side. Every time I hear an engineer call something hacky, they are at the edge of their abilities.
      • networkadmin12 hours ago
        &gt; Every time I hear an engineer call something hacky, they are at the edge of their abilities.<p>It&#x27;s just like the systemd people talking about sysvinit. &quot;Eww, shell scripts! What a terrible hack!&quot; says the guy with no clue and no skills.<p>It&#x27;s like the whole ship is being steered by noobs.
        • acdha12 hours ago
          systemd would be a derail even if you weren’t misrepresenting the situation at several levels. Experienced sysadmins in my experience were the ones pushing adoption because they had to clean up the messes caused by SysV’s design limitations and flaws, whereas in this case it’s a different scenario where the extra functionality is both unneeded and making it worse at the core task.
          • networkadmin12 hours ago
            &gt; Experienced sysadmins in my experience were the ones pushing adoption because they had to clean up the messes caused by SysV’s design limitations and flaws<p>That&#x27;s funny. I used to have to clean up the messes caused by <i>systemd&#x27;s</i> design limitations and flaws, until I built my own distro with a sane init system installed.<p>Many of the noobs groaning about the <i>indignity</i> of shell scripts don&#x27;t even realize that they could write init &#x27;scripts&#x27; in whatever language they want, including Python (the language these types usually love so much, if they do any programming at all.)
            • chuckadams10 hours ago
              It&#x27;s entirely possible that both SysV init and systemd suck for different reasons. I&#x27;m still partial to systemd since it takes care of daemons and supervision in a way that init does not, but I&#x27;ll take s6 or process-compose or even supervisord if I have to. Horses for courses.
              • plagiarist7 hours ago
                I want to love s6 but every time I see the existence of s6-rc-compile I get heated. I&#x27;m sure there are excellent reasons behind it but I personally don&#x27;t want services to work that way.
            • acdha7 hours ago
              I think you’d have a more fruitful discussion if you stopped trying to call people noobs when they don’t agree with you.<p>For example, I’ve been dealing with SysV since the early 90s and while it’s gotten better since we no longer have to support the really bizarre Unix variants, my problem with init scripts wasn’t “indignity” but the lack of consistency across distributions and versions, which affects anyone shipping software professionally (“can’t do this easily until $distro upgrades coreutils”), and from an operator’s perspective using Python doesn’t make that better because instead of supporting one consistent thing you’d end up with the subset of features each application team felt like implementing, consistent only to the extent that they care to follow other projects. One virtue of systemd is that having a single common way to specify dependencies, restarts, customization, etc. avoids the ops people having to learn dozens of different variations of the same ideas and especially how to deal with their gaps. A few years back, a data center power outage at one place I worked really highlighted that: the systemd-based servers recovered quickly because they actually had working retries; all of the older stuff using SysV had to be manually reviewed because there were all kinds of problems like races on dependencies like DNS or NFS, retry logic which failed hard after a short period of time, failures because a stale PID file wasn’t removed, or cases where a vendor had simply never implemented retries in their init scripts. While in theory you can handle all of those in SysV most people never did.<p>After a couple decades of that, a lot of us don’t want to spend time on problems Microsoft solved in Bill Clinton’s first term.
              • whatwhaaaaat6 hours ago
                I hate to blather on about systemd in this decade but how in the world does creating something completely different than sysv init help people shipping software? Now they have to support yet another init scheme.
                • acdha5 hours ago
                  Prior to all of the important distributions consolidating on systemd, you had to support each distribution’s convention for customization, overrides, dependencies, conventions for things like changing users or locations for PID files, not to mention the differences in various shell tools.<p>Nothing insurmountable but it meant init files were inevitably much longer than the corresponding Upstart or systemd files despite doing less, and anytime we shipped a new version you had more testing since you had to implement a lot of functionality which is built in to other things.
              • networkadmin7 hours ago
                I just created my own OS, with my own init system that does things how I think it should be done--and it does it every time, without the bizarre bugs that come from Linux Puttering&#x27;s shitware code.<p>It&#x27;s the same thing any corporation should be doing if they were smart, instead of outsourcing everything to RedHat, Microsoft, Google, etc.
                • array_key_first4 hours ago
                  The reality is unit files are more portable than init scripts, regardless of what anyone says.<p>Systemd unified and simplified administration across a lot of distributions. Before, it was a hodge podge, and there was a lot of knowledge lost going from rhel to Debian.
            • bitwize7 hours ago
              Specifying system processes and their dependencies declaratively, rather than in a tangle of arbitrary executable code, is cleaner, more efficient, easier to use, and more auditable. And that&#x27;s not even getting into the additional process management duties systemd assumes.
            • plagiarist7 hours ago
              You can write arbitrary scripts into systemd... or like one step removed at most? That&#x27;s not really a difference unless you have some nuance in mind that I don&#x27;t.<p>I honestly do not like systemd, either. It is okay for managing processes but I wish it didn&#x27;t spread into everything else in the machine.<p>Or if it must, could it actually work cohesively across their concepts? Would be nice to have an obvious and easy way to run Quadlet as its own user to isolate further, would be nice to have systemd-sysusers present in &#x2F;etc&#x2F;subuid so they can run containers.<p>I like what they are doing with atomic distros. It would be great to have a single file declarative setup for something like running a containerized reverse HTTP proxy with an isolated user. Instead of &quot;atomic&quot; but you manually edit files in &#x2F;etc after install.
        • dapperdrake11 hours ago
          Eternal September
    • RobinL13 hours ago
      Worse in some ways, better in others. DuckDB is often an excellent tool for this kind of task. Since it can run parallelized reads I imagine it&#x27;s often faster than command line tool, and with easier to understand syntax
      • briHass11 hours ago
        More importantly, you have your data in a structured format that can be easily inspected at any stage of the pipeline using a familiar tool: SQL.<p>I&#x27;ve been using this pattern (scripts or code that execute commands against DuckDB) to process data more recently, and the ability to do deep investigations on the data as you&#x27;re designing the pipeline (or when things go wrong) is very useful. Doing it with a code-based solution (read data into objects in memory) is much more challenging to view the data. Debugging tools to inspect the objects on the heap is painful compared to being able to JOIN&#x2F;WHERE&#x2F;GROUP BY your data.
        • groundzeros20155 hours ago
          Yep. It’s literally what SQL was designed for, your business website can running it… the you write a shell script to also pull some data on a cron. It’s beautiful
      • mrgoldenbrown11 hours ago
        IMHO the main point of the article is that typical unix command pipeline pipeline IS parallelized already.<p>The bottleneck in the example was maxing out disk IO, which I don&#x27;t think duckdb can help with.
        • chuckadams10 hours ago
          Pipes are parallelized when you have unidirectional data flow between stages. They really kind of suck for fan-out and joining though. I do love a good long pipeline of do-one-thing-well utilities, but that design still has major limits. To me, the main advantage of pipelines is not so much the parallelism, but being streams that process &quot;lazily&quot;.<p>On the other hand, unix sockets combined with socat can perform some real wizardry, but I never quite got the hang of that style.
          • mdavidn8 hours ago
            Pipelines are indeed one flow, and that works most of the time, but shell scripts make parallel tasks easy too. The shell provides tools to spawn subshells in the background and wait for their completion. Then there are utilities like xargs -P and make -j.
          • Linux-Fan9 hours ago
            UNIX provides the Makefile as go-to tool if a simple pipeline is not enough. GNUmake makes this even more powerful by being able to generate rules on-the-fly.<p>If the tool of interest works with files (like the UNIX tools do) it fits very well.<p>If the tool doesn&#x27;t work with single files I have had some success in using Makefiles for generic processing tasks by creating a marker file that a given task was complete as part of the target.
    • attractivechaos10 hours ago
      On the contrary, the key message from the blog post is <i>not</i> to load the entire dataset to RAM unless necessary. The trick is to stream when the pattern works. This is how our field routinely works with files over 100GB.
    • willtemperley11 hours ago
      Yep. The cloud providers however always get paid, and get paid twice on Sunday when the dev-admins forget to turn stuff off.<p>It’s the same story as always, just it used to be Oracle certified tech, now it’s the AWS tech certified to ensure you pay Amazon.
    • vjvjvjvjghv1 hour ago
      I see this at work too. They are ingesting a few GB per day but running the data through multiple systems. So the same functionality we delivered with a python script within a week now takes months to develop and constantly breaks.
    • lormayna12 hours ago
      For a dasaset that live in RAM, the best solution are DuckDB or clickhouse-local. Using SQLish data is easier than a bunch of bash script and really powerful.
      • zX41ZdbW11 hours ago
        Though ClickHouse is not limited to a single machine or local data processing. It&#x27;s a full-featured distributed database.
    • dgxyz5 hours ago
      Our lot burns a fortune on snowflake every month but no one is using it. Not enough data is being piped into it and the shitty old reports we have which just run some SQL work fine.<p>It looked good on someone’s resume and that was it. They are long gone.
    • data-ottawa10 hours ago
      Airflow and dbt serve a real purpose.<p>The issue is you can run sub tib jobs on a few small&#x2F;standard instances with better tooling. Spark and Hadoop are for when you need multiple machines.<p>Dbt and airflow let you represent your data as a DAG and operate on that, which is critical if you want to actually maintain and correct data issues and keep your data transforms timely.<p>edit: a little surprised at multiple downvotes. My point is, you can run airflow and dbt on small instances, and you can do all your data processing on small instances with tools like duckdb or polars.<p>But it is very useful to use a tool like dbt that allows you to re-build and manage your data in a clear way, or a tool like airflow which lets you specify dependencies for runs.<p>After say 30 jobs or so, you&#x27;ll find that being able to re-run all downstreams of a model starts to payoff.
      • adammarples9 hours ago
        Agreed, airflow and dbt have literally nothing to do with the size of the data and can be useful, or overkill, at any size. Dbt just templates the query strings we use to query the data and airflow just schedules when we query the data and what we do next. The fact that you can fit the whole dataset in duckdb without issue is kind of separate to these tools, we still need to be organised about how and when we query it.
      • x0x02 hours ago
        dbt is super useful for building a dag and managing pieces of it that update on different schedules. eg with one dataset that&#x27;s refreshed monthly and another daily, you can only rebuild the daily one unless the slower-cadence input has a new update.
    • hmokiguess9 hours ago
      This reminds me of this reddit comment from a long time ago: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;programming&#x2F;comments&#x2F;8cckg&#x2F;comment&#x2F;c08ukiu&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;programming&#x2F;comments&#x2F;8cckg&#x2F;comment&#x2F;...</a>
    • petcat13 hours ago
      &gt; a robust bash script<p>These hardly exist in practice.<p>But I get what you mean.
      • sam_lowry_8 hours ago
        Yoy don&#x27;t. It&#x27;s bash only because the parent process is bash, but otherwise it&#x27;s all grep, sort, tr, cut and othe textutils piped together.
        • mjevans5 hours ago
          awk can do some heavy lifting too if the environment is too locked down to import a kitchen sink of python modules.
    • rawgabbit9 hours ago
      Well. I try for a middle ground. I am currently ditching both airflow and dbt. In Snowflake, I use scheduled tasks that call stored procedures. The stored procedures do everything I need to do. I even call external APIs like Datadog’s and Okta’s and pull down the logs directly into snowflake. I do try to name my stored procedures with meaningful names. I also add generous comments including urls back to the original story.
      • rawgabbit3 hours ago
        I forgot to mention in Snowflake, besides chron scheduled tasks, you can add dependent tasks that only run if the previous task succeeded. I have 40 tasks chained together that way. Each of my task calls a stored procedure. Within each procedure, I have Try Catch and a catch-all clause that Raiseerror.
    • jitl5 hours ago
      On the other hand, now we have duckdb for all the “small big data”, and a slew of 10-100x faster than Java equivalent stuff in the data x rust ecosystem, like DataFusion, Feldera, ByteWax, RisingWave, Materialize etc
      • hunterpayne18 minutes ago
        I call BS on those Rust 10-100x claims. Rust and Java are roughly equal in performance. It is just that there are a lot of old NoSQL frameworks in Java which are trash. I also checked out those companies, some of which are doing interesting stuff. None claim things are 100x faster because of Rust. You just hurt your credibility when you say such clearly false things. That&#x27;s how you end up with a Hadoop cluster which is 236x slower than a batch script.<p>PS None of the companies you linked seem to be using a datapath architecture which is the key to the highest level of performance
      • groundzeros20155 hours ago
        The point of the article is those don’t actually work that well.<p>I guarantee those rust projects have spent more time playing with rust and library design than the domain problem they are trying to solve.
        • jitl3 hours ago
          None of the systems I mentioned existed at the time the article was published. I think the author would love duckdb which is a very speedy CLI SQL thingy that reads and writes data in all sorts of formats. It fits in great with other Unix CLI stuff.<p>Many of the projects I mentioned you could see as a response to OP and the 2015 “Scalability, but at what COST?” paper which benchmarked distributed systems to see how many cores they need to beat a single thread. (<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26925449">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26925449</a>)
          • groundzeros20152 hours ago
            &gt; None of the systems I mentioned existed at the time the article was published<p>So Hadoop was doing distributed compute wrong but now they have it figured out?<p>The point is that there is enormous overhead and complexity in going it in any kind of system. And your computer has a lot of power you probably aren’t maxing out.<p>&gt; which is a very speedy CLI SQL thingy that reads and writes data in all sorts of formats.<p>Do you know about SQLite?
            • jitl2 hours ago
              Yeah im a big fan of SQLite :). But at analytical workloads like aggregating every row, DuckDB will outperform SQLite by a wide margin. SQLite is great stuff but it’s not a very good data Swiss Army knife because it’s very focused on a single core competency: embeddable OLTP with a simple codebase. DuckDB can read&#x2F;write many more formats from local disk or via a variety of network protocols. DuckDB also embeds SQLite so you can use it with SQLite DBs as inputs or outputs.<p>&gt; they were doing distributed compute wrong but now they have it figured out?<p>Like anything the future is here but it’s unevenly distributed. Frank McSherry, the first author of “Scalability but at what COST” wrote Timely Dataflow as his answer to that question. ByteWax is based on Timely as is Materialize. Stuff is still complex but these more modern systems with performance as their goal are orders of magnitude better than the Hadoop era Java stuff.
    • 1vuio0pswjnm711 hours ago
      &quot;I&#x27;ve seen startups burning $5k&#x2F;mo on distributed compute clusters to process &lt;10GB of daily logs, purely because setting up a &#x27;Modern Data Stack&#x27; is what gets you promoted, while writing a robust bash script is seen as &#x27;unscalable&#x27; or &#x27;hacky&#x27;.&quot;<p>Also seen strange responses from HN commenters when it&#x27;s mentioned that bash is large and slow compared to ash and bash is better suited for use as an interactive shell whereas ash is better suited for use as a non-interactive shell, i.e., a scripting shell<p>I also use ash (with tabcomplete) as an interactive shell for several reasons
    • mritchie71211 hours ago
      happy middle ground: <a href="https:&#x2F;&#x2F;www.definite.app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.definite.app&#x2F;</a> (I&#x27;m the founder).<p>datalake (DuckLake), pipelines (hubspot, stripe, postgres), and dashboards in a single app for $250&#x2F;mo.<p>marketing&#x2F;finance get dashboards, everyone else gets SQL + AI access. one abstraction instead of five, for a fraction of your Snowflake bill.
    • awesome_dude3 hours ago
      ENG are building what MGMT has told them to build for, the scale they want, not the scale they have
    • jmye5 hours ago
      &gt; because setting up a &#x27;Modern Data Stack&#x27; is what gets you promoted<p>It’s not just that, it’s that you better know their <i>specific</i> tech stack to even get hired. It’s a lot of dumb engineering leaders pretending that AWS, Azure and Snowflake are such wildly different ecosystems that not having <i>direct</i> experience in theirs is disqualifying (for pure DE roles, not talking broader sysadmin).<p>The entire data world is rife with people who don’t have the faintest clue what they’re doing, who really like buzzwords, and who have never thought about their problem space critically.
    • shiandow11 hours ago
      If airflow is a layer of abstraction something is wrong.<p>Yes it is an additional layer, but if your orchestration starts concerning itself with <i>what</i> it is doing then something is wrong. It is not a layer on top of other logic, it is a <i>single</i> layer where you define how to start your tasks, how to tell when something is wrong, and when to run them.<p>If you don&#x27;t insist on doing heavy compitations within the airflow worker it is dirt cheap. If it&#x27;s something that can easily be done in bash or python you can do it within the worker as long as you&#x27;re willing to throw a minimal amount of hardware at it.
  • adamdrake6 hours ago
    Author here!<p>It&#x27;s great to see this post I wrote years ago still being useful for people.<p>I agree with many here that the situation is arguably worse in many ways. However, along similar lines, I&#x27;ve been pleased to see a move away from cargo culting microservices (another topic I addressed in a separate post on that site).<p>To all those helping companies and teams improve performance, keep it up! There is hope!
    • dapperdrake6 hours ago
      Adam,<p>Thank you very much!<p>Been re-reading your post multiple times.<p>You inspired me to port Waters-Series (kind-of streams) to JavaScript to get pipelining for stream processing.
  • benrutter12 hours ago
    This times a zillion! I think there&#x27;s been a huge industry push to convince managers and more junior engineers that spark and distributed tools are <i>the correct way to do data engineering</i>.<p>I think its a similar pattern to web dev influencers have convinced everyone to build huge hydrated-spa-framework-craziness where a static site would do.<p>My advice to get out of this mess:<p>- Managers, don&#x27;t ask for specific solutions (spark, react). Ask for clever engineers to solve problems and optimise &#x2F; track what you vare about (cost, performance etc). You hired them to know best, and they probably do.<p>- Technical leads, if your manager is saying &quot;what about hyperscale?&quot; You don&#x27;t have to say &quot;our existing solution will scale forever&quot;. It&#x27;s fine to say, &quot;our pipelines handle dataset up to 20GB, we don&#x27;t expect to see anything larger soon, and if we do we&#x27;ll do x&#x2F;y&#x2F;z to meet that scale&quot;. Your manager probably just wants to know scaling isn&#x27;t going to crash everything, not that you&#x27;ve optimised the hell out of everything for your excel spreadsheet processing pipeline.
    • woeirua10 hours ago
      Here’s the thing though, most companies work with small data. The distribution of data set size follows a power law which means that few engineers get to work with petabyte sized datasets. That said, the job market definitely incentivizes people to have that kind of experience on their resume if they want to keep progressing in salary. This incentivizes over engineering.
      • groundzeros20155 hours ago
        yes, but engineers also suck at communicating costs and benefits (and understanding them).
    • zug_zug11 hours ago
      Absolutely, when I worked at (semi-well-known unicorn) a half-dozen years ago on the data-engineering team the manager told me &quot;Hey we want to use spark next quarter, that&#x27;s a huge initiative.&quot;<p>And I immediately asked, &quot;in what capacity?&quot; And the answer was don&#x27;t-know&#x2F;doesn&#x27;t-matter, it&#x27;s just important that we can say we&#x27;re using it. I really wish I understood where that was coming from (his manager resume-building? somebody getting a kickback?)
      • spauldo8 hours ago
        That&#x27;s when you rewrite your codebase in the SPARK dialect of Ada and play innocent when your management questions you about it.
      • coliveira7 hours ago
        They&#x27;ll never say it&#x27;s resume building or kickbacks, they&#x27;ll invent some technically sounding and&#x2F;or business reason to achieve the same result.
      • thwarted6 hours ago
        The most interesting part is that you can say you&#x27;re doing&#x2F;using something entirely independent of if you actually are. Sure, that&#x27;s a lie, but so is only using something so you can say you&#x27;re using it (sure, they admitted to <i>you</i> that was the reason, but that won&#x27;t be the reason they put on LinkedIn).
  • rented_mule13 hours ago
    A little bit of history related to the article for any who might be interested...<p>mrjob, the tool mentioned in the article, has a local mode that does not use Hadoop, but just runs on the local computer. That mode is primarily for developing jobs you&#x27;ll later run on a Hadoop cluster over more data. But, for smaller datasets, that local mode can be significantly faster than running on a cluster with Hadoop. That&#x27;s especially true for transient AWS EMR clusters — for smaller jobs, local mode often finishes before the cluster is up and ready to start working.<p>Even so, I bet the author&#x27;s approach is still significantly faster than mrjob&#x27;s local mode for that dataset. What MapReduce brought was a constrained computation model that made it easy to scale way up. That has trade-offs that typically aren&#x27;t worth it if you don&#x27;t need that scale. Scaling up here refers to data that wouldn&#x27;t easily fit on disks of the day — the ability to seamlessly stream input&#x2F;output data from&#x2F;to S3 was powerful.<p>I used mrjob a <i>lot</i> in the early 2010s — jobs that I worked on cumulatively processed many petabytes of data. What it enabled you to do, and how easy it was to do it, was pretty amazing when it was first released in 2010. But it hasn&#x27;t been very relevant for a while now.
  • torginus14 hours ago
    When I worked as a data engineer, I rewrote some Bash and Python scripts into C# that were previously processing gigabytes of JSON at 10s of MB&#x2F;s - creating a huge bottleneck.<p>By applying some trivial optimizations, like streaming the parsing, I essentially managed to get it to run at almost disk speed (1GB&#x2F;s on an SSD back then).<p>Just how much data do you need when these sort of clustered approaches really start to make sense?
    • embedding-shape14 hours ago
      &gt; I rewrote some Bash and Python scripts into C# that were previously processing gigabytes of JSON<p>Hah, incredibly funny, I remember doing the complete opposite about 15 years ago, some beginner developer had setup a whole interconnected system with multiple processes and what not in order to process a bunch of JSON and it took forever. Got replaced with a bash script + Python!<p>&gt; Just how much data do you need when these sort of clustered approaches really start to make sense?<p>I dunno exactly what thresholds others use, but I usually say if it&#x27;d take longer than a day to process (efficiently), then you probably want to figure out a better way than just running a program on a single machine to do it.
    • noufalibrahim12 hours ago
      I remember a panel once at a PyCon where we were discussing, I think, the anaconda distribution in the context of packaging and a respected data scientist (whose talks have always been hugely popular) made the point that he doesn&#x27;t like Pandas because it&#x27;s not excel. The latter was his go to tool for most of his exploratory work. If the data were too big, he&#x27;d sample it and things like that but his work finally was in Excel.<p>Quick Python&#x2F;bash to cleanup data is fine too I suppose and with LLMs, it&#x27;s easier than ever to write the quick throwaway script.
      • acomjean10 hours ago
        I took a bio statistic class. The tools were Excel&#x2F; R or Stata.<p>I think most people used R. Free and great graphing. Though the interactivity of Excel is great for what ifs. I never got R till I took that class. Though RStudio makes R seem like scriptable excel.<p>R&#x2F;Python are fast enough for most things though a lot of genomic stuff (Blast alignments etc..) are in compiled languages.
      • dapperdrake11 hours ago
        Whenever I had to use anaconda it was slow as molasses. Was that ever fixed?
        • greazy3 hours ago
          This has been fixed for ages. The dep solver was changed to Libmamba a few years ago.
        • zahlman8 hours ago
          What <i>tasks</i> were slow?
    • rented_mule13 hours ago
      I like the peer comment&#x27;s answer about a processing time threshold (e.g., a day). Another obvious threshold is data that doesn&#x27;t conveniently fit on local disks. Large scale processing solutions can often process directly from&#x2F;to object stores like S3. And if it&#x27;s running inside the same provider (e.g., AWS in the case of S3), data can often be streamed much faster than with local SSDs. 10GB&#x2F;s has been available for a decade or more, and I think 100GB&#x2F;s is available these days.
      • betaby10 hours ago
        &gt; data can often be streamed much faster than with local SSDs. 10GB&#x2F;s has been available for a decade or more, and I think 100GB&#x2F;s is available these days.<p>In practice most AWS instances are 10Gbps capped. I have seen ~5Gbps consistently read from GCS and S3. Nitro based images are in theory 100Gbps capable, in practice I&#x27;ve never seen that.
        • sgarland9 hours ago
          Also, anything under 16 vCPUs generally has baseline &#x2F; burst bandwidth, with the burst being best-effort, 5-60 minutes.<p>This has, at multiple companies for me, been the cause of surprise incidents, where people were unaware of this fact and were then surprised when the bandwidth suddenly plummeted by 50% or more after a sustained load.
    • KolmogorovComp13 hours ago
      &gt; Just how much data do you need when these sort of clustered approaches really start to make sense?<p>I did not see your comment earlier, but to stay with Chess see <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46667287">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46667287</a>, with ~14Tb uncompressed.<p>It&#x27;s not humongous and it can certainly fit on disk(s), but not on a typical laptop.
    • commandersaki13 hours ago
      How do you stream parse json? I thought you need to ingest it whole to ensure it is syntactically valid, and most parsers don&#x27;t work with inchoate or invalid json? Or at least it doesn&#x27;t seem trivial.
      • torginus12 hours ago
        I used Newtonsoft.Json which takes in a stream, and while it can give you objects, it can also expose it as a stream of tokens.<p>The bulk of the data was in big JSON arrays, so you basically consumed the array start token, then used the parser to consume an entire objects which could be turned into a C# object by the deserializer, then you consumed a comma or end array token until you ran out of tokens.<p>I had to do it like this because DS-es were running into the problem that some of the files didn&#x27;t fit into memory. The previous approach took 1 hour, involved reading the whole file into memory and parsing it as JSON (when some of the files got over 10GB, even 64GB memory wasnt enough and the system started swapping).<p>It wasn&#x27;t fast even before swapping (I learned just how slow Python can be), but then basically it took a day to run a single experiment. Then the data got turned into a dataframe.<p>I replaced that part of the Python code processing and outputted a CSV which Pandas could read without having to trip through Python code (I guess it has an internal optimized C implementation).<p>The preprocessor was able to run on the build machines and DSes consumed the CSV directly.
        • briHass11 hours ago
          This sounds similar to how in C#&#x2F;.NET there are (at least) 3 methods to reading XML: XmlDocument, XPathDocument, or XmlReader. The first 2 are in-memory object models that must parse the entire document to build up an object hierarchy, which you then access object-oriented representations of XML constructs like elements and attributes. The XmlReader is stream-based, where you handle tokens in the XML as they are read (forward-only.)<p>Any large XML document will clobber a program using the in-memory representations, and the solution is to move to XmlReader. System.Text.Json (.NET built-in parsing) has a similar token-based reader in addition to the standard (de)serialization to objects approach.
        • zahlman8 hours ago
          Would for example <a href="https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;json-stream&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;json-stream&#x2F;</a> have met your needs?
          • torginus7 hours ago
            I&#x27;m going to go out on a limb and say no - this library seems to do the parsing in Python, and Python is <i>slow</i>, like many times slower than Java, C# or languages in this class - which you find out if you try to do heavy data processing with it, which is one of the reasons I dislike the language. It&#x27;s also very hard to parallelize - in C# if you feed stuff into LINQ and entries are independent, you can make the work parallel with PLINQ very quickly, while threads aren&#x27;t really a thing in Python (or at least they werent back then).<p>I&#x27;ve seen so many times that data processing quickly became a bottleneck and source of frustration with Python that stuff needed to be rewritten, that I came to not bother writing stuff in Python in the first place.<p>You can make Python fast by relying on NumPy and pandas with array programming, but doing so can be quite challenging to format and massage the data so that the things that you want can be expressed as array programming ops, that usually it became too much of a burden for me.<p>I wish Python was at least as fast as Node (which also can have its own share of performance cliffs)<p>It&#x27;s possible that nowadays Python has JITs that improve performance to Java levels while keeping compatibility with most existing code - I haven&#x27;t used Python professionally in quite a few years.
            • zahlman6 hours ago
              From the README, features include:<p>&gt; native code parsing speedups for most common platforms<p>Which is to say, roughly analogous to &quot;relying on NumPy&quot;. (A well-designed system avoids repeatedly calling from Python to C and prefers to let loops live within the C code; that applies at least as much to tree-like data as array-like data.)<p>&gt; I wish Python was at least as fast as Node (which also can have its own share of performance cliffs) It&#x27;s possible that nowadays Python has JITs that improve performance to Java levels while keeping compatibility with most existing code - I haven&#x27;t used Python professionally in quite a few years.<p>No guarantees, but have you tried PyPy? It&#x27;s existed since 2007 and definitely improved over time.<p>I would say that &quot;performance cliffs&quot; are just endemic to programming. Even in C you find people writing bad algorithms because better ones seem (at least superficially) much harder to write — especially if the good algorithm requires, say, a hash table. (C++ standard library containers definitely ameliorate this effect, but you pay in code complexity, especially where templates are needed.) And on the other hand you sometimes see big improvements from dropping to assembly (cf. ffmpeg).
      • rented_mule13 hours ago
        I don&#x27;t know what the GP was referring too, but often this is about &quot;JSONL&quot; &#x2F; &quot;JSON Lines&quot; - files containing one JSON object per line. This is common for things like log files. So, process the data as each line is deserialized rather than deserializing the entire file first.
      • giovannibonetti13 hours ago
        You assume it is valid, until it isn&#x27;t and you can have different strategies to handle that, like just skipping the broken part and carrying on.<p>Anyway, you write a state machine that processes the string in chunks – as you would do with a regular parser – but the difference is that the parser is eager to spit out a stream of data that matches the query as soon as you find it.<p>The objective is to reduce the memory consumption as much as possible, so that your program can handle an unbounded JSON string and only keep track of where in the structure it currently is – like a jQuery selector.
      • shakna13 hours ago
        There&#x27;s a whole heap of approaches, each with their own tradeoffs. But most of them aren&#x27;t trivial, no. And most end up behaving erratically with invalid json.<p>You can buffer data, or yield as it becomes available before discarding, or use the visitor pattern, and others.<p>One Python library that handles pretty much all of them, as a place to start learning, would be: <a href="https:&#x2F;&#x2F;github.com&#x2F;daggaz&#x2F;json-stream" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;daggaz&#x2F;json-stream</a>
      • bob10299 hours ago
        <a href="https:&#x2F;&#x2F;devblogs.microsoft.com&#x2F;dotnet&#x2F;the-convenience-of-system-text-json&#x2F;#large-document" rel="nofollow">https:&#x2F;&#x2F;devblogs.microsoft.com&#x2F;dotnet&#x2F;the-convenience-of-sys...</a><p><a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;dotnet&#x2F;standard&#x2F;serialization&#x2F;system-text-json&#x2F;use-utf8jsonreader" rel="nofollow">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;dotnet&#x2F;standard&#x2F;serializat...</a>
    • toast07 hours ago
      &gt; Just how much data do you need when these sort of clustered approaches really start to make sense?<p>You really need an enormous amount of data (or data processing) to justify a clustered setup. Single machines can scale up rather quite a lot.<p>It&#x27;ll cost money, but you can order a 24x128GB ram, 24x30TB ssd system which will arrive in a few days and give you 3 TB ram, 720 TB (fast) disk. You can go bigger, but it&#x27;ll be a little exotic and the ordering process might take longer.<p>If you need more storage&#x2F;ram than around that, you need clustering. Or if the processing power you get in your single system storage isn&#x27;t enough, you would need to cluster, but ~ 256 cores of cpu is enough for a lot of things.
      • greazy3 hours ago
        What motherboard supports this much ram?
        • toast02 hours ago
          <a href="https:&#x2F;&#x2F;store.supermicro.com&#x2F;us_en&#x2F;systems&#x2F;a-systems&#x2F;h13-2u-a-hyper-as-2125hs-tnr.html" rel="nofollow">https:&#x2F;&#x2F;store.supermicro.com&#x2F;us_en&#x2F;systems&#x2F;a-systems&#x2F;h13-2u-...</a><p>I have no experience with these, but lots of good experiences with last decade supermicro systems.
    • zjaffee13 hours ago
      It&#x27;s not about how much data you have, but also the sorts of things you are running on your data. Joins and group by&#x27;s scale much faster than any aggregation. Additionally, you have a unified platform where large teams can share code in a structured way for all data processing jobs. It&#x27;s similar in how companies use k8s as a way to manage the human side of software development in that sense.<p>I can however say that when I had a job at a major cloud provider optimizing spark core for our customers, one of the key areas where we saw rapid improvement was simply through fewer machines with vertically scaled hardware almost always outperformed any sort of distributed system (abet not always from a price performance perspective).<p>The real value often comes from the ability to do retries, and leverage left over underutilized hardware (i.e. spot instances, or in your own data center at times when scale is lower), handle hardware failures, ect, all with the ability for the full above suite of tools to work.
      • dapperdrake11 hours ago
        Other way around. Aggregation is usually faster than a join.
        • sgarland9 hours ago
          Disagree, though in practice it depends on the query, cardinality of the various columns across table, indices, and RDBMS implementation (so, everything).<p>A simple equijoin with high cardinality and indexed columns will usually be extremely fast. The same join in a 1:M <i>might</i> be fast, or it might result in a massive fanout. In the case of the latter, if your RDBMS uses a clustering index, and if you’ve designed your schemata to exploit this fact (e.g. a table called UserPurchase that has a PK of (user_id, purchase_id)) can still be quite fast.<p>Aggregations often imply large amounts of data being retrieved, though this is not necessarily true.
          • dapperdrake8 hours ago
            That level of database optimization is rare in practice. As soon as a non-database person gets decision making authority there goes your data model and disk layout.<p>And many important datasets never make it into any kind of database like that. Very few people provide &quot;index columns&quot; in their CSV files. Or they use long variable length strings as their primary key.<p>OP pertains to that kind of data. Some stuff in text files.
          • jitl5 hours ago
            unconvinced. any join needs some kind of seek on the secondary relation index, or a bunch of state if ur stream joining to build temporary index sizes O(n) until end of batch. on the other hand summing N numbers needs O(1) memory and if your data is column shaped it’s like one CPU instruction to process 8 rows. in “big data” context usually there’s no traditional b-tree index to join either. For jobs that process every row in the input set Mr Join is horrible for perf to the point people end up with a dedicated join job&#x2F;materialized view so downstream jobs don’t have to re do the work
    • groundzeros20155 hours ago
      Bash is built around streaming though. You have to know how to use the tools to get the gains.
    • dapperdrake11 hours ago
      Adam Drake&#x27;s example (OP) also streams from disk. And the unix pipeline is task-parallel.
    • jtbaker6 hours ago
      you didn&#x27;t need to read to rewrite to C# to do that - python should be able to handle streaming that amount&#x2F;velocity of data fine, at least through a native extension like msgspec or pydantic. additionally, you made it much harder for other data engineers that need to maintain&#x2F;extend the project in the future to do so.
      • saberience5 hours ago
        The C# is probably far more maintainable and less error prone than Python. At least in my experience that&#x27;s almost always the case.<p>The amount of Python jobs I&#x27;ve had which run fine for several hours and then break with runtime errors, whereas with C# you can be reliably sure that if it starts running it will finish running.
        • jtbaker4 hours ago
          Not a language problem, it&#x27;s a dev culture problem. You can hold your devs accountable to the quality of their code. Strong er typing support via static analysis as well as runtime validation with untrusted input&#x2F;data has really helped python alot.<p>I&#x27;m not necessarily the biggest fan of python, but writing a data engineering tool in a non-data engineering focused language seems like a bad decision. Now when the OP leaves the organization is in a much tougher position.
  • mbb706 hours ago
    The bigness of your data has always depended on the what you are doing with it.<p>Consider the following table of medical surgeries: date,physician_name, surgery_name,success.<p>&quot;What are the top 10 most common surgeries?&quot; - easy in bash<p>&quot;Who are the top physicians (% success) in the last year for those surgeries?&quot; - still easy in bash<p>&quot;Which surgeries are most affected by physician experience?&quot; - very hard in bash, requires calculating for every surgery how many times that physician had performed that surgery on that day, then compare low and high experience outcomes.<p>A researcher might see a smooth continuum of increasingly complex questions, but there are huge jumps in computational complexity. At 50gb dataset might be &#x27;bigger&#x27; than a 2tb one if you are asking tough questions.<p>It&#x27;s easier for a business to say &quot;we use Spark for data processing&quot;, than &quot;we build bespoke processing engines on a case by case basis&quot;.
    • christophilus2 hours ago
      50GB and 2TB are both sizes that SQLite supports and could handle. You could probably solve all of the problems you mentioned with simple tools on a single server, in the language of your choice.
  • paranoidrobot14 hours ago
    A selection of times it&#x27;s been previously posted:<p>(2018, 222 comments) <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17135841">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17135841</a><p>(2022, 166 comments) <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=30595026">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=30595026</a><p>(2024, 139 comments) <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39136472">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39136472</a> - by the same submitter as this post.
  • hmokiguess9 hours ago
    Tangential, but this reminds of the older K website when it used to be shakti.com that had an intro like this in their about section:<p>1K rows: use excel<p>1M rows: use pandas&#x2F;polars<p>1B rows: use shakti<p>1T rows: only shakti<p>Source: <a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20230331180931&#x2F;https:&#x2F;&#x2F;shakti.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20230331180931&#x2F;https:&#x2F;&#x2F;shakti.co...</a>
  • forinti12 hours ago
    I think many devs learn the trade with Windows and don&#x27;t get exposure to these tools.<p>Plus, they require a bit of reading because they operate on a higher level of abstraction than loops and ifs. You get implicit loops, your fields get cut up automatically, and you can apply regexes simultaneously on all fields. So it&#x27;s not obvious to the untrained eye.<p>But you get a lot of power and flexibility on the cli, which enable you to rapidly put together an ad hoc solution which can get the job done or at least serve as a baseline before you reach for the big guns.
  • KolmogorovComp13 hours ago
    &gt; The first thing to do is get a lot of game data. This proved more difficult than I thought it would be, but after some looking around online I found a git repository on GitHub from rozim that had plenty of games. I used this to compile a set of 3.46GB of data, which is about twice what Tom used in his test. The next step is to get all that data into our pipeline.<p>It would be interesting to redo the benchmark but with a (much) larger database.<p>Nowadays the biggest open-data for chess must comes from Lichess <a href="https:&#x2F;&#x2F;database.lichess.org" rel="nofollow">https:&#x2F;&#x2F;database.lichess.org</a>, with ~7B games and 2.34 TB compressed, ~14TB uncompressed.<p>Would Hadoop win here?
    • woooooo11 hours ago
      If you get all the data on fast SSDs in a single chassis, you probably still beat EMR over S3. But then you have a whole dedicated server to manage your 14TB of chess games.<p>The &quot;EMR over S3&quot; paradigm is based on the assumption that the data isn&#x27;t read all that frequently, 1-10x a day typically, so you want your cheap S3 storage but once in a while you&#x27;ll want to crank up the parallelism to run a big report over longer time periods.
    • dapperdrake11 hours ago
      Probably not.<p>The compressed data can fit onto a local SSD. Decompression can definitely be streamed.
      • djsjajah3 hours ago
        Not only can it be streamed, but lz4 will probably make things quicker.
    • _zoltan_5 hours ago
      what would you calculate in the data?<p>I could be tempted to do some fun on an NVL72 ;-)
  • phyzix576111 hours ago
    It’s easy to overlook how often straightforward approaches are the best fit when the data and problem are well understood. Large expensive tools can become problems in their own right creating complexity that then requires even more tooling to manage. (Maybe that&#x27;s the intent?) The issue is that teams and companies often adopt optimization frameworks earlier than necessary. Starting with simpler tools can get you most of the way there and in many cases they turn out to be all that’s needed.
  • fmajid13 hours ago
    I&#x27;ve contributed to PrestoDB, but the availability of DuckDB and fast multi core machines with even faster SSDs makes the need for distribution all the more niche, or even cargo-culting Google or Meta.
    • fifilura9 hours ago
      The benefit of prestodb is that it can be used without even starting one of these expensive instances in AWS Athena.
  • jeswin7 hours ago
    The same thing is true with Sqlite vs Postgres. Most startups need Sqlite, not Postgres. Many queries run an order of magnitude faster. Not only is it better for your users, it&#x27;s life changing to see the test suites (which would take minutes to run) complete in mere seconds
    • shimman5 hours ago
      Feels like quibbling over the differences between two databases that are going to act the same for 90% of projects out there doesn&#x27;t really matter.<p>If you want speed, just have your database stored in the same place as your application, locally, rather than hopping across the world to retrieve data that can be located next to the code.<p>That would probably be the easiest thing to do to get a real measured performance gains.<p>As other commentators pointed out, computers are extremely powerful. This isn&#x27;t 1995, you can easily host everything in the same local area and get a very responsive application with very minimal needs to worry about resource constraints.
    • Sesse__2 hours ago
      &gt; Many queries run an order of magnitude faster.<p>Given how primitive SQLite&#x27;s optimizer is and how similar the storage and execution engines between the two are in terms of architecture, this seems unlikely to be the norm unless you did something wrong on the Postgres side. (Of course, no RDBMS optimizer will always give the best answer, so there&#x27;s bound to be such cases.)
  • meken8 hours ago
    I’m curious about the memory usage of the cat | grep part of the pipeline. I think the author is processing many small files?<p>In which case it makes the analysis a bit less practical, since the main use case I have for fancy data processing tools is when I can’t load a whole big file into memory.
    • dapperdrake5 hours ago
      Memory footprint is tiny:<p>Unix shell pipelines are task-parallel. Every tool gets spun up as its own unix process — think &quot;program&quot; (fork-exec). Standard input and standard output (stdin, stdout) get hooked up to pipes. Pipes are like temporary files managed by the kernel (hand-wave). Pipe buffer size is a few KB. Grep does a blocking read on stdin. Cat writes to stdout. Both on a kernel I&#x2F;O boundary. Here the kernel can context-switch the process when waiting for I&#x2F;O.<p>In the past there was time-slicing. Now with multiple cores and hardware threads they actually run concurrently.<p>This is very similar to old-school approach to something like multiple threads, but processes don’t share virtual address spaces in the CPU&#x27;s memory management unit (MMU).<p>Further details: look up McIlroy&#x27;s pipeline design.
  • fifilura11 hours ago
    No joins in that article?<p>The comments here smell of &quot;real engineers use command line&quot;. But I am not sure they ever actually worked with analysing data more than using it as a log parser.<p>Yes Hadoop is 2014.<p>These days you obviously don&#x27;t set up a Hadoop cluster. You use the cloud provider service provided (BigQuery or AWS Athena for example).<p>Or map your data into DuckDB or use polars if it is small.
    • christophilus2 hours ago
      It depends. I’ve done plenty of data processing, including at large fortune 10s. Most of the big data could be shrunk to small data if you understood the use case— pre-aggregating, filtering to smaller datasets based on known analysis patterns, etc.<p>Now, you could argue that that’s cheating a bit and introduces preprocessing that is as complex as running Hadoop in the first place, but I think it depends.<p>In my experience, though, most companies really don’t have big data, and many that do don’t really need to.<p>Most companies aren’t fortune 500s.<p>I used to work at Elastic, and I noticed that most (not all!) of the customers who walked up to me at the conferences were there to ask about datasets that easily fit into memory on a cheap VPS.
    • ziml7710 hours ago
      &gt; But I am not sure they ever actually worked with analysing data more than using it as a log parser.<p>It really feels that way. Real data analysis involves a lot more than just grepping logs. And the reason to be wary of starting out unprepared for that kind of analysis is that migrating to a better solution later is a nightmare.
      • noo_u9 hours ago
        In many ways HN is Reddit in denial at this point :) Comments and upvotes that are based mostly on vibes, with depth and discussion usually happening somewhere towards the middle of the comment tree.
        • dapperdrake6 hours ago
          Where else would you JOIN in?
          • noo_u2 hours ago
            I&#x27;m about to start looking - this JOINt&#x27;s way past its prime
  • srcreigh8 hours ago
    MapReduce is from a world with slow HDDs, expensive ram, expensive enterprise class servers, fast network.<p>In that case to get best performance, you’d have to shard your data across a cluster and use mapreduce.<p>Even in the authors 2014 SSDs multi-core consumer PC world, their aggregate pipeline would be around 2x faster if the work was split across two equivalent machines.<p>The limit of how much faster distributed computing is comes down to latency more than throughput. I’d not be surprised if this aggregate query could run in 10ms on pre sharded data in a distributed cluster.
    • dapperdrake6 hours ago
      Confusing the concept and the implementation.
      • srcreigh3 hours ago
        Somebody has to go back to first principles. I wrote pig scripts in 2014 in Palo Alto. Yes, it was shit. IYKYK. But the author, and near everybody in this thread, are wrong to generalize.<p>PCIe would have to be millions of times faster than Ethernet before command line tools are actually faster than distributed computing and I don&#x27;t see that happening any time soon.
  • ejoebstl14 hours ago
    Great article. Hadoop (and other similar tools) are for datasets so huge they don&#x27;t fit on one machine.
    • vjerancrnjak14 hours ago
      <a href="https:&#x2F;&#x2F;www.scylladb.com&#x2F;2019&#x2F;12&#x2F;12&#x2F;how-scylla-scaled-to-one-billion-rows-a-second&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.scylladb.com&#x2F;2019&#x2F;12&#x2F;12&#x2F;how-scylla-scaled-to-one...</a><p>I like this one where they put a dataset on 80 machines only then for someone to put the same dataset on 1 Intel NUC and outperform in query time.<p><a href="https:&#x2F;&#x2F;altinity.com&#x2F;blog&#x2F;2020-1-1-clickhouse-cost-efficiency-in-action-analyzing-500-billion-rows-on-an-intel-nuc" rel="nofollow">https:&#x2F;&#x2F;altinity.com&#x2F;blog&#x2F;2020-1-1-clickhouse-cost-efficienc...</a><p>Datasets never become big enough…
      • saberience13 hours ago
        Well, at my old company we had some datasets in the 6-8 PB range, so tell me how we would run analytics on that dataset on an Intel NUC.<p>Just because you don&#x27;t have experience of these situations, it doesn&#x27;t mean they don&#x27;t exist. There&#x27;s a reason Hadoop and Spark became synonymous with &quot;big data.&quot;
        • dapperdrake11 hours ago
          These situations are <i>rare</i> not difficult.<p>The solutions are well known even to many non-programmers who actually have that problem:<p>There are also sensor arrays that write 100,000 data points per millisecond. But again, that is a hardware problem not a software problem.
      • literalAardvark14 hours ago
        Well yeah, but that&#x27;s a _very_ different engineering decision with different constraints, it&#x27;s not fully apples to apples.<p>Having materialised views increases insert load for every view, so if you want to slice your data in a way that wasn&#x27;t predicted, or that would have increased ingress load beyond what you&#x27;ve got to spare, say, find all devices with a specific model and year+month because there&#x27;s a dodgy lot, you&#x27;ll really wish you were on a DB that can actually run that query instead of only being able to return your _precalculated_ results.
      • DetroitThrow14 hours ago
        &gt;Datasets never become big enough…<p>Not only is this a contrived non-comparison, but the statement itself is readily disproven by the limitations basically _everyone_ using single instance ClickHouse often run into if they actually have a large dataset.<p>Spark and Hadoop have their place, maybe not in rinky dink startup land, but definitely in the world of petabyte and exabyte data processing.
        • zX41ZdbW11 hours ago
          When a single server is not enough, you deploy ClickHouse on a cluster, up to thousands of machines, e.g., <a href="https:&#x2F;&#x2F;clickhouse.com&#x2F;blog&#x2F;how-clickhouse-powers-ahrefs-the-worlds-most-active-web-crawler" rel="nofollow">https:&#x2F;&#x2F;clickhouse.com&#x2F;blog&#x2F;how-clickhouse-powers-ahrefs-the...</a>
    • PunchyHamster14 hours ago
      And we can have pretty fucking big single machines right now
      • dapperdrake11 hours ago
        <a href="https:&#x2F;&#x2F;yourdatafitsinram.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;yourdatafitsinram.net&#x2F;</a>
  • EdwardCoffin12 hours ago
    This makes me think of Bane&#x27;s rule, described in this comment here [1]:<p><i>Bane&#x27;s rule, you don&#x27;t understand a distributed computing problem until you can get it to fit on a single machine first.</i><p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8902739">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8902739</a>
  • rcarmo14 hours ago
    This has been a recurring theme for ages, with a few companies taking it to extremes—there are people transpiring COBOL to bash too…
  • killingtime7414 hours ago
    Hadoop, blast from the past
  • nasretdinov14 hours ago
    And now with things like DuckDB and clickhouse-local you won&#x27;t have to worry about data processing performance ever again. Just kidding, but especially with ClickHouse it&#x27;s so much better to handle the large data volume compared to the past, and even a single beefy server is often enough to satisfy all data analytics needs for a moderate-to-large company.
  • jgord3 hours ago
    highly recommend xsv by BurntSushi [ csv parser &#x2F; wrangler written in rust ]
  • jonathanhefner11 hours ago
    And since AI agents are extremely good at using them, command-line tools are also probably 235x more effective for your data science needs.
  • olq_plo6 hours ago
    And now you can do this with polars in parallel on all your cores and the GPU, using almost the same syntax as in pyspark.
  • jeffbee10 hours ago
    Something to note here is that the result of xargs -P is unlikely to be satisfactory, since all of the subprocesses are simply connected to the terminal and stomp over each other&#x27;s outputs. A better choice would be something like rush or, for the Perl fans, parallel.
  • cryptoboy228312 hours ago
    Earlier in 2010 - <a href="http:&#x2F;&#x2F;widgetsandshit.com&#x2F;teddziuba&#x2F;2010&#x2F;10&#x2F;taco-bell-programming.html" rel="nofollow">http:&#x2F;&#x2F;widgetsandshit.com&#x2F;teddziuba&#x2F;2010&#x2F;10&#x2F;taco-bell-progra...</a>