SQLite the only database you will ever need in most cases (2021)
1–10 of 378 posts
Re: SQLite the only database you will ever need in most cases (2021)
#2Re: SQLite the only database you will ever need in most cases (2021)
#3Is this with nodejs or something single threaded as the webserver?
I would kind of assume you'd run into issues with something like PHP.
Re: SQLite the only database you will ever need in most cases (2021)
#4> I have run SQLite as a web application database with thousands concurrent writes every second, coming from different HTTP requests, without any delays or issues. Is this with nodejs or something single threaded as the webserver? I would kind of assume you'd run into issues with something like PHP.
Re: SQLite the only database you will ever need in most cases (2021)
#5> I have run SQLite as a web application database with thousands concurrent writes every second, coming from different HTTP requests, without any delays or issues. Is this with nodejs or something single threaded as the webserver? I would kind of assume you'd run into issues with something like PHP.
Re: SQLite the only database you will ever need in most cases (2021)
#6> I have run SQLite as a web application database with thousands concurrent writes every second, coming from different HTTP requests, without any delays or issues. Is this with nodejs or something single threaded as the webserver? I would kind of assume you'd run into issues with something like PHP.
Why do you believe that PHP would cause issues that Nodejs would not?
Re: SQLite the only database you will ever need in most cases (2021)
#7I love sqlite but can't hold myself from saying: another day, another sqlite post on HN :-)
Re: SQLite the only database you will ever need in most cases (2021)
#8Re: SQLite the only database you will ever need in most cases (2021)
#9Earlier quoted context omitted.
Why do you believe that PHP would cause issues that Nodejs would not?
PHP is usually run multi-process, so may have more parallel activity than a single Node instance running single threaded
Node.js uses non-blocking IO to achieve massive amounts of concurrency on a single thread, while one-thread-per-request models such as PHP rely on OS threading to do the exact same thing.
If anything, the node.js model is often capable of more concurrency because of the inefficiencies involved in OS threading and context switching.
EDIT: of course, event driven PHP exist. I don't know much about the current state of it.
Re: SQLite the only database you will ever need in most cases (2021)
#10This caveat covers "most cases". If there's only a single machine, then any data stored is not durable.
Additionally, to my knowledge SQLite doesn't have a solution for durability other than asynchronous replication. Arguably, most applications can tolerate this, but I'd rather just use MySQL with semi-sync replication, and not have to think through all of the edge cases about data loss.