atomicxt

By AdamJacobMuller

Atomicxt Alternatives

Similar projects and alternatives to atomicxt

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better atomicxt alternative or higher similarity.

atomicxt reviews and mentions

Posts with mentions or reviews of atomicxt. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-15.
  • Moreutils: A collection of Unix tools that nobody thought to write long ago
    10 projects | news.ycombinator.com | 15 Apr 2022
    mv can't, or, more correctly the rename system call can not.

    rename is an atomic operation from any modern filesystem's perspective, you're not writing new data, you're simply changing the name of the existing file, it either succeeds or fails.

    Keep in mind that if you're doing this, mv (the command line tool) as opposed to the `rename` system call, falls back to copying if the source and destination files are on different filesystems since you can not really mv a file across filesystems!

    In order to have truly atomic writes you need to:

    open a new file on the same filesystem as your destination file

    write contents

    call fsync

    call rename

    call sync (if you care about the file rename itself never being reverted).

    This is some very naive golang code (from when I barely new golang) for doing this which has been running in production since I wrote it without a single issue: https://github.com/AdamJacobMuller/atomicxt/blob/master/file...

Stats

Basic atomicxt repo stats
1
0
10.0
almost 7 years ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com