Use with microservice #2942
-
|
I could easily wrap my head around the concept of Turso on the client, mobile or frontend. Having a harder time with backend. In the scenario you have a micro-service using Turso as its database, which are split by user. Will making a request to this service cause it download a replica? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hey @MigFerreira! You indeed need to have the SQLite database file in wherever you run your backend code. Turso has an sync package that allows you to fetch the database from the cloud, write locally, push to cloud. We will also in the future implement lazy pull, which allows you to fetch only parts of the database you actually need. |
Beta Was this translation helpful? Give feedback.
Hey @MigFerreira! You indeed need to have the SQLite database file in wherever you run your backend code. Turso has an sync package that allows you to fetch the database from the cloud, write locally, push to cloud. We will also in the future implement lazy pull, which allows you to fetch only parts of the database you actually need.