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
0
110
IO 2019 Firebase and Cloud
sakajunquality
May 25, 2019
Tweet
Share
More Decks by sakajunquality
See All by sakajunquality
DevFest Tokyo 2023: Google Cloudでチームで安全にデプロイをする
sakajunquality
10
1.6k
Cloud Spanner Monitoring 入門 / Cloud Spanner Monitoring Introduction
sakajunquality
1
1.1k
GKE Overview March 2021: Introducing Autopilot
sakajunquality
1
750
Introduction to Cloud Run 2021
sakajunquality
3
1.5k
Building Reliable Distributed Systems on GCP
sakajunquality
1
210
Istio 1.5 Updates
sakajunquality
4
1.8k
GCP 101: Getting Started through Cloud Run
sakajunquality
6
3.4k
Seeking Observability, Getting Started with Service Mesh
sakajunquality
0
120
Fastly Yamagoya Meetup: Leveraging Cloud Portability with Fastly
sakajunquality
0
15k
Other Decks in Technology
See All in Technology
Multimodal LLMs and foundation models in robotics
keio_smilab
PRO
2
690
継続性視点での開発生産性マネジメント / Managing Engineering Organization in a Strategic Way
sms_tech
10
1.7k
機械学習モデルの運用と実用的なアプローチ
databricksjapan
0
240
まずは開発組織を整えるところからはじめる
ichimichi
0
110
[JSAI24]Object Segmentation from Open-Vocabulary Manipulation Instructions Based on Optimal Transport Polygon Matching with Multimodal Foundation Models
keio_smilab
PRO
0
120
Node-RED MCUの活用事例とノードの開発
404background
0
110
ロール・ツール群の開発 / Development of Roles and Tools
ks91
PRO
0
110
プロファイラを使ってPythonアプリをチューニングしよう
tokibito
2
280
SRECon 2024 Keynote: Is It Already Time To Version Observability? (Signs Point To Yes)
charity
2
130
Mutation Testingを活用して テスト品質を考える /introduction to mutation testing
kakehashi
3
390
GoのWebプロダクトに途中参加するときのキャッチアップ #layerxgo / How to catch up Go web product
budougumi0617
6
520
スタートアップがAWSパートナーになって得られたこと
shonansurvivors
3
520
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
91
13k
Build The Right Thing And Hit Your Dates
maggiecrowley
25
2.1k
What’s in a name? Adding method to the madness
productmarketing
PRO
17
2.7k
Build your cross-platform service in a week with App Engine
jlugia
227
17k
The Mythical Team-Month
searls
217
42k
Building Flexible Design Systems
yeseniaperezcruz
321
37k
Building an army of robots
kneath
300
42k
Adopting Sorbet at Scale
ufuk
69
8.7k
Unsuck your backbone
ammeep
664
57k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
136
41k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
358
22k
Principles of Awesome APIs and How to Build Them.
keavy
121
16k
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