Ever wondered if you could run your web application container on a serverless platform? Wait no further with the recent Google cloud run release it is already possible. You can get from 0 to a working serverless URL for a containerized app in no time. Till now there was nothing that married the goodness of serverless with container's ease. Cloud run also makes deploying new versions very easy with its web interface. This talk will be a run-through of deploying and running a simple nodejs app on google cloud run in a matter of minutes.
Presented at Serverless Days Sydney Conference and Serverless July 2019 Meetup.
5. @geshan
Agenda
● What is serverless? Why serverless?
● Containers and why use them
● Current serverless FAAS offering
● Cloud Spectrum
● Google cloud run (Serverless + Containers = Bliss)
● Demo
● Performance comparison (Serverless vs FAAS)
5
7. @geshan
“ Serverless was first used to describe
applications that significantly or fully
incorporate third-party, cloud-hosted
applications and services, to manage
server-side logic and state - BAAS.
Mike Roberts, Symphonia
7
8. @geshan
“ Serverless can also mean applications where
server-side logic is still written by the application
developer, but, unlike traditional architectures,
it’s run in stateless compute containers that are
event-triggered, ephemeral (may only last for
one invocation), and fully managed by a third
party. - FAAS.
Mike Roberts, Symphonia
8
14. @geshan
Reasons to use Serverless
● Server management is not necessary
● Cost based on precise usage (by the second)
● Inherently scalable (load based autoscaling)
● Implicit high availability
● Quick deployments and updates (Functions)
● Faster to reach a working application (time to
market)
14
15. Focus on your application (code), not the infrastructure
19. @geshan
“ A container is a standard unit of
software that packages up code and all
its dependencies so the application runs
quickly and reliably from one computing
environment to another.
- Docker.com
19
27. 27
Control Ease / Abstraction
Virtual
Machine (VM)
Containers
PAAS Serverless
Serverless
Containers
Cloud Spectrum - the sweet spot
28. @geshan
Google Cloud Run
● Cloud Run is a managed compute platform that
automatically scales your stateless containers.
● Cloud Run is serverless: it abstracts away all
infrastructure management, so you can focus on
what matters most — building great
applications.
28
29. @geshan
Cloud Run advantages
● No need to learn a new paradigm/framework
● Run any language/framework/binary -- as it runs
containers (not fixed runtimes)
● Serverless and fully managed
○ Cloud Run on GKE can be self managed (Knative)
● Https URL out of the box (custom domains
possible)
● The Google Cloud toolset goodness :)
● Getting from 0 to working URL is relatively easy
29
33. @geshan 33
Thanks!
Any questions?
THE ICONIC is hiring.
I blog at Geshan.com.np and you can follow me
@geshan , this slide is at bit.ly/zero-to-url-gcr