aws / chalice

Python Serverless Microframework for AWS
Apache License 2.0
10.61k stars 1.01k forks source link

Chalice slower than Zappa #1936

Closed rafagan closed 2 years ago

rafagan commented 2 years ago

I'm migrating some microsservices from Zappa to Chalice, but with the same code Chalice seems to be much slower than Zappa. There's some open issue or known problem related with Chalice performance?

jamesls commented 2 years ago

I'm not aware of any performance issues. Can you be more specific/give some examples?

rafagan commented 2 years ago

I've discovered that Chalice deploys lambda with 128MB memory size as default config, and Zappa deploys 512MB as default. Considering that Lambda fits CPU in a memory proportional manner, that's why I've noticed the performance issues. Setting the default memory to 512MB solved the problem.