File processing much slower on SpringBoot app deployed via AppRunner compared to EC2

0

We are currently experiencing performance issues within our SpringBoot application which is deployed as a docker image via AppRunner. Code under test uses Java library which does Zxing QR scan under the hood. Running the code locally, in unit in integrations tests, processing is fast as expected, somewhere between 500ms and 2s depending on the file. Dockerizing the application and deploying it, we can notice extreme numbers for processing in CloudWatch logs, somewhere between 5s and 160s for the same set of files. Tweaking AppRunner core and memory configuration didn't change a thing. After running out of troubleshooting ideas for code refactoring, we tried to deploy application on medium EC2 instance. Numbers started to make sense, processing being in range between 500ms to 4s. Any ideas what could be the reason? Are we missing some configuration for AppRunner?

  • Some more context on this. QR code analysis is performed after SQS message is received... Not sure whether this is limitation of AppRunner, not being able to work efficiently with asynchronous messages and multithreading...

comibro
asked a month ago119 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions