Live data from Hacker News

Starbase: SQLite on the Edge

starbasedb.com

31–40 of 49 posts

Re: Starbase: SQLite on the Edge

#31
post #14

What is the difference between this and Cloudflare’s first party D1 database offering? https://developers.cloudflare.com/d1/ D1 is SQLite

It's actually sitting on top of Cloudflare's new SQLite storage in Durable Objects. You can learn more here:

https://blog.cloudflare.com/sqlite-in-durable-objects/

There's actually a section called: What about D1?

Re: Starbase: SQLite on the Edge

#32
post #6

ELI5: Does "Open source, scale-to-zero, HTTP SQLite database built on top of Cloudflare Durable Objects" mean that you should pay and/or use Cloudflare for this? Or CDOs are generally available outside Cloudflare?

So right now you will have to pay and use Cloudflare for this, there's no other way around it today.

Re: Starbase: SQLite on the Edge

#33
post #27

I find the website design to be quite charming. Actually evokes some of the Outer World game vibes.

I found it to be hilariously uninformative. I have this old school expectation that I should be able to understand what your website/product/project is about but reading the first few sentences in the "above the fold" section of your homepage. I don't want to play a game or click below the fold "read more" links to try and find out what this web content has to do with the domain name "starbasedb". Perhaps they actual…

Appreciate the candidness to your response here. Honestly we put this brand and website together in two days and we wanted to have some fun with it. That said there is a lot more we can do to make the website more informative, and we'll be sure to improve it as we go. Expect more blog posts, tutorials and implementation guides this week.

Re: Starbase: SQLite on the Edge

#35
post #29

From what I could understand of their architecture [1], you may lose data when the machine running DO fails. DO implements a very comprehensive strategy to mitigate data loss in DO backed by SQLite. But Starbase seems to add a layer of query caching on the application level, which seems to be naively implemented (I might be misunderstanding, please correct if I'm wrong). [1] https://starbasedb.com/blog/developing-aci…

We don't cache query responses in the Starbase application layer. When we originally set out to build this, we were under the assumption we had to handle the ACID transactional support ourselves. Thankfully someone from Cloudflare shed some light for us as you can see in our Github issues and open PR's :) Learn more about that here: https://github.com/Brayden/starbasedb/issues/12

Just fyi, the person that replied wasn't just "someone" at Cloudflare. It was Kenton Varda (kentonv here). He's the creator of Cloudflare workers, he's an incredible engineer.

Re: Starbase: SQLite on the Edge

#36

Earlier quoted context omitted.

We don't cache query responses in the Starbase application layer. When we originally set out to build this, we were under the assumption we had to handle the ACID transactional support ourselves. Thankfully someone from Cloudflare shed some light for us as you can see in our Github issues and open PR's :) Learn more about that here: https://github.com/Brayden/starbasedb/issues/12

Just fyi, the person that replied wasn't just "someone" at Cloudflare. It was Kenton Varda (kentonv here). He's the creator of Cloudflare workers, he's an incredible engineer.

Yes, of course! Sorry didn't mean to make it seem insignificant – was quite excited to see him show up there from a personal fanboy perspective.

Re: Starbase: SQLite on the Edge

#37

Does stuff like this still have database-level locking? If so, how does that scale at all?

No, there's no traditional database-level locking here. The Durable Object itself is single-threaded, so you don't have to worry about multiple things trying to change the same data at the same time.

As far as scaling yeah there are still some challenges there. I mentioned in another response there's a limit of 1K RPS, and the single-threadedness could become a bottle-neck. I think there are probably clever workarounds here that we still want to explore, for instance each Durable Object could handle a seperate piece of state and you would effectively have a level of state-based sharding.

Re: Starbase: SQLite on the Edge

#38
Really glad Kenton chimed in there, as it wasn't clear in the docs and I was about to implement a similar pseudo transaction pattern as this.

Pretty excited about this tech, it really flips the script on the concept of a DB per user / sharding approach which used to be costly at the schema/physical db level.

Re: Starbase: SQLite on the Edge

#39
post #18

I don't really understand what this is offering beyond Cloudflare's recent release of running SQLite in durable objects: https://blog.cloudflare.com/sqlite-in-durable-objects/ . Is it about providing an external interface to Cloudflare's SQLite databases?

Some day I really need to learn when to use sqlite in a durable object vs the eventually consistent one (r2).

iirc they are both powered by the same engine to stream and replicate the WAL. I believe R2 is now implemented as a Durable Object backed by SQLite now.

Re: Starbase: SQLite on the Edge

#40
May I just say; hell yeah on the brand identity! - finally someone has the guts to actually have an identity instead og pastel based standard b2b shit.

Last time I saw that was zendesk with their Buddha's and weird tonal audio devices.

Edited for corrected semi-colon because I'm haunted by a grammar-nazi.

Post reply on HN