Live data from Hacker News

Viewing profile — benbjohnson

benbjohnson

HN member
Joined
Thu, May 13, 2010, 4:25 PM UTC
HN karma
2,463
Public activity
401 items

About benbjohnson

Ben Johnson Denver, CO GitHub: http://github.com/benbjohnson Twitter: benbjohnson

Recent public activity

  1. comment
    Comment #46893581

    If you can have multiple writers to a single database then you'd need to look at something like cr-sqlite[1] that uses CRDT to figure out conflicts. If you're just replicating sepa…

  2. comment
    Comment #46893558

    Litestream author here. You can use the built-in file replication. It'll replicate all your database changes to another path on disk. I use it a lot for testing things out: https:/…

  3. comment
    Comment #46893539

    Litestream author here. Currently we're handling the "single writer" issue outside of Litestream. We have controls in our internal systems that make it work well. But yes, the leas…

  4. comment
    Comment #46238251

    Author here. It will cache pages in memory right now but it doesn't do disk-based caching currently. That's a good idea though and probably not too difficult to implement. Feel fre…

  5. comment
    Comment #46237275

    The VFS is read only but it will continuously poll for new updates so if you have a writer somewhere else using regular Litestream then it will pick up those updates automatically.…

  6. comment
    Comment #46236402

    Author here. You can query the state of a table from an hour ago with Litestream VFS. It won't give you versioned tables in the sense that every time you update a row that it write…

  7. comment
    Comment #46236349

    Author here. We've done some proof-of-concept work on creating distributed leases using S3. We have some use cases internally where we've considered adding write capabilities to th…

  8. comment
    Comment #46236329

    Author here. Litestream VFS will automatically poll for new back up data every second so it keeps itself up to date with any changes made by the original database. You don't need a…

  9. comment
    Comment #46236309

    It worked great! Thanks for your work on it.

  10. comment
    Comment #46235409

    Author here. The VFS support right now is currently read only so it's useful for something more like a shared cache of data.

  11. comment
    Comment #46235393

    Author here. Yes, Litestream v0.5.3 has been released with a new read-only VFS option: https://github.com/benbjohnson/litestream/releases/tag/v0.5....

  12. comment
    Comment #45582791

    Litestream author here. Yes, that's correct. LTX was the biggest hurdle to get over and was impossible to switch over incrementally. The storage layer change brings a lot of benefi…

  13. comment
    Comment #44137690

    The changes are still in progress. The blog post was just about future work that we're working on. However, we don't have plans to do failover with Litestream at the moment.

  14. comment
    Comment #44046420

    Litestream saves WAL segments to a given time granularity. By default, it ships off WAL changes every second so you should be able to restore to any given second in your history (w…

  15. comment
    Comment #44046405

    Backups & read replicas are the primary use cases. If you're interested in local-first, you can check out projects like cr-sqlite[1]. [1]: https://github.com/vlcn-io/cr-sqlite

  16. comment
    Comment #44046398

    We don't support plug-ins at the moment but there's several backends at the moment (S3, Azure Blob Storage, Google Cloud Storage, SFTP, etc)

  17. comment
    Comment #43861043

    Not all corruption is detectable. You could make a copy during a transaction where only a subset of the transactions saved pages are persisted but all branch & leaf pages are point…

  18. comment
    Comment #41675392

    I haven't read that paper but it seems like it's fixing a different problem of Byzantine fault tolerance. Most consensus systems that are internal for an organization don't have th…

  19. comment
    Comment #41675374

    Thanks so much for letting me know! It's always hard to tell when I put something out there if it just gets lost in the ether. I'm glad to hear it helped so many folks.

  20. comment
    Comment #41675366

    It's all done with d3 and JavaScript. The visualizations aren't deterministic so I ended up writing a shitty Raft implementation in JS. Overall it was a terrible approach because i…

  21. comment
    Comment #41671536

    Author here. I'm happy to answer any questions although this project was from 10+ years ago so I could be a little rusty. Over the years I've been trying to find better ways to do …

  22. comment
    Comment #41192927

    IIRC he was given shares in the company. https://news.ycombinator.com/item?id=39629939

  23. comment
    Comment #39976236

    LiteFS author here. I don't disagree with any points in the article but perhaps a reframing could help. I previously wrote a tool called Litestream that would do disaster recovery …

  24. comment
    Comment #39364344

    We have an region-aware S3 replacement that's in beta right now: https://community.fly.io/t/global-caching-object-storage-on-...

  25. comment