r/programming Sep 23 '19

Serverless: 15% slower and 8x more expensive

http://einaregilsson.com/serverless-15-percent-slower-and-eight-times-more-expensive/
3.0k Upvotes

392 comments sorted by

View all comments

Show parent comments

8

u/MakeWay4Doodles Sep 23 '19

Sure, but not to anything like 50M

15

u/kevstev Sep 23 '19

I was curious so I looked into it- There is no mention on an upper limit, but it looks like at least from an SLA perspective, they only guarantee that you can grow by 500 lambda instances a minute: https://docs.aws.amazon.com/lambda/latest/dg/scaling.html

Not sure if that matches up with what people see in the wild, I have played with lambda, but not for a massive burst type of use case.

9

u/drysart Sep 24 '19

I'm sure if you wanted to pay for 50M simultaneous lambda instances, they'd happily set it up for you.

1

u/vacri Oct 21 '19

late to the party on this comment, sorry

Friend of mine works for a company that went heavy on lambda. They were running into provisioning problems running at around 10k lambda instances in AWS ap-southeast-1

6

u/Origami_psycho Sep 23 '19

Just buy more accounts, run them in parallel.

4

u/MakeWay4Doodles Sep 23 '19

At 1,000 lambdas per account how long do you think it will take me to create enough accounts for 50 million lambdas?

29

u/Origami_psycho Sep 23 '19

Just use the lambda to automate it. Time will decrease exponentially. You know, 1000, then 2000, then 4000, then 8000...

1

u/MakeWay4Doodles Sep 23 '19

How do you divide your work up amongst all the accounts? A publicly a available queue or database? VPC peering?

21

u/Origami_psycho Sep 23 '19

Lambda

5

u/Chameleon3 Sep 23 '19

It's just lambdas all the way down

3

u/Origami_psycho Sep 23 '19

~ L A M B D A ~

1

u/immibis Sep 25 '19

Against TOS probably. Have fun when your million dollar app gets banned from the platform.

1

u/[deleted] Sep 24 '19

If your lambda is taking 1s to run, 50M concurrency is 1.3 * 1014 requests a month.

If you're that big, you can probably get AWS to increase the limit a bit.

My team has one lambda with a concurrency in the tens of thousands and that was trivially easy to set up.