Skip to content

Commit 14aa314

Browse files
committed
Update copy
1 parent 5efb5d3 commit 14aa314

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/content/pages/articles/what-you-need-to-know-about-sqlite.html.mdrb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,13 @@ Instead of scaling horizontally (adding more machines) as your application grows
104104

105105
### But SQLite can work with multiple hosts?
106106

107-
To say SQLite works _only_ on a single host is not entirely true. You could imagine a setup where SQLite files are replicated across a horizontally scaled cluster. And you don’t have to imagine it either. This capability exists in various products, including, but not limited to:
107+
To say SQLite works _only_ on a single host is not entirely true.
108+
109+
You could achieve horizontal scaling with sharding, meaning you would architect your application so that each horizontally scaled host get its own distinct SQLite database(s). Rails supports sharded database configuration. If your application logic maps well to independent databases, such as in [multi-tenancy](https://en.wikipedia.org/wiki/Multitenancy), this is a decent option to consider.
110+
111+
If not, there is another option.
112+
113+
You could imagine a setup where SQLite files are replicated across a horizontally scaled cluster. And you don’t have to imagine it either. This capability exists in various products, including, but not limited to:
108114

109115
- [Turso](https://turso.tech/) a distributed database based on libSQL, an open-source fork of SQLite
110116
- [rqlite](https://rqlite.io/) lightweight, user-friendly, distributed relational database built on SQLite

0 commit comments

Comments
 (0)