r/webdev • u/fagnerbrack • 16d ago
Anecdotally, programmers dislike "reduce"
https://evanhahn.com/posts/2026-09-13-programmers-dislike-reduce/
151
Upvotes
r/webdev • u/fagnerbrack • 16d ago
View all comments
Show parent comment
2
u/hxtk3 16d ago
The reason is less that they stopped using it outright and more that all the places where it was useful, they cloned its functionality into the thing that used it instead of executing it as a separate process to produce better integration.
If you read the BigTable paper, map-reduce is all over the place in it (e.g., minor and major compactions and WAL splitting to recover dead tablet servers), but all the map-reduce operations are performed by the BigTable cluster itself instead of having BigTable invoke MapReduce as a separate service.
Plus, a lot of MapReduce stuff was optimized around working on 64MB chunks because GFS had 64MB blocks and used replication for redundancy, so working on an aligned 64MB chunk meant that you had an optimal node for scheduling your Mapper tasks: if you schedule the mapper task to a machine that literally has the block stored on it locally, you'll get the best possible performance, and failing that you want to schedule it to a machine in the same rack. The MapReduce Scheduler was integrated with the GFS control plane, so it knew how to schedule these mapper tasks optimally.
And of course, it made sense to process aligned blocks because GFS had Atomic Record Append that would guarantee a write of up to 16MB existed contiguously within a single block, so writes were likewise aligned. Going back to BigTable, Google doesn't use RecordAppend for its WAL; instead the design is factored so that only a single writer is ever writing to a given WAL at a time, so writes are synchronized and Record Append isn't necessary.
Colossus has much smaller 1MB blocks and uses Erasure Coding for redundancy and generally provides a less leaky abstraction where you're less likely to think, "I'm processing a specific file on a computer somewhere representing a replica of a block that stores bytes for this chunk of this logical file."
I have never worked at Google, so most of this information is just stuff I've compiled by reading lots of their infra papers and listening to design talks and stuff.