Hacker News new | ask | show | jobs
by erikerikson 1970 days ago
One problem with monolithic functions is that you must grant them a union of all the rights required by every code branch in the monolith.

Obviously this can expand the blast radius of any vulnerability and tends to encourage rougher grained privilege grants.

1 comments

This is getting out of hand. Are there "monolithic" and "micro" functions now?
That made me chuckle. But to be fair, in this case "monolithic" function is just a way to describe this pattern of moving your entire app (express in this case), inside a Lambda function. When Lambda started to become popular, this was the most common way to migrate to it. Just move your monolithic app to a function, hence "monolithic" functions.
Exactly, this is as opposed to processing the narrowly defined event with a minimally purposed function with least privilege.
"microlithic" a micro service which bundles multiple responsibilites.
That's brilliant!