Are you using Node.js or Java for your Lambda function?<p>If you are using &quot;Node.js&quot;, you may be seeing slow times if you are not calling &quot;context.done&quot; in the correct place, or if you have code paths that don&#x27;t call it.<p>Not calling context.done could either cause Node.js to exit, either because the node event loop is empty, or because the code times out, and Lambda kills it.<p>When node exits, the container shuts down, which means Lambda can&#x27;t re-use the container for the next invoke and needs to create a new one. The &quot;cold-start&quot; path is much slower than the &quot;warm-start&quot; path. When Lambda is able to re-use containers, invokes will be much faster than when it can&#x27;t.<p>Also, how are you initializing your connection to DDB? Is it happening inside your Lambda function? If you either move it to the module initializer (for Node), or to a static constructor (for Java), you may also see speed improvements.<p>If you initiate a connection to DDB inside the Lambda function, that code will run on every invoke. However, if you create it outside the Lambda function (again in the Module initializer or in a static constructor) then that code will only run once, when the container is spun up. Subsequent invokes that use the same container will be able to re-use the HTTP connection to DDB, which will improve invoke times.<p>Also, you may want to consider increasing the amount of RAM allocated to your Lambda function. The &quot;memory size&quot; option is badly named, and it controls more than just the maximum ram you are allowed to use. It also controls the proportion of CPU that your container is allowed to use. Increasing the memory size will result in a corresponding (linear) increase in CPU power.<p>One final thing to keep in mind when scaling a Lambda function is that Lambda mainly throttles on the number of concurrent requests, not on the transactions per second (TPS). By default Lambda will allow up to 100 concurrent requests.<p>If you want a maximum limit greater than that you do have to call us, but we can set the limit fairly high for you.<p>The scaling is still dynamic, even if we have to raise your upper limit. Lambda will spin up and spin down servers for you, as you invoke, depending on actual traffic.<p>The default limit of 100 is mainly meant as safety limit. For example, unbounded recursion is a mistake we see frequently. Having default throttles in place is good protection, both for us and for you. We generally want to make sure that you really want to use a large number of servers before we go ahead and allocate them to you.<p>For example, a lot of folks use Lambda with S3 for generating thumbnail images, sometimes in several different sizes. A common mistake some folks make when implementing this for the first time is to write back to the same s3 bucket they are triggering off of, without filtering the generated files from the trigger. The end result is an exponential explosion of Lambda requests. Having a safety limit in place helps with that.<p>In any case, if you are having trouble getting Lambda to scale, I&#x27;m happy to try and help.