Live data from Hacker News

Distributed SQLite: Paradigm shift or hype?

kerkour.com

11–20 of 165 posts

Re: Distributed SQLite: Paradigm shift or hype?

#11
post #8

I think this skips one mega benefit for apps. I’ve been using liteFS in production for a couple months. Your web app is able to resolve db queries instantly. You don’t need loading states if you’re using complex charts and other frontend JS that waits for data. All the data is resolved so fast and you can just return all your data like more traditional apps, and the load times are insane. If you’re multi region you c…

How is it for writes? Would a CRM type system benefit from liteFS setup?

Re: Distributed SQLite: Paradigm shift or hype?

#12
post #8

I think this skips one mega benefit for apps. I’ve been using liteFS in production for a couple months. Your web app is able to resolve db queries instantly. You don’t need loading states if you’re using complex charts and other frontend JS that waits for data. All the data is resolved so fast and you can just return all your data like more traditional apps, and the load times are insane. If you’re multi region you c…

I think you always need loading states to account for slow network, or am I missing something?

Re: Distributed SQLite: Paradigm shift or hype?

#13
What portion of writes typically have to go to the primary server? If users are local then their data maybe is often local as well. In other words not all writes need to first go the central server from where they are distributed back to all edge-databases.

I can see that the organization running the application needs a global view of all data. But regional users perhaps don't. Often they just need to know their own data.

Write first to edge then copy to central database rather than write first to central database then trickle down to the site from where the write originated in. Just wondering what portion of applications could use this alternative design.

Re: Distributed SQLite: Paradigm shift or hype?

#14
post #8

I think this skips one mega benefit for apps. I’ve been using liteFS in production for a couple months. Your web app is able to resolve db queries instantly. You don’t need loading states if you’re using complex charts and other frontend JS that waits for data. All the data is resolved so fast and you can just return all your data like more traditional apps, and the load times are insane. If you’re multi region you c…

I think you always need loading states to account for slow network, or am I missing something?

The SQLite database is located on the application server, so there is no network between the DB and the app.

Re: Distributed SQLite: Paradigm shift or hype?

#15

Earlier quoted context omitted.

I think you always need loading states to account for slow network, or am I missing something?

The SQLite database is located on the application server, so there is no network between the DB and the app.

Assuming you're serving a frontend that makes network calls to a backend, you'll need to handle loading states in the frontend regardless of how the backend retrieves its data.

Re: Distributed SQLite: Paradigm shift or hype?

#16

Earlier quoted context omitted.

The SQLite database is located on the application server, so there is no network between the DB and the app.

Assuming you're serving a frontend that makes network calls to a backend, you'll need to handle loading states in the frontend regardless of how the backend retrieves its data.

The idea is that you're not doing that.

Re: Distributed SQLite: Paradigm shift or hype?

#17
post #11
post #8

I think this skips one mega benefit for apps. I’ve been using liteFS in production for a couple months. Your web app is able to resolve db queries instantly. You don’t need loading states if you’re using complex charts and other frontend JS that waits for data. All the data is resolved so fast and you can just return all your data like more traditional apps, and the load times are insane. If you’re multi region you c…

How is it for writes? Would a CRM type system benefit from liteFS setup?

In Fly's implementation;

> LiteFS’ use of FUSE limits the write throughput to about 100 transactions per second so write-heavy applications may not be a good fit.

https://fly.io/docs/litefs/faq/#what-are-the-tradeoffs-of-us...

Re: Distributed SQLite: Paradigm shift or hype?

#18
post #16

Earlier quoted context omitted.

Assuming you're serving a frontend that makes network calls to a backend, you'll need to handle loading states in the frontend regardless of how the backend retrieves its data.

The idea is that you're not doing that.

Unless your database is in the browser, you are always going to be at mercy of network latencies talking to the backend.

Re: Distributed SQLite: Paradigm shift or hype?

#19
post #16

Earlier quoted context omitted.

The idea is that you're not doing that.

Unless your database is in the browser, you are always going to be at mercy of network latencies talking to the backend.

You're just saying, even if all you were doing was fetching a static JSON blob from the memory of the frontend server, you'd still want load states, right? (That makes sense, I'm just checking my understanding.)

Re: Distributed SQLite: Paradigm shift or hype?

#20
post #11
post #8

I think this skips one mega benefit for apps. I’ve been using liteFS in production for a couple months. Your web app is able to resolve db queries instantly. You don’t need loading states if you’re using complex charts and other frontend JS that waits for data. All the data is resolved so fast and you can just return all your data like more traditional apps, and the load times are insane. If you’re multi region you c…

How is it for writes? Would a CRM type system benefit from liteFS setup?

The article says "LiteFS supports roughly 100 writes per second".
Post reply on HN