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
150
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
AIと共生する開発者プラットフォーム:バクラクのモノレポ×マイクロサービス基盤
sakajunquality
2
5.2k
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
920
Introduction to Cloud Run 2021
sakajunquality
3
1.7k
Building Reliable Distributed Systems on GCP
sakajunquality
1
320
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
210
Other Decks in Technology
See All in Technology
システム思考で問題に対処する
yussak
0
210
OSPN.JPバージョンアップ作業進捗のご報告 / 20260801-osc26kyoto
akkiesoft
0
420
ブラウザ研修 2026
recruitengineers
PRO
4
790
PLATEAU で バーチャル花火大会
tatsuya1970
0
110
【CEDEC2026】次世代デジタルカードゲームのサーバー設計と運用 〜『Shadowverse: Worlds Beyond』の舞台裏~
cygames
PRO
1
970
強化学習「理論」入門
enakai00
3
3.6k
取引先から届く 「セキュリティチェックシート」の読み解き方
kamadamakoto
0
140
[ChatGPT Work LT]事務作業が苦手な人のための バックオフィスの「半」自動化
chimaki_iot
0
250
DatadogのBits Chatが開発組織にもたらしたもの / What Bits Chat Has Brought Us
sms_tech
0
110
サイバー捜査員研修(前半)
nomizone
1
1.9k
新しい SLO が良い感じにハマっている話
z63d
5
2.1k
20260608_Codexの可能性_ノンプログラマー向け_大城追記
doradora09
PRO
0
780
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
2
3.7k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.8k
The Spectacular Lies of Maps
axbom
PRO
1
890
From π to Pie charts
rasagy
0
260
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4.2k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
540
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
780
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
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