5 ms·
It's a nice number to advertise, but AWS really should make all CloudFormation deployments much faster. There's no reason why updating the code of a single Lamb
by kennu 3y ago
It's a nice number to advertise, but AWS really should make all CloudFormation deployments much faster. There's no reason why updating the code of a single Lambda function should take 30s or even several minutes. It should happen in less than a second, the time it actually takes to call the Lambda API. In general it is way too slow to update a big CloudFormation project comprising many stacks, when only a small portion of the resources are actually changed. This slows down development of CDK based projects for no good reason.
- iainmerrick 3y agoYes, if you use Cloudflare or Vercel or Netlify it does take just a few seconds to update. AWS Lambda updates are mystifyingly slow, and CloudFormation seems to add a ton of overhead regardless how complex or simple your setup is. (I guess this "40% faster!" means they reduced the overhead a bit?)
- zapnuk 3y agoYou can also update a AWS Lambda in a few seconds if you use the aws sdk. Or in a few more seconds if you use pulumi or terraform. It's a problem entirely related to how CloudFormation works in detecting changes.
- iainmerrick 3y agoHuh, that’s good to know! Besides CF, I’ve done it directly in the web console and that still seemed pretty slow (though that would have been a while ago, maybe it has improved).
- benterix 3y agoYeah I remember when I ran a CDK pipeline in my previous job I could go on a bike, ride through a nearby forest, grab a coffee on the way, come back home, take a shower and it would still run...
- joshstrange 3y ago> There's no reason why updating the code of a single Lambda function should take 30s or even several minutes. Agreed. Sometimes I edit a core library of mine so nearly all my lambdas need to get update but I hate having a 10-20min deploy time. Some of that is GitHub Actions (their CI is so slow, I'm looking to switch) but CF itself is slow.
- suryao 3y agoWeird self promo but we[1] provide Github actions runners that are much faster than stock. You can get started with just a one-line change to your workflow file. It may help. [1] https://www.warpbuild.com https://www.warpbuild.com
- joshstrange 3y agoI signed up yesterday but you don't support personal accounts yet. I look forward to those being supported! You are who I'm planning to use (since I need macOS as well).
- suryao 3y agoOh wow - thanks for the sign up. We are not intending to support personal accounts anytime soon btw because of spam and credit reasons :(
- joshstrange 3y agoOh, that’s unfortunate. The docs made it sound like support was coming soon. I’ll have to investigate what the effects are of moving my projects off my personal account and into an organization. Long term that was always the plan but as a single-founder LLC I had no reason to use anything but my GH account I already paid for.
- crohr 3y agoIf you’d like to try something else, RunsOn supports any type of account (https://runs-on.com https://runs-on.com). No MacOS though.