Fireship · @fireship
Serverless Computing in 100 Seconds
Uploaded March 17, 2021 · Length 16:46
Summary
Fireship explains serverless computing with AWS Lambda, Google Cloud Functions, and Azure Functions, and demonstrates a Firebase Cloud Functions setup for a product delivery service.
- serverless computing
- aws lambda
- google cloud functions
- azure functions
- firebase cloud functions
- backend development
- product delivery service
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
serverless computing it's a misnomer
- 0:02
used to describe servers in the cloud
- 0:04
that requires zero configuration or
- 0:06
maintenance from the developer
- 0:07
imagine you need water for your house
- 0:09
you could spend a bunch of time and
- 0:10
money digging a well
- 0:11
testing the water quality and plumbing
- 0:13
it to your house or you could just tap
- 0:15
into the city water supply
- 0:16
and pay a monthly fee based on the
- 0:18
amount of water that you use
- 0:19
serverless computing is the same idea
- 0:21
but instead of water
- 0:22
we're talking about the amount of cpu
- 0:24
and memory it takes to run your code
- 0:26
services like aws lambda google cloud
- 0:29
functions and
- 0:30
azure functions allow you to run your
- 0:31
back-end code across their global data
- 0:33
centers
- 0:34
then they mail you a bill at the end of
- 0:35
the month that's factored down to the
- 0:37
millisecond
- 0:37
the beauty of this approach is that your
- 0:39
only concern is writing code
- 0:41
you don't have to pick an operating
- 0:42
system configure networking patch
- 0:44
improvements or provision capacity to
- 0:46
run at scale the cloud handles all that
- 0:48
for you behind the scenes
- 0:49
from an architectural standpoint it
- 0:51
allows you to develop and test each
- 0:53
business requirement
- 0:54
independent of a bigger monolithic
- 0:56
system not only do serverless functions
- 0:58
make servers easier to manage
- 1:00
but they can also be executed based on
- 1:02
different events that happen in the
- 1:03
cloud
- 1:03
which can actually simplify your backend
- 1:05
code for example
- 1:06
you might create a new database record
- 1:08
when a user places an order which then
- 1:10
triggers a serverless function to
- 1:12
send an email confirmation or maybe an
- 1:14
iot event on a home security system
- 1:16
invokes a function that sends a push
- 1:18
notification to the user's device
- 1:20
one of the easiest ways to get started
- 1:21
with serverless is firebase cloud
- 1:23
functions the command line tool will
- 1:25
give us a project
- 1:26
that looks like any other node.js
- 1:28
backend in the code we can export named
- 1:30
functions
- 1:31
that are configured to run on different
- 1:33
events that happen in google cloud
- 1:34
an event could be a simple http request
- 1:37
or a file upload database write
- 1:40
analytics event and so on after writing
- 1:42
our code we can then deploy it to
- 1:43
production with a single command and we
- 1:45
now have a reliable backend that is
- 1:47
ready to scale
- 1:48
this has been serverless in 100 seconds
- 1:51
but if that sounded too good to be true
- 1:52
make sure to stay tuned because i've
- 1:54
invited dane from the filled stacks
- 1:56
youtube channel to show us how to build
- 1:58
a serverless backend for a big complex


