►
From YouTube: What are Serverless functions anyway - PJ Welcome
Description
This talk will be about serverless functions: what they are, how we use them and what cloud providers offer us in this realm. We will look into examples of how serverless functions can be used as a new way of writing API endpoints.
This talk was recorded at the Jozi.JS meetup group on 18 October 2018.
https://www.meetup.com/Jozi-JS/events/254136600/
Disclaimer: The opinions in this talk are those of the individual and do not necessarily represent those of this channel, the meetup group, or it’s sponsors.
A
A
So
if,
if
you've
known
me
for
a
long
time,
I
used
to
be
really
big,
Apple
fanboy,
hence
the
Mac
and
but
I'm,
not
really
anymore,
but
that's
kind
of
my
game.
My
name
so
like
I
ended
up
just
being
PJ
apples
everywhere.
So
that's
pretty
much
what
happened
but
yet
today
I'm
here
to
talk
about
serverless
functions.
So
what
are
service
functions
anyway?
A
A
Apparently
you
should
put
that
yourself
African
on
your
slides,
especially
if
you
like,
with
season
stuff
like
people.
Do
that,
like
you
viewing
from
somewhere
else,
I'm
like
okay,
I,
guess
I,
just
put
it
everywhere,
I'm
one
of
the
organizers
for
GDG
Johannesburg
and
those
are
pretty
much
the
the
stacks
that
I
play
on
to
Android
fire,
but
cool
cloud,
iOS
development,
it's
kind
of
what
I
do
also
another
organize
for
the
dev
fest,
so
yeah.
Hopefully
we
see
some
of
you
guys
there
mm-hm
yeah,
so
Before
we
jump
into
service
functions.
A
I
want
to
go
back
one
step,
so
I
want
to
go
to
a
point
where,
back
in
the
days
we
used
to
all
have
used
to
work
for
companies.
I,
don't
know
how
old
some
of
you
people
we
used
to
be,
but
we
used
to
work
with
companies
where
all
of
our
servers
were
all
on
premise,
so
everybody
was
going
around
and
they
were
buying
blades
and
stuff,
and
everybody
was
buying
all
this
fancy
equipment
that
we
had
to
upgrade
every
single
year
because
we're
because
we
were
where
it's
not
fast
enough
anymore.
A
We
don't
have
enough
RAM
or
whatever
and
stuff
like
that,
and
then
eventually
we
moved
on
from
that.
Where
we
went
for
to
a
place
where
we
went
to
infrastructure-as-a-service,
so
what
this
means
is
that
we
were
like
okay,
we're
not
going
to
borrow
a
hardware
anymore
and
put
it
in
our
in
our
premises.
We're
actually
going
to
take
that
hardware
and
we're
gonna
put
it
in
some
cloud
somewhere.
All
we're
gonna
ask
Microsoft
or
Google
whoever
to
give
us
some
kind
of
like
machine
and
we're
gonna
gonna
go
and
configure
we're
gonna
bar.
A
We
want
the
spec
and
that
spec
and
blah
blah,
but
we're
gonna
still
manage
everything
ourselves,
and
that
was
cool
and
people
still
do
it
these
days.
But
who
wants
to
manage
vm's
and
stuff
like
that?
Like
it's
kind
of
boring?
So
then
we
went
to
platform
as-a-service,
so
platform
as
a
service
is
more
is,
is
another
is
another
place
where
you
would
you'd
write
a
whole
bunch
of
code
and
you're
actually
just
deploy
it
to
this
platform,
and
this
platform
would
serve
that
type
of
serve.
A
That
I
don't
know
like
server
or
serve
your
your
your
web,
your
API,
or
something
like
that
for
you
and
that'll,
be
all
cool
and
stuff
like
that.
But
I
mean
that's
something.
That's
pretty
cool,
but
I
mean
we
also
it's
also
kind
of
like
a
little
bit
bleak
because
you
still
have
to
like
manage
like
memory
and
all
of
those
type
of
things
and
then
obviously
that
cool
pitch
at
the
bottom.
There
shows
output
our
progress
all
the
way
to
service
functions.
A
So
obviously
Khan
come
here
without
memes,
because
it's
like
the
meme
house,
so
I
thought.
Let
me
let
me
get
a
meme
and
say
dude
service
architecture
everywhere
these
days.
So
pretty
much.
That's
what
everybody's
talking
about
these
days,
pretty
much
everything
in
servers
and
what
a
service
even
mean.
So
what
is
a
service?
What
is
service,
infrastructure
or
service?
This
word
that
people
that
people
keep
talking
about.
So
it's
pretty
much.
It's
an
invisible
infrastructure,
but
they
still
a
server.
So
it's
it's
server
list,
but
it's
still
a
server.
A
But
the
thing
is
you
don't
manage
any
of
that
server,
so
I'm
gonna
go
through
how
servers
functions,
work
and
what
service
is
all
about,
but
pretty
much
its
infrastructure
that
you
don't
have
to
worry
about
at
all.
It's
also
auto-scaling.
So
that
means
that
you're
pretty
much
done.
If
you
have
high
volume
of
high
volume
traffic
coming
towards
your
server,
the
server
the
service
infrastructure
will
scale
automatically.
And
you
do
know
you
don't
have
to
worry
about
that
right.
The
other
thing
is
that
it's
event-driven
so
service.
A
One
of
the
drawbacks
of
that
is
obviously
sometimes,
if
you
don't
use
it
for
a
very
long
time.
You
obviously
need
to
warm
up
the
server
so
that
could
kind
of
be
sucky.
So
the
three
biggest
providers
for
service
at
the
moment
is
obviously
Google
cloud.
There's
AWS
and
then
this
Microsoft,
with
the
sir
I've
tried
I've,
tried.
Obviously
I've
tried
the
Google
functions
cuz.
If
anybody
knows
me,
I'm
very
fond
of
Google
stuff
I
did
try.
Aws
I
was
like
what
is
happening
there.
A
Aws
is
like
insane.
They
documentation
is
really
bad.
According
to
me,
Microsoft
was
also
really
really
awesome.
They
seal
I
was
quite
easy
to
use.
I
got
some
functions
up
and
running,
but
I
couldn't
get
I,
don't
know,
I
don't
have
like
as
your
credits
and
stuff
and
then
like
stuff
started,
not
working
anymore.
So
I
was
not
going
to
show
you
anything
as
a
I
do
have
created
spy,
don't
know
how
they
work.
A
They
on
my
account,
but
I
don't
know
like
they
were
asking
me
for
critters
and
I
was
trying
to
access
stuff.
So
I
was
like
I,
don't
know.
I
probably
did
that's,
definitely
something
that
I
would
do
so
as
really
really
cool
to
have
logic.
They
have
logic,
apps
and
stuff
like
that
which
work
really
really
well.
I
have
some
links
to
some
really
really
awesome,
some
some
awesome
documentation
and
some
guides
and
stuff
at
the
end.
It's
really
really
awesome
so
definitely
check
that
out.
A
So,
but
now,
when
I'm
moving
to
the
realm
of
service
functions,
I've
been
talking
about
service
infrastructure,
the
whole
time.
What
is
a
service
function?
So
a
service
function
is
pretty
much
code
as
a
code
as
a
back-end.
So,
instead
of
so
everybody's-
like
probably
thinking
like
about
we
all,
we
all
write
code
and
we
still
put
it
on
the
back
end.
But
this
is
literally
a
piece
of
code,
a
foul
that
we
export
and
we
put
it
on
on
some
kind
of
a
server
that
we
know
nothing
about.
A
We
literally
you're
gonna
deploy
a
function,
a
piece
of
code
or
JavaScript
file
and
it's
gonna
go
all
the
way
to
the
back
end
and
we
don't
have
to.
We
don't
really
care,
what's
actually
happening
with
the
servers
and
stuff
like
that,
so
it's
pretty
much
code
as
an
infrastructure
and
then
don't
shoot
me
I
think
this
is
actually
the
good
crowd,
but
like
I'm
gonna
use
the
word
micro
service,
because
I
know
when
I
speak
to
Java
people
they're
like
microservice,
is
completely
different
to
them,
and
then
they
just
like
them.
A
A
A
That's
really
really
awesome
that,
because
I
didn't
try
the
AWS
I,
don't
really
know
because
I
couldn't
get
it
up
and
running,
but
with
Microsoft
and
with
Google
you
get
authentication
to
all
of
their
cloud
services
so
like
with
Microsoft,
you
get
access
to
their
cognitive
AI
services
and
all
of
those
type
of
things
through
cloud
functions,
and
you
don't
actually
ever
have
to
authenticate.
So
that's
something!
That's
really
really
cool,
because
you
you,
you
have
an
account.
A
You
serve
the
the
cloud
function
and
it
automatically
gets
access
to
all
kinds
of
all
kinds
of
services
what's
cool
about.
That
also
is
that,
obviously
everything
is
secure
because
you're
running
it
on
their
infrastructure.
Everything
is
secure
and
it's
the
same
with
Google.
They
have
machine
learning
a
few
eyes
which,
which
I
normally
use
and
serve
less
functions,
work
really
really.
Well
with
that,
and
then
obviously
it's
fully
managed,
so
they
do
all
the
DevOps
for
you,
so
you
don't
have
to
care
about
any
of
the
DevOps
and
I'm
like
going
on
like
hey.
A
They
don't
do
anything,
you
don't
have
to
do
any
of
the
infrastructure,
but
really
it
is
managed
by
them
yeah.
So
there
are
two
types
of
functions
you
get
HTTP
functions
which
are
normally
what
people
use
for
I'm
like
creating,
api's
and
stuff
like
that,
and
then
you
get
triggered
functions
and
these
triggered
functions
are
the
ones
that
are
event
based
based
on,
like
with
with
firebase
you'll,
have
an
event
that
happens
in
your
database
and
when
something
changed,
you
can
trigger
a
cloud
function,
whereas
you
explicitly
hitting
an
HTTP
server
less
function.
A
If
you're
trying
to
look
at
trying
to
do
one
of
those.
So
what
is
it
actually
good
for?
Why
do
we?
Actually?
Why
would
we
want
to
write
this?
Because,
obviously,
the
service
functions
are
awesome,
but
they
there's
a
use
case
for
them.
We
don't
they're,
not
there
for
everything.
There
are
small
use
cases
for
them.
Some
people
have
been
discussing
with
people
that
they're
actually
run
their
whole.
A
The
whole
logic
stack
on
on
servers
function,
which
is
really
really
awesome,
but
these
are
these
are
kind
of
the
the
main
use
cases
of
why
you
should
use
of
this
function
so
creating
web
hooks.
You
want
to
create
small
api's
to
do
small
little
things
if
you,
if
you're
doing
something
like
a
welcome
email
or
something
like
that,
when
someone
gets
added
to
your
two
registers
on
your
website
or
something
like
that,
that
could
be
cool
again
third-party
callbacks
that
could
be
to
your
Google
services,
your
Microsoft
services.
A
It
could
even
be
to
if
you
want
to
do
payment
gateways
to
like
stripe
or
something
like
that.
That
could
be
really
really
cool
and
then
obviously
for
IOT
I.
Think
it's
a
really
really
good
use
case
for
for
IOT,
because
it's
lightweight,
you
can
do
lightweight
data
transfers
between
them.
Also
so
serverless
functions
are
really
really
good
for
those
use
cases,
but
they
do
have
their
place
and
then
obviously
they
are.
There
is
a
place
for
for
other
types
of
functions.
A
Also
I
mean
other
other
methods
of
I'm
having
a
back-end,
so
just
some
languages,
the
one
I
did
forget,
was
f-sharp,
but
so,
if
anybody
knows
me
again,
I
really
like
Kirkland,
so
I'm
gonna
show
you
how
to
write
a
service
function
in
Kirkland,
but
Scotland
je
s.
So
there
is
JavaScript
I
promise,
so
there
is
JavaScript
so
and
I'll
explain
how
it
actually
works
like
it's
like
just
trance
trance
trance
pause
the
the
code
back
into
JavaScript
detects
all
the
Carlin
codes
put
in
and
puts
it
into
JavaScript
in
one
file.
A
So
that's
cool,
then
obviously
c-sharp.
So
what's
cool
about
what's
cool
about
the
zoo
functions
is
that
you
can
write
them
in
c-sharp.
We
don't
actually
after
item
in
JavaScript,
so
that's
cool.
You
can
do
a
awh.
You
can
do
Java
if
you
really
want
to
do
that.
It's
the
right
Java
code
and
then
you
have
Python
Python
good
for
for
for
data
science.
A
I,
don't
know
if
it's
really
good
for
for
doing
service
backends
who
knows
people
to
use
it,
and
then
there
is
JavaScript
and
and
typescript
and
those
are
pretty
much
the
the
main
I.
Don't
know
the
main
guys
in
in
the
house
service
function,
world,
so
cool,
so
I'm,
just
gonna,
I'm,
gonna
I'm,
going
to
take
a
step
forward
and
I'm.
Just
gonna
tell
you
more
about
because,
because
I'm
more
in
the
whole
Google
world,
I'm
gonna
kind
of
move
into
like
the
Google's
face
or
Google
cloud
functions
and
like
firebase
functions
so
pretty
much.
A
This
is
again
just
showing
you
some
of
the
integrations
that
we
can
use.
So
you
have
HTTP
endpoints,
which
are
pretty
much
for
your
api's
that
you
guys
are
going
to
create.
You
have
firebase,
you
have
firebase
hosting
so
previously,
firebase
hosting
was
only
static
sites,
so
pretty
cool
static
sites,
and
then
now
you
can
actually
use,
and
you
could
never
ever
really
write
on
any
content
for
it.
So
what
you
can
do
now
is
that
you
can
use
cloud
functions
to
actually
serve
that
Nemec
content
to
the
website.
A
If
you
do
need
something
like
that
and
running
on
the
on
the
firebase
hosting
one
of
my
favorite
is
the
crashlytics
integration,
so
with
crash
living,
it's
quite
awesome.
If
you
have
an
app
and
you
and
you
get
crashes
and
stuff
like
that,
you
can
actually
run
you.
Can
you
can
trigger
off
cloud
functions
that
will
actually
send
reports
to
like
your
managers
and
stuff,
like
that
and
you're
asking
credit
like
proper
reports
of
what
crashes
actually
were?
What
actually?
What
crashes
actually
happened
that
specific
day?
A
So
that's
really
really
cool
and
then
it's
just
like
pub/sub
cloud.
You
can.
You
can
do
like
push
notifications
if
you
want
to
based
on
specific
things
so
fiber.
It
has
a
whole
whole
suite
of
things
that
you
can
actually
do
and
again,
like
I
said
everything
is
authenticated
already,
so
you
don't
have
to
do
any
authentication
with
firebase
to
access
any
of
these
api's
within
your
service
functions.
A
So
obviously
everybody
likes
examples.
So
I'm
gonna
show
I'm.
Gonna,
show
two
examples:
I
had
a
third
and
then
I
broke
it
yesterday,
so
I'm,
just
like
not
gonna,
show
that
one
because
I'm
super
bad,
but
so
just
so.
This
is
like
demo
time,
but
this
slide
pretty
much
shows
like
you.
Can
MPM
install
all
of
these
see
our
eyes.
So
those
are.
A
That's
the
firebase
one:
that's
the
google
cloud
one
over
there
Azure
and
then
yeah
I,
don't
know
how
to
MPM
install
like
lambda
functions,
so
I
just
put
a
web
link
there
because,
like
it's
ridiculous
cool,
so
what
I
want
to
show
you
first
is
do:
did
you
do
I'm
going
to
do
this?
What
is
this
thing
called
Intel
eej.
A
So
what
I'm
gonna
do
also
is
I'm
not
actually
going
to
I'm,
not
actually
gonna,
like
do
all
the
commands,
because
the
last
time
I
did
some
commands
like
we
waited
for
dependencies,
because
I
I
was
really
relying
on
the
internet
and
then
the
internet
became
really
bad,
and
then
we
all
had
to
like
do
stand-up
comedy
for
like
two
minutes,
I,
don't
know
you
can't
even
see
that
cool,
so
I'm
just
gonna.
So
the
first
thing.
So
what
you
do
is
you
pretty
much
this
is.
A
A
This
folder
structure
over
here-
and
at
that
point
you
you
have
to
then
create
a
firebase
cloud
function
from
the
CLI
and
you
you
go
into
this
directory
of
this
folder
and
you'll,
create
the
the
CLI
I
mean
the
the
cloud
function
itself
with
all
the
dependencies
and
stuff.
So
it
will
create
the
package
that
JSON
all
of
those
type
of
things
and
give
you
all
of
that.
So
you
can
see
over
here
here
are
all
the
dependencies
for
sorry.
I,
don't
know
what
is
the
+
ctrl
+
c'mon
class?
A
So
that's
pretty
much
the
packages
that
that
that
gets
added
and
you
can
see
they're
Kotlin
functions
and
then
firebase
admin
and
then
there's
just
a
log
file
over
there.
Also
cool,
so
I'm
gonna
be
bad
and
just
enter
and
exit
it
the
whole
time.
Then.
The
next
thing
that
you
have
to
do
is
that
there's
this
small,
the
small
piece
of
code
over
here,
so
this
piece
of
code
is
pretty
much
telling
the
the
the
project,
the
Gradle
project,
that
you've
created
that
this
Kotlin
jeaious
project
is
gonna,
run
on
the
back
end.
A
So
you
have
to
put
this
small
piece
of
of
code
over
there
to
say
hey.
This
is
gonna
run
on
the
back
end.
Otherwise
it
thinks
that
it's
a
front-end
project,
so
it's
it
is
what
it
is
just
put
the
three
lines
of
code
and
then
magic
will
happen
and
then
finally,
we
we
get
to
the
actual
the
actual
code.
So
then
you're
gonna
create
a
Jil
and
go
where
I
don't
to
see
that
then
you're
gonna
create
a
a
JS
file
and
then
you're
actually
going
to
create
your
functions
at
this
point.
A
Okay,
I'm
just
gonna,
explain
this
one
because
I
don't
know
where
to
go
into,
but
pretty
much.
You
you'll
create
a
main
function
over
here
and
what
this
main
function
will
do
is
that
it
will
the
how
obvious
Lee
was
Kotlin
and
you
need
to
have
a
mane,
it's
kind
of
like
old-school,
Java
with
arguments
and
all
of
those
type
of
things.
This
is
actually
the
generated
code.
I,
don't
know
why
sorry
wrong!
It's
the
wrong
one
yeah.
That
was
the
source
one.
This
is
the
list.
A
You
have
to
create
a
Katie
file,
obviously
because
you're
adding
carton
code,
so
you
you
have
a
main
over
there.
You
have
your
arguments
and
stuff
like
that.
You
can
import
your
you
import
your
modules
over
there
and
then
from
here.
You
can
pretty
much
do
your
your
normal
stuff,
so
you're
gonna
require
gonna
require
firebase.
So
it's
pretty.
It
looks
exactly
like
JavaScript
right
kind
of
yes,
no
people
are
not
nodding
their
heads.
A
It
looks
like
similar
right
yeah.
What
yeah
I
don't
know:
I,
don't
I've
scripts
I'll
I'm,
just
gonna
go
with
yes,
and
so
you
you
have
your
requirements
there.
Those
the
modules
that
you're
importing
and
then
you're
pretty
much
gonna
create
an
export
function,
called
save
string.
This
is
an
HTTP
function
that
does
a
request
and
then
it
will
get
the
text
from
the
request
and
then
from
there.
A
It
will
pretty
much
put
it
into
the
firebase
database
and
then
send
back
a
200
and
say
hello
whatever
so
and
how
we
run
this
is
that
we're
pretty
much
gonna
go
into
the
command
line
and
we're
gonna
say
Gradle,
bold,
I'm,
not
gonna.
Do
it
because
it
takes
a
very
long
time.
Sometimes
I,
don't
trust.
Gradle
is
so
I'm,
just
gonna
I'm,
just
not
gonna.
Do
it,
but
then
I
will
definitely
show
you
the
function.
A
A
A
A
I
actually
don't
know,
but
just
so
you
can
see
all
the
invocations.
You
can
see
the
triggers.
What
will
actually
trigger
this
function
over
here
and
you
can
actually
see
the
source
also,
so
the
code
is
of
yeah
and
you
can
actually
go
and
write.
You
can
write
code
again
like
redeploy
from
the
Google
cloud
if
you
really
want
to,
but
you
can
see
like
it's
all
like
it's
all
generated
stuff
now,
based
on
the
Catalan
code.
That
was
bold
and
this
is
what
I
was
talking
about
it
pretty
much
clear.
A
A
Cool
so
then
I'm
gonna
do
this.
Hey
look
at
that,
so
what
I
did
over
there
so
automatically
we
get
SS
out
also,
firstly,
so
all
you
all,
your
security
and
SSL
stuff
is
all
done
for
you
get
HTTPS
out
the
box,
which
is
awesome
and
then
obviously
I'm
running
in
US.
Central
and
that's
my
cloud
function.
Url
and
that's
the
thing
that
I
created
so
I
can
go,
chose,
ejs
and
then
what
it
will
do
is
it
will
pretty
much
like
invoke
the
cloud
function.
A
A
It's
not
that
bad,
so
over
here,
I,
don't
know
if
anybody
everybody
can
see.
So
what
I've
done
over
here
is
that
I've
created
a
I'm,
creating
a
service
function
that
what
we
will
do
is
that
I'm
gonna
upload
it
so
I've
written
a
random
iOS,
app
well
upload
photos
to
firebase
and
based
on
that
event,
but
based
on
the
actual
picture
getting
uploaded
to
firebase
I.
A
Will
it
will
trigger
this
this
cloud
function
and
then
it
will
go
out
and
to
the
Google
machine
to
the
Google
vision,
machine
learning,
API,
and
it
will
look
for
any
annotations
on
the
web
that
actually
describes
this
image
so
pretty
much.
What
I
did
some
modules
over
here
I
added
some
modules,
I
added
the
Google
cloud,
vision,
module
and
then
obviously
I
need
the
admin
access
again,
you
can
see
I'm
not
doing
any
kind
of
authentication,
because
I
really
I
just
have
one
indication
because
I'm
uploading
it.
A
It
also
knows
about
my
firebase
account,
based
on
the
project
that
I
created
on
Google
cloud.
So
obviously
we
have
you
have
the
friend
firebase
projects
you
need
to
upload
it
to
the
right
one.
So
it
can
actually
monitor
the
right
database.
So
then
I'm
just
gonna
go
and
I'm,
creating
a
core
vision
and
I'm.
A
Saying:
hey
storage,
go
go
to
the
storage
and
on
any
image
being
uploaded
over
here
trigger
my
function,
get
the
bucket
get
the
bucket
down,
go
to
the
file
path
whatever
and
then
pretty
much
do
a
web
detection
based
on
the
image
that
I'm
actually
uploading
with
the
vision
API.
So
you
can
see,
is
just
some
random
JavaScript
could
be
really
bad.
Javascript
I
lease
returns
my
promises
so
I'm,
not
that
bad
at
JavaScript
and
yeah.
A
So
that's
pretty
much
it
and
then
what
I
did
is
that
I
took
the
I
took
the
the
the
things
that
come
back
from
the
from
the
API,
the
vision,
API
and
I.
Then
I
first
logged
it
out,
because
obviously
I'm
testing
live,
live
testing
and
then
and
then
I
put
it
back
into
to
fire
store
and
at
that
point
I'm
then
showing
it
on
the
app.
So,
let's
see
if
this
thing
works,
I
am
gonna
open,
Xcode.
Sadly-
and
this
is
so-
this
is
the
random
app
that
I
created
codes
really
really
bad.
A
A
A
A
A
A
A
But
like
this
isn't:
okay
now
I'll
just
take
this
image.
What
I'm
gonna
do
is
I'm
gonna,
try
and
I
know
how
an
iPhone
works
cool.
So
what
I'm
gonna
do
is
I'm
gonna
go
back
into
my
app
and
there's
a
random
cat
that
we
just
googled
and
I'm
gonna
put
this
in
and
then
what
it's
gonna
do
is
it's
now
going
to
so
this
is
from
this
because
I
think
clean
the
database
I'm
really
really
bad
from
the
previous
image.
So
what
it's?
A
A
A
It
could
be
any
one
of
these.
Let's
see,
I'm
hoping
it's
this
one.
This
looks
like
this
looks
good
today,
no
errors,
that's
good
logs
Hey,
look
at
that.
I
came
back
with
whiskers
cat
kitten,
memes
internet
memes,
all
of
those
type
of
things.
So
pretty
much.
Don't
look
at
the
warnings,
just
look
at
the
logs,
so
this
is
I
executed.
This
function
like
a
minute
ago,
so
I
did
have
to
warm
up
because
I
haven't
actually
used
this
function
in
a
really
long
time,
but
so
it
found
two
matches.
A
Then
it
found
some
more
stuff
and
then
it
scores
the
images
and
then
I
only
want
specific
scores
for
the
images.
So
this
is
just
based
on
I'm
some
machine
learning
staff
problem.
None
really
cares
about
machine
learning,
and
then
we
just
care
about
the
cats,
man
and
then
pretty
much
water.
What
it
did
is
that
it
said
cool
everything
was
executed,
awesomely
and
then
in
the
database
over
here.
A
If
we
go
to
this
to
the
fire,
stove
you'll
see
these
images.
That
was
the
image
that
was
uploaded
and
then
you'll
see
all
the
things
over
here.
Inside
of.
Why
can
I
go
down?
You'll
see
all
the
all
the
matches
for
the
for
the
for
the
things
for
the
cats,
so
their
kitten,
memes,
internet
memes,
all
of
those
type
of
things
the
machine
learning
stuff
also
gives
you
like,
actual
URLs
and
stuff
like
that
to
go
see
other
pictures
and
stuff.
It's
pretty
cool
and
I
was
all
done
with
me.
A
Just
literally
writing
a
random
function.
I'll
set
fire
by
his
deploy,
and
then
it
deployed
it
tomorrow
to
to
the
to
the
project
that
I
was
in
the
state
that
I
was
in
and
I
could
pretty
much
like
hit
this
function
at
any
time
and
say
cool.
Give
me
give
me
data
about
cats,
I,
guess
cool.
So
that's
my
demo,
Amaka
I
hope
that
that
was
sufficient.
A
A
Yeah
yeah,
so
you
can
you
can
now.
You
can
now
actually
do
configurations
at
runtime
on
your
on
your
functions,
so
you
can
tell
it
that
ok
cool
when
I
deployed
this
function,
the
next
time
I'm
actually
deployed
in
a
different
region,
or
there
was
a
really
really
bad
issue
with
cloud
functions
where
it
always
used
to
only
allocate
I'm
256
megabytes
of
memory.
A
Now
you
can
pretty
much
give
it
as
much
memory
as
you
want
to,
but
in
your
cloud
functions
before
you
actually
run
them
and
then
again
the
time
you
can
spend
all
the
money
like
money's,
not
important.
Guys
like
this
is.
This
is
Lissa's.
Let's
just
spend
the
cash
and
like
write,
awesome
stuff,
so
you
can
pretty
much
now
do
this
at
runtime.
A
Previously,
you
would
have
to
let
go
into
the
actual
cloud
console
and
stuff
and
like
do
configurations
there
again,
Clara
functions
are
not
supposed
to
be
you're,
not
supposed
to
know
how
to
scale
and
all
of
those
type
of
things.
We
developers
we
design
or
write
some
random
stuff,
and
we
want
to
deploy
our
code.
We
want
to
see
it
working.
So
this
is
a
really
really
cool
thing.
That
happened
then
again,
I
just
want
to
talk
about
okay,
I'm,
a
big
advocate
for
unit
testing.
A
So
obviously
you
need
to
test
your
functions
so
they're
in
the
in
the
firebase.
They
have
actual
documentation
of
using
marker
to
test
all
your
functions,
but
you
can
use
jasmine.
Also,
Jazmin
works
quite
fine
and
then
also
I
know
that
what's
cool
about
doing
it
in
Catalan
Jas
is
that
you
can
obviously
use
a
unit
to
actually
test
your
functions,
so
that's
actually
quite
cool
and
then
on
the
on
the
suicide
you
can
also,
since
writing
it
in
c-sharp.
You
can
actually
use
the
c-sharp
I'm
testing
frameworks
also
to
actually
test
your
function.
A
So
that's
really
really
cool
so
yeah
and
then,
if
you
want
to
run
it
locally,
so
one
of
the
one
of
the
things
that
a
lot
of
people
do
is
that
they
go
there.
They
write
a
cloud
function
and
then
they
deploy
it
to
the
cloud
and
they're
like
okay,
cool,
at
least
arts
broken
ku,
run
it
deploy
to
the
cloud
wafer
to
deploy
ku
taste,
that
arts
tomar
working
and
then
eventually
I
get
it
right,
but
you
can
also
with
firebase,
specifically
I'm,
not
sure
what
the
others
I
didn't
actually
try.
A
It
I
just
did
try
it
deploy
to
the
cloud
type
of
virus,
but
with
firebase
I
know
that
you
can
actually
serve
them
locally,
which
is
quite
cool,
so
you
can
actually
just
test
them
in
your
browser.
Quickly
just
makes
more
productivity,
it
was,
it
was
actually
should
take
out,
experiments
and
I.
Don't
think
that's
in
experimental
anymore,
but
it
still
works
that
line
of
code.
A
So
I
guess
they
just
copy
pasted
the
the
cloud
of
the
CLI
thing,
whatever
the
command,
so
that's
cool,
and
then
obviously
you
can
also
run
your
your
cloud
functions
on
C
ICD,
so
circle
CR
has
documentation
for
firebase.
I
was
actually
really
bad.
I
had
another
link
that
I
was
going
to
put
up
there,
but
there
was
it.
A
There's
also
links
for
how
to
run
your
your
your
cloud
functions
for
logic,
for
logic,
logic,
apps
for
sure
functions,
so
I'll
definitely
add
that
when
I
give
the
slides
out
but
see
I
see
these
important.
We
obviously
know
that
we're
that
that's
just
part
of
our
development
process
these
days,
especially
in
enterprise
development,
so
having
some
kind
of
way
to
actually
do.
It
is
really
really
awesome,
and
then
this
is
just
some
resources
to
get
started.
A
So
these
are
all
the
the
first
three
are
just
YouTube:
videos
on
AWS,
Google,
Cloud
and
logic
function,
I
mean
I,
saw
a
function,
I
keep
saying
logic
as
well
functions
and
then
obviously
there
is
just
documentation
stuff
and
then
serverless
is
a
CLI
that
was
written
by
this
other
company.
It's
a
server
list
CLI
that
actually
can
run
any
kind
of
service
function.
So
it's
it's
really
really
cool.
You
can
run
Google
Cloud
on
there.
You
can
run
Python
stuff
on
there.
You
can.
You
can
run
anything
you
want
to.
A
So
they
have
like
a
really
really
cool
side
and
I
have
like
awesome
documentation
or
some
blogs.
So
I've
read
I.
Think
I've
read
almost
all
of
them.
They
really
really
awesome,
so
definitely
check
those
out
for
getting
started
and
then
I
just
wanted
to
say,
go
out
there
and
actually
try
it,
maybe
maybe
see
if
you
can
actually
get
this
I'm
working
with
with
something
new
within
your
company.
Maybe
try
actually
port
one
of
your.
A
Your
other
functions
I'm
one
of
your,
your
your
api's
to
a
cloud
function
and
see
what
the
performance
might
be,
maybe
see
if
it
works
better
for
you,
maybe
the
the
triggers
might
might
be
something
that
could
benefit
you.
Maybe
the
the
whole
thing
about
I'm
accessing
different
api's
that
already
they're
already
there
for
you
to
use.
Maybe
that
will
be
really
really
awesome
for
you
to
try.
So
if
you
need
a
contact
me
there's
my
deets.
Otherwise,
thanks
for
thanks
for
having
me
does
anybody
have
any
patience.
B
A
C
A
C
A
Yeah
so
I
think
it's
more
for
so
so
I
think
fire
based
I
really
created
these
functions
because
firebase
was
more
of
a
you.
Have
a
client
and
you
hit
a
database
straight,
and
everybody
was
like
couple
where
do
I
write.
My
back-end
code,
like
I,
want
some
type
of
computation
and
they're
both
these
cloud
functions
so
that
you
could
trigger
stuff
based
on
that
and
then
do
some
computation.
So
it
can
almost
serves
as
your
your
your
back-end
or
your
API
way.
We
traditionally
go.
A
We
from
our
client,
we
hit
an
API
and
then
I
it's
a
database.
This
is
like
from
from
our
client.
We
hit
the
database
and
the
database
triggers
some
kind
of
functions,
and
then
that
does
some
callbacks
and
stuff
back.
You
can
then
render
the
data
back
into
your
app
or
your
website
or
any
of
that
cool.
A
Anything
else.
Yeah
which
cloud
is
the
cheapest
I'm
gonna.
So
so
I
would,
to
be
honest,
like
I
sure.
Well,
it's
probably
the
cheapest,
but
I
couldn't
get
it
working
like
it
was
such
a
mission,
so
I
wouldn't
say,
go
if
someone's
really
really
good
at
Java,
then
I,
guess
that
all
your
stuff
then
cool,
that's
probably
the
cheapest,
but
I
would
say
that
I
think
goo
Google
has
a
free,
free
tier,
where
you
can
do
like
I
think
ten
thousand
invocations
a
month
or
something
like
that
before
you
actually
start
paying.
A
C
A
So
sorry,
the
one
thing
I
can
tell
you
is
that
some
of
the
api's
on
Google,
so
that
machine
learning,
API
you
have
to
pay
for
that,
so
up
was
I,
was
paying
to
hit
that
that
thing
get
the
ball
whenever
it
comes.
Who
knows
or
they'll
just
take
my
money
but
like
summer.
So
that's
the
one
thing
so
now
you
have
access
to
all
these
things,
but
sometimes
some
of
these
API
is
and
stuff
like
that
are
not
free.
C
B
A
B
A
C
A
Also
exists,
so
the
debate
is
the
very
is
a
picture
that
I
took
so
I,
always
so
it's
just
something
that
I
do
always
on
my
last
slide.
I
put
a
picture
that
I've
taken,
so
that's
I
know
I
just
changed
them.
Every
every
random
I
think
I
do
photography,
so
I
thought
hey.
Let
me
also
just
like
splash
my
photography
out
there,
while
I'm
doing
Tech,
Talks
so
yeah
anybody
else,
yeah.