Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
IO 2019 Firebase and Cloud
Search
sakajunquality
May 25, 2019
Technology
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
IO 2019 Firebase and Cloud
sakajunquality
May 25, 2019
More Decks by sakajunquality
See All by sakajunquality
DevFest Tokyo 2023: Google Cloudでチームで安全にデプロイをする
sakajunquality
10
2k
Cloud Spanner Monitoring 入門 / Cloud Spanner Monitoring Introduction
sakajunquality
1
1.5k
GKE Overview March 2021: Introducing Autopilot
sakajunquality
1
910
Introduction to Cloud Run 2021
sakajunquality
3
1.7k
Building Reliable Distributed Systems on GCP
sakajunquality
1
310
Istio 1.5 Updates
sakajunquality
4
2.1k
GCP 101: Getting Started through Cloud Run
sakajunquality
6
3.9k
Seeking Observability, Getting Started with Service Mesh
sakajunquality
0
200
Fastly Yamagoya Meetup: Leveraging Cloud Portability with Fastly
sakajunquality
0
16k
Other Decks in Technology
See All in Technology
FPGAの開発コンペでZephyrを使ってみた
iotengineer22
0
200
AWS Security Agent といっしょに脅威モデリングをやってみよう
amarelo_n24
1
210
WebGIS AI Agentの紹介
_shimizu
0
560
AWS Security Hub CSPMの成功・失敗体験
cmusudakeisuke
0
540
GitHub Copilot app最速の発信の裏側
tomokusaba
1
260
From Prompt Engineering to Loop Engineering
shibuiwilliam
1
200
不要なレビューをAIにまかせて AIコーディングの環境改善を加速した
shoota
1
260
千葉での単身赴任からAWSをやり続け、千葉に戻ってきた話
yama3133
1
120
現場のトークンマネジメント
dak2
1
190
Comment regagner la souveraineté de vos données tout en étant payé grâce à Nostr !
rlifchitz
0
200
從開發到部署全都交給 AI:實作 AI 驅動的自動化流程
appleboy
0
160
週末にループ・エンジニアリングの理解を深めるためのスライド
nagatsu
0
170
Featured
See All Featured
The Language of Interfaces
destraynor
162
27k
KATA
mclloyd
PRO
35
15k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Documentation Writing (for coders)
carmenintech
77
5.4k
The untapped power of vector embeddings
frankvandijk
2
1.8k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
610
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
260
Building a Scalable Design System with Sketch
lauravandoore
463
34k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
Embracing the Ebb and Flow
colly
88
5.1k
The SEO Collaboration Effect
kristinabergwall1
1
490
Transcript
I/O 2019 Firebase and Cloud FJUG Osaka #3 #io19jp 19.05.26
@sakajunquality
Agenda - What’s new in Firebase - Firebase Serverless Computing
Who am I? - @sakajunquality - Google Developers Expert for
Cloud - SRE at Ubie inc.
What’s new in Firebase
What's New in Firebase (Google I/O'19) https://www.youtube.com/watch?v=x8qTEMkZCPs
What’s new in Firebase? #io19 - ML Kit - Object
Detection && Tracking API - Translation API - AutoML Vision Edge - Crashlytics - BigQuery - Firestore - Collection Group Query
What’s new in Firebase? #io19 - Cloud Functions - Schedule
- Local Emulator - Performance Monitoring - Web - BigQuery - ...
https://firebase.googleblog.com/2019/05/whats-new- Google-IO-2019.html
Firebase Serverless Computing
GCP Serverless Computing - Cloud Functions - App Engine -
Cloud Run Cloud Functions App Engine Cloud Run New
Firebase Serverless Computing - Cloud Functions - - Cloud Run
Cloud Functions Cloud Run New
Cloud Functions - Deploy a function - Handle Request /
Events - Request and Response HTTPS - Events from Cloud
Cloud Functions Example func Hello(ctx context.Context, m PubSubMessage) error {
log.Println(string(m.Data)) // Your Logic Here... return nil }
Cloud Functions New - Scheduler - Local Emulator
Scheduler - Cloud Functions New - Schedule a function like
cron - https://firebase.googleblog.com/2019/04/schedule-clo ud-functions-firebase-cron.html
Emulator - Cloud Functions New - Local Emulator - https://firebase.google.com/docs/functions/local-emul
ator
Cloud Run - Deploy a container image - Listen $PORT
- Request and Response HTTPS
Cloud Run - Managed Endpoint w/ SSL Termination - 5
min Timeout* Firebase - ~2GB RAM - 0 to 1000 instances scale - 1-80 concurrent requests - Pay for CPU and memory @100ms + Network Transfer
Cloud Run Example: app package main import ( "fmt" "log"
"net/http" "os" ) func handler(w http.ResponseWriter, r *http.Request) { fmt. Fprintf(w, os.Getenv("HELLO_MESSAGE" )) } func main() { http. HandleFunc ("/", handler) log. Fatal(http.ListenAndServe (":8080", nil)) }
Cloud Run Example: Dockerfile FROM golang:1.12-alpine as build RUN apk
add alpine-sdk WORKDIR $GOPATH/src/github.com/sakajunquality/hello COPY . . RUN go get -d -v ./... RUN go install -v ./... FROM alpine RUN apk add --no-cache ca-certificates COPY --from=build /go/bin/hello /usr/local/bin/hello
Differences? https://firebase.google.com/docs/hosting/serverless-overview
Where Should I Run My Code? Choosing From 5+ Compute
Options (Cloud Next '19) https://www.youtube.com/watch?v=wzPmgWJ5fpU
Fastly Integration - All of them are covered with Fastly
CDN - Cache can be control by HTTP headers
Thankyou