Viewing profile — benbjohnson
benbjohnson
HN member- Joined
- Thu, May 13, 2010, 4:25 PM UTC
- HN karma
- 2,463
- Public activity
- 401 items
- HN profile
- View on Hacker News ↗
About benbjohnson
Recent public activity
-
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…
-
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:/…
-
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…
-
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…
-
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.…
-
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…
-
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…
-
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…
-
comment
Comment #46236309
It worked great! Thanks for your work on it.
-
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.
-
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....
-
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…
-
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.
-
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…
-
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
-
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)
-
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…
-
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…
-
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.
-
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…
-
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 …
-
comment
Comment #41192927
IIRC he was given shares in the company. https://news.ycombinator.com/item?id=39629939
-
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 …
-
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-...
- comment