Hacker News new | ask | show | jobs
by cowlevel 16 days ago
> We sync many thousands of records in single-digit seconds.

Is that meant to be impressive performance? I'd never heard of Atuin but apparent it syncs your shell history between machines using a Blockchain?

3 comments

No blockchain there, it's a centralized sync server (you can deploy your own [and you can leave 'sync' disabled too):

https://deepwiki.com/atuinsh/atuin/3.3-synchronization-syste...

https://docs.atuin.sh/main/reference/sync/

Indeed, it seems that a good old fashioned .histfile synced via any VCS would perform better?
Atuin maintaner here!

It definitely would, but the real challenge is twofold:

- Atuin does real-time sync, meaning that anything you do locally gets reflected near-instantly on any other machine you have. - Atuin does end-to-end encryption, which means that we actually need to do an absurdly larger amount of work compared to an rsynced histfile in order to get your history in a format that's locally decrypted.

Certainly, these things are possible with a VCS, but I suspect that meeting these two criteria with an rsynced encrypted file would land on more-or-less the same performance order-of-magnitude!

Yeah, it's surprising that the numbers are this low, at the end of the day, but sync for Atuin unfortunately isn't equivalent to rsync.

We actually need to decrypt data that comes from the sync server, since everything is end-to-end encrypted and that's actually where the majority of CPU time is spent!

As another commenter mentioned, the data is not distributed, but lives on a central server (which either you host our you use our official one).