# Overcoming Database Challenges in Serverless and Edge Applications

DevFeed: [Overcoming Database Challenges in Serverless and Edge Applications](<https://devfeed.tech/articles/overcoming-database-challenges-in-serverless-and-edge-applications-47694.md>)

Original publisher: [Read original article](<https://www.prisma.io/blog/overcoming-challenges-in-serverless-and-edge-environments-TQtONA0RVxuW>)

Author: Jon Harrell

Published: 2023-05-25T00:00:00Z

Content type: tutorial

Language: en

Sources: [Prisma](<https://devfeed.tech/sources/prisma-blog.md>)

Topics: [Serverless](<https://devfeed.tech/topics/serverless.md>), [Database](<https://devfeed.tech/topics/database.md>), [Stateful](<https://devfeed.tech/topics/stateful.md>), [stateless](<https://devfeed.tech/topics/stateless.md>), [AWS Lambda](<https://devfeed.tech/topics/aws-lambda.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [database](<https://devfeed.tech/tags/database.md>), [handler](<https://devfeed.tech/tags/handler.md>), [performance](<https://devfeed.tech/tags/performance.md>), [pitfalls](<https://devfeed.tech/tags/pitfalls.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [stateful](<https://devfeed.tech/tags/stateful.md>), [stateless](<https://devfeed.tech/tags/stateless.md>)

## AI overview

This article explains the challenges of using persistent data stores and stateful behavior in serverless and edge deployments. It discusses ephemeral function instances, database connections, transactions, scaling, and long-running queries, with an AWS Lambda and Node.js example.

## Source excerpt

Learn best practices around deploying stateful apps in traditionally stateless environments.