Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
130
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.9k
Cloud Spanner Monitoring 入門 / Cloud Spanner Monitoring Introduction
sakajunquality
1
1.4k
GKE Overview March 2021: Introducing Autopilot
sakajunquality
1
870
Introduction to Cloud Run 2021
sakajunquality
3
1.6k
Building Reliable Distributed Systems on GCP
sakajunquality
1
280
Istio 1.5 Updates
sakajunquality
4
2k
GCP 101: Getting Started through Cloud Run
sakajunquality
6
3.8k
Seeking Observability, Getting Started with Service Mesh
sakajunquality
0
170
Fastly Yamagoya Meetup: Leveraging Cloud Portability with Fastly
sakajunquality
0
16k
Other Decks in Technology
See All in Technology
日本の AI 開発と世界の潮流 / GenAI Development in Japan
hariby
1
250
ソフトウェアエンジニアとAIエンジニアの役割分担についてのある事例
kworkdev
PRO
0
190
Entity Framework Core におけるIN句クエリ最適化について
htkym
0
110
AgentCore BrowserとClaude Codeスキルを活用した 『初手AI』を実現する業務自動化AIエージェント基盤
ruzia
7
1.2k
Snowflake導入から1年、LayerXのデータ活用の現在 / One Year into Snowflake: How LayerX Uses Data Today
civitaspo
0
2.2k
アプリにAIを正しく組み込むための アーキテクチャ── 国産LLMの現実と実践
kohju
0
200
子育てで想像してなかった「見えないダメージ」 / Unforeseen "hidden burdens" of raising children.
pauli
2
320
モダンデータスタックの理想と現実の間で~1.3億人Vポイントデータ基盤の現在地とこれから~
taromatsui_cccmkhd
2
260
Bedrock AgentCore Evaluationsで学ぶLLM as a judge入門
shichijoyuhi
2
190
AI with TiDD
shiraji
1
260
AgentCoreとStrandsで社内d払いナレッジボットを作った話
motojimayu
1
770
Connection-based OAuthから学ぶOAuth for AI Agents
flatt_security
0
340
Featured
See All Featured
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.3k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
1
200
How to Ace a Technical Interview
jacobian
281
24k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
0
22
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.1k
How to Talk to Developers About Accessibility
jct
1
84
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1k
A Soul's Torment
seathinner
1
2k
Thoughts on Productivity
jonyablonski
73
5k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
400
Agile that works and the tools we love
rasmusluckow
331
21k
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