Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
298 views
in Technique[技术] by (71.8m points)

amazon web services - Aurora Serverless with API Gateway and Lambda is timing out

I'm building a new project with totally serverless environment in AWS

I picked up API Gateway + Lambda + Aurora Serverless inside a VPC but Aurora cold start plus Lambda cold start is greater than API Gateway timeout of 29 secods

Is it possible to make any improvement to avoid such time out ? Anyone has experienced this already ?

question from:https://stackoverflow.com/questions/66050063/aurora-serverless-with-api-gateway-and-lambda-is-timing-out

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Aurora Serverless V2 can easily scale from few to thousands of transactions in less than a second.

If you are using Aurora Serverless V1, we can set a minimum ACU to 1 and Don't pause compute capacity after consecutive minutes of inactivity(there is some cost)

Lambda cold starts can be avoided with provisioned concurrency.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...