Fireship · @fireship
Serverless was a big mistake... says Amazon
Uploaded May 6, 2023 · Length 3:48
Summary
Amazon's Prime Video saved 90% on AWS bill by switching from serverless to monolith architecture.
- serverless
- monolith architecture
- amazon web services
- cloud computing
- cost optimization
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
it is May 6 2023 and you're watching the
- 0:03
code report serverless is the biggest
- 0:04
lie in the history of computers why you
- 0:07
always lying when you go serverless
- 0:09
you're still using a server it's just
- 0:11
not yours you'll compute nothing and be
- 0:13
happy Amazon Prime video just dropped a
- 0:15
shocking article explaining how they
- 0:17
saved 90 on their Amazon web services
- 0:19
bill by switching from serverless
- 0:21
microservices to an Old-Fashioned
- 0:23
monolith architecture that's great news
- 0:25
for Amazon because it'll save a ton of
- 0:27
money but bad news for Amazon because it
- 0:29
just lost a great Revenue Source the
- 0:30
article is sending shockwaves through
- 0:32
Tech right now because one of the main
- 0:33
claims of the serverless vision is that
- 0:35
you can scale infrastructure more
- 0:36
efficiently which in theory should cost
- 0:38
less money I really appreciate Amazon's
- 0:40
transparency here because they're one of
- 0:42
the original pioneers of serverless with
- 0:43
Lambda functions and nowadays you have
- 0:45
tons of platforms offering serverless
- 0:47
services like Purcell and netlify which
- 0:49
are actually just using and reselling
- 0:51
AWS Services behind the scenes there's
- 0:53
almost an entire industry of startups
- 0:55
that make AWS easier to use including
- 0:57
open source projects like the serverless
- 0:59
framework and S SST but not everyone is
- 1:01
drinking the Kool-Aid like dhh the
- 1:03
creator of Ruby on Rails and Basecamp
- 1:05
has been advocating for Majestic
- 1:06
monoliths for the last decade and took
- 1:08
his entire company off the cloud after
- 1:10
they spent over three million dollars in
- 1:12
one year now they just run their own
- 1:13
servers a lot of successful startups
- 1:15
like Dropbox end up leaving the cloud
- 1:17
once they get big enough however I
- 1:18
personally use serverless for my
- 1:20
projects and it's an absolute game
- 1:21
changer for getting things done quickly
- 1:23
although I have accidentally created a
- 1:25
few infinitely scaling infinite Loops
- 1:27
that could have potentially cost me an
- 1:28
infinite amount of money but what's the
- 1:30
difference between a microservice and
- 1:31
model with architecture at Prime video
- 1:33
they needed a tool to analyze audio
- 1:35
content or issues like video freeze and
- 1:37
Corruption to implement this tool they
- 1:40
use multiple serverless functions called
- 1:41
Step functions which are basically the
- 1:43
same thing as Lambda to handle different
- 1:45
responsibilities you have an initial
- 1:46
entry point which kicks off another
- 1:48
service to do a file conversion that
- 1:50
converts an audio video stream into
- 1:52
frames that can be used by the detector
- 1:54
you've got multiple detectors using
- 1:55
machine learning to analyze the video
- 1:57
then finally you have another function
- 1:58
to aggregate the result and store them


