You build it, Google runs it (serverlessly) in containers
1
Geshan Manandhar
Sr. Software Engineer @ Simply Wall St.
Hello!
I am Geshan Manandhar
2
LinkedIn profile ☝️
I work for Simply Wall St.
3
Make confident investment decisions
I am from Kathmandu, Nepal
4
Agenda
5
This slide deck ☝️
7 Services with more than 1 billion users
6
Everything at Google runs in containers
7
“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
8
Why use Containers/Docker?
9
Ship the whole stack with its dependencies
📚
☁️
Cloud provider agnostic (faster initialization and execution - vs VMs)
Easy to scale horizontally (better resource usage)
💻
🧑🏭
Developers can be productive on day 1 (quicker onboarding)
Docker Image to running container
10
Containers can be run serverlessly, then, what is serverless?
“Serverless computing is an application development and execution model that enables developers to build and run application code without provisioning or managing servers or backend infrastructure.”
- IBM
* Also important: With serverless, developers never pay for idle capacity.
11
There are still servers,
you don’t have to manage them.
12
Reasons to use Serverless
13
🏃
Quick deployments and faster time to market
Cost based on precise usage (scaleable, highly available) - No requests, no cost.
💵
Server management not necessary
More reasons: https://www.goodtechthings.com/what-lies-beneath/
Run Containers - no need to learn Kubernetes
14
Kubernetes is complicated
15
Cloud and containers without Kubernetes
16
Google runs it in containers (serverlessly)
17
Google Cloud Run
18
19
Cloud Run advantages
20
No need to learn a new language/framework
🛠
Serverless and fully managed
(Scales up and scales to 0 when there are no requests - every 5 seconds)
🔒
HTTPs URLs and support for custom domains
Cloud Run advantages
21
Manage traffic (%) and concurrency per instance (tag and get a URL to any revision)
🚦
🖥
Unserverless with one simple config (min instances 1 = no cold start issues)
Cloud Run jobs, integrations, sidecar containers, health checks, cloud storage bucket as volume
GPU and Gen AI Inference
⚙️
For more follow Cloud run release notes
“Cloud Run eliminated the need to add another engineer because we did not need to manage infrastructure or instances—it is just ‘set and forget’.” - Nik Kyriakidis, Lead Engineer, Halfbrick Studios �(The company behind the game Fruit Ninja, Jetpack Joyride, and other games)
22
Docker image to running container on GCP
23
GKE
Logging
Trace
Cloud SQL
Pub Sub
Storage
Demo
24
Demo - Cloud Run Button
25
Demo - Deploy from source
26
Aussie companies using Cloud Run
27
Left heavy lifting to GCP
Using Pub/Sub and Cloud Run, Pet Circle is not only changing their operations into a much more cost-effective one, but also scaling without needing to worry...
From $24/day to $4/day
…Cloud Run could serve a wider range of requests per instance than alternative solutions—enabling the business to control scaling while maintaining high throughput
One billion rows of data
The business also uses Dataflow and Pub/Sub to process and transform data ahead of its move into BigQuery; Cloud Run to scale stateless containers while abstracting infrastructure management;...
Cloud Run can scale (hyper-scale)
28
Scaling Web Services
The ability to put an automatically scaling service in production with one command is very attractive.
3B log lines in a day
…within one minute, we went from running 150 - 200 container instances to over 1000…. and the infrastructure just worked
90% cost saving (enterprise)
Second largest bank in Germany with 33K employees, with profit before taxes of €3.2 billion. Reduced toil by 70%. Met rigorous security and compliance standard.
Ford (~20K software developers): 30 min video
Loreal (~90K employees): 15 min video
Cloud Run at a side project scale (ATJ)
29
Top 3 takeaways/Conclusion
30
1
Use containers
Utilize Kubernetes only when needed
2
Serverless is useful
Use serverless when it makes sense
3
Let Google handle scaling
Offload scaling problems to Google use Cloud Run
Thanks! Any Questions?
31
LinkedIn profile ☝️
References
32
Cloud Run users
33