⏰ What time is it? Time for a #Mythbusters thread -- #Serverless edition!

Agreed, the term is sub-par. But hear me out, the architecture is not. Let's talk about a few common misconceptions about Serverless!
1⃣ "Serverless means no servers"

There *are* servers involved, but it's not on you to run and operate them. Instead, the serverless provider is managing the platform, scaling things up (and down) as needed. Less things to take care of, billed per-use.

Myth: BUSTED!
2⃣ "Serverless is cheaper"

Pay-per-use makes low/medium-volume workloads really cheap. But pricing is complex: no. of requests, assigned RAM/CPU, API gateways, traffic etc. Depending on your workload (e.g. high, sustained), other options like VMs are better.

Myth: Kinda BUSTED!
3⃣ "You can't use #Java for Serverless"

Yes, classic web stacks on the JVM can take seconds to start: too long for cold starts with users waiting for a response. But don't despair; AOT compilation with #GraalVM (and Project Leyden soon) yields ms start-up times.

Myth: BUSTED!
4⃣ "Serverless means lock-in"

Not if you do it right. Avoid provider-specific function APIs, use portable APIs like #Quarkus Funqy, REST APIs, e.g. with AWS Lambda Proxy, or container-based Serverless ( #Knative). It hardly gets more portable than Linux containers.

Myth: BUSTED!
5⃣ "Serverless makes Ops superfluous"

True. That is, if you don't care about monitoring and incident response, keeping your dependencies and base images secure and up-to-date, budget control, right-sizing RAM and CPU, water-proof IAM, etc. In other words:

Myth: BUSTED!
6⃣ "The less memory a function uses, the better"

Oftentimes, CPU is allocated proportionally to RAM. Even if you just need 128 MB RAM, assigning more may reduce latency by means of more CPU. This can put you into a lower billing bracket and thus be cheaper.

Myth: BUSTED!
7⃣ "Serverless is a panacea for all IT problems"

j/k, I hope nobody thinks that. As always, context matters. Serverless architectures are great for some problems, a poor fit for others. Think for yourself, choose what makes most sense, no matter what's the hype-du-jour.

~Fin~
You can follow @gunnarmorling.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled:

By continuing to use the site, you are consenting to the use of cookies as explained in our Cookie Policy to improve your experience.