4 ms·
> cons of serverless: > Turns all your code into spagetti, this is probably the biggest one. Overall agree with you, but I don't think spaghetti is the right
by kpw94 3y ago
> cons of serverless:
> Turns all your code into spagetti, this is probably the biggest one.
Overall agree with you, but I don't think spaghetti is the right term here - even if the typo is corrected :)
Spaghetti code is more of a term for monolithic mess where you have a hard time following all the code logic (cyclomatic complexity) and dependencies.
Understanding & tracking dependencies is actually easier with serveless, it's pretty clear what dependency that one tiny micro service has.
But where it becomes worse is regarding the code logic mess, you've now turned it in a distributed system problem where, in addition to having a even hard time with cyclomatic complexity, you also have to think about transient failures/retries at each service boundaries.
That and the other problems you describe (performance hit etc)
- jpgvm 3y agoYeah I completely agree with all of that.
- bcrosby95 3y agoHow about spaghetti architecture.
- jpgvm 3y agoI like that one.
- hyperhopper 3y agoPrior art: https://preview.redd.it/y3pw78z0s3oz.jpg?auto=webp&v=enabled&s=6d65658e38c993ea7bccfc6c0b378262ee98bcd9 https://preview.redd.it/y3pw78z0s3oz.jpg?auto=webp&v=enabled...
- goalieca 3y ago> Spaghetti code is more of a term for monolithic mess where you have a hard time following all the code logic (cyclomatic complexity) and dependencies. I started using distributed monolith.
- ohmahjong 3y agoI saw this described recently as the "Lambda Pinball" architecture. * https://www.thoughtworks.com/radar/techniques?blipid=201911055 https://www.thoughtworks.com/radar/techniques?blipid=2019110...
- jpgvm 3y agoWhen even Thoughtworks thinks you are doing it wrong you know you are in trouble.
- bawolff 3y ago> Spaghetti code is more of a term for monolithic mess where you have a hard time following all the code logic (cyclomatic complexity) and dependencies. The only thing worse than a monolithic mess, is the same thing but distributed