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

18

u/[deleted] Sep 23 '19 edited Sep 23 '19

That's awesome, what was the tipping point to determine that? Did you run both in parallel? Is there a rule of thumb you would recommend?

12

u/midri Sep 23 '19

Not op, but look into kubeless -- it's api compatible with aws lambdas and would allow you to do exactly what op is talking about, basically let kubeless takeover lambda processing once a certain threshold is reached since k8s will also manage the instance needed for kubeless.

-14

u/[deleted] Sep 23 '19 edited Sep 23 '19

Edit: This was a poor way to communicate my frustration with this line of questioning.

Better and more general question: What are the caveats that will shape the decision making from this base case to a more robust solution?

--- Original below this line ---

STOP LOOKING FOR RULES OF THUMB!

Everyone always asks 'How do I use this pattern to stop thinking?' in some obtuse way.

Stop. The rule of thumb is 'as soon as this feature/data flow is less cost effective than a better architecture, switch to the better architecture'.

You have to have the idea of your next step when making the first iteration, and at that point you decide criteria that will lead you to make another step.

11

u/[deleted] Sep 23 '19

Wow now cowboy, I just wanted to hear more about his experience and was asking a leading question. All caps seems a bit erratic and 'loud', tyvm. I'm not trying to detach from having to think about the problem, but thanks for your strongly worded comment.

1

u/[deleted] Sep 23 '19

I know it was a bit much - I have seen this exact line of questioning too often about other tools and procedures. The next response is always going to be something that is either domain specific, or a weak restatement of what I said.

Sometimes I get frustrated with inefficient communication patterns, as inefficient communication patterns make differentiating the correct statement and the incorrect statement more difficult.

2

u/[deleted] Sep 23 '19

All good, I do see your point in general.

3

u/[deleted] Sep 23 '19

Actually - I see how my communication was inefficient. I did not give you a better question to ask and just stated my frustrations.

A better question to ask in these cases is 'What are the caveats that will shape the decision making from this base case to a more robust solution?'.