• 0 Posts
  • 144 Comments
Joined 3 years ago
cake
Cake day: June 28th, 2023

help-circle


  • I think if you know cron from the start it can be easier, but it gets really annoying really fast.

    Compare:

    0 0 * * * /usr/bin/flock -n /tmp/myjob.lock bash -c 'sleep $((RANDOM % 3600)) && /usr/local/bin/myjob.sh'
    

    To:

    [Timer]
    OnCalendar=daily
    RandomizedDelaySec=1h
    

    That and things like systemd preventing overlapped delays, handing what to do if the system was down during the last cycle, built in logging and event tracking. Seeing successful vs non successful runs etc.

    Once you add in those production requirements cron gets annoying fast and timers are easy.


  • The main functional difference between systemd and others is that systemd will just work. Others will require you hand tune and hand tinker with a non-mainstream Linux distro.

    If your hobby is init systems by all means mess around though.

    I personally quite like systemd. Unit files are clean, timers services and sockets are easy to manage etc.

    Honestly it’s a non-problem. Best advice is to use what is best supported. Don’t let the extremely fringe (but loud) tiny group of systemd haters throw you off.










  • It’s all about friction. As long as the user has to pick an instance they will always hesitate to pick any federated service. The average user will always choose the path of least resistance.

    Proprietary services spend a lot of time trying to reduce friction, and it works.

    The only solution I can think of would be a three part one:

    1. The main app of a federated service automatically rotates between a pool or reliable, reputable, non-extremist instances where the user can log in with an email and password.
    2. The federated service makes it trivial to migrate accounts amongst instances.
    3. the user can log into their instance threw any other instance perhaps threw oauth.

    This would of course require some federated account login system. Hard but not impossible. It could be some sort of Casandra style ring based account service where nodes are part of the ring.

    This eliminates the new user friction.

    1. Download app
    2. Sign up
    3. Login

    It works anywhere any time with corpo style low friction. You don’t need to think about instances at all till you are ready to.