Search code examples
.netdockeraws-lambdalucenelucene.net

AWS Lambda serverless app (docker) markedly slower than local docker


I am hosting a serverless docker app in AWS Lambda this is a .net 8 (however 6 and 7 and even beanstalk behaved the same). The app is .net lucene (4.8 which is in beta) search (index is quite small 140MB and is bundled with the app - this runs perfectly fine locally (in docker) and in Azure Functions app - in 2 digits ms response time. However once this is deployed in AWS this could be in mid 3digits ms response times. I'm quite new to docker - what could I try to get down to 2digit ms response time in AWS


Solution

  • Suggestion by @stdunbar was indeed helpful. Once I mounted an EFS volume to the container the performance returned to what I was expecting.