Re:Building a highly-available web service without a database
by lifeisstillgood on Saturday August 10, 2024 @07:32AM
(#41208767)
Thank you - so my takeaway is that rqlite is well suited for distributed “publishing” of data ala etcd, but it is possible to use it as a Postgres replacement - thank you I will give it a go
If you need to ensure that a given API request (which can contain multiple SQL statements) is atomically processed (all SQL statements succeed or none do) that is supported however [1]. That's why I think of rqlite as closer to the kind of use cases that etcd and Consul support, rather than something like Postgres -- though some people have replaced their use of Postgres with rqlite! [2]
[1] https://rqlite.io/docs/api/api/#transactions
[2] https://www.replicated.com/blog/app-manager-with-rqlite