Skip to content

AWS Lambda & sqlite #537

Closed Answered by lovasoa
JPapir asked this question in Q&A
Aug 14, 2024 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Hi!

Glad you like the latest changes! There is more to come ;)

While you can technically include a SQLite file in your Lambda zip folder, it's not the best fit for Lambda's environment. Lambda functions operate with ephemeral storage, meaning any data written to disk during execution is lost when the function ends. This makes it tricky to maintain a persistent SQLite database since the data would only persist during a single invocation of the function.

Instead, it’s generally better to use a managed database service, with a database system that supports remote connections, like Amazon RDS, or Aurora which offers persistent storage and better scalability. These services are designed to wor…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@lovasoa
Comment options

Comment options

You must be logged in to vote
1 reply
@JPapir
Comment options

Answer selected by JPapir
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants