by suis_siva · 2w ago · 0 comments
I totally agree, generally, however, the constraints of software evolve all the time.
Atuin started off as a simple .bash_history replacement, and sync was ultimately relatively simple. We have a WAL-style strategy for sync that sees sync as an AP distributed problem (which is effectively what multi-machine concurrent sync is).
This was implemented originally and alone was very challenging. The implementation made a single RPC to the sync server, then grew into effectively single-threaded batches record uploads.
As you might note from the post, you'll note that the biggest performance improvement weren't packfiles alone, but pipelining. Packfiles make storage cheaper, but the latency reduction came from splitting the endecode part of the pipeline from the actual HTTPS requests.
As you can imagine, pipelineing brings its own array of difficulties and challenges.
Atuin originally solved for correct sync, then it evolved into batched sync, and now it evolved into pipelined sync. Finally, it evolved into sync with packfiles. All of these were solving actual problems people had, and not so much a one-shot attempt at perfection.
Had we strived for sync latency perfection from day-one, we probably wouldn't have E2E encryption. We optimize for the use-case we see in the field, and not for an initial use-case we believe we might see in the future.
Generally software evolves. I'm not even sure whether this is the last architectural performance step---I suspect there are more architectural things we can do to get more performance still, but without a need for that, it's hard to justify spending engineering effort for something nobody needs.
Look at UNIX, as an example. I'd say that's a relatively successful piece of software, but the moment you interact with anything UNIX you end up in ioctl hell, because that's kind of what it evolved into. That's what the users' use-cases evolved into.
It's not perfect, but it solves the problem people have and that's what we aim for!
No comments yet.