Skip to content

advice for connection handling in aws lambda #73

Discussion options

You must be logged in to vote

Hi @chifi49,

a. Yes that is safe and the recommended way. PlanetScale can handle 10's of thousands of connections. You don't need to worry about hitting a connection limit.

b. They are valid for 7 days. Caching for 1 day would work great. Also, we're working on another method of connection which won't require the API call. Will be available soon.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mscoutermarsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants