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
そうだ Firebase Remote Config、使おう / let use Fireba...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
pep299
April 19, 2021
Programming
0
96
そうだ Firebase Remote Config、使おう / let use Firebase Remote Config
Firebase Remote Configを利用して実現したことや、詰まった点を記載。
pep299
April 19, 2021
Tweet
Share
More Decks by pep299
See All by pep299
なるべく自動化頑張ったLINE BOT on AWS
pep299
0
88
シークレットを漏らしてしまった話 / secret-key-exposed
pep299
0
67
Playwright for PythonではじめるE2Eテスト / Lets start e2e-test with playwright for python
pep299
0
1.1k
プレイングマネージャーの葛藤 / The Conflict of a Playing Manager
pep299
1
3.3k
will・canマトリクスで自己分析してみた / Self-analysis with will-can matrix
pep299
0
560
Other Decks in Programming
See All in Programming
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
280
CSC307 Lecture 03
javiergs
PRO
1
490
CSC307 Lecture 01
javiergs
PRO
0
690
izumin5210のプロポーザルのネタ探し #tskaigi_msup
izumin5210
1
120
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
280
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
270
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
230
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
230
AgentCoreとHuman in the Loop
har1101
5
240
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
170
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
Package Management Learnings from Homebrew
mikemcquaid
0
220
Featured
See All Featured
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
140
The agentic SEO stack - context over prompts
schlessera
0
640
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
Designing for humans not robots
tammielis
254
26k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
110
Git: the NoSQL Database
bkeepers
PRO
432
66k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
Building the Perfect Custom Keyboard
takai
2
680
Technical Leadership for Architectural Decision Making
baasie
1
240
Fireside Chat
paigeccino
41
3.8k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
180
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
Transcript
「そうだ Firebase Remote Config、使おう」 ぺぺ@Pep299 1
⽬次 ⾃⼰紹介 Firebase Remote Config って? 実際の利⽤シーン まとめ 2
⾃⼰紹介 ぺぺ@Pep299 https://twitter.com/Pep299 情報系学⼠卒 エンジニア歴6年⽬ SES(⾦融系)-> フリーランス -> Web系受託 ->
? Python・TypeScript・Nuxt 東京都 新型コロナウイルス感染症対策サイトのコントリビュート経験 PyCon JP 2021 スタッフ 3
Firebase Remote Configって? DBの様に、ソースコード外にて値が設定可能 ソースコードを変更せずに定数・フラグ管理 GUI上で値の設定・変更ができるので、ビジネスサイドでも編集可能 A/Bテストやアプリのバージョンアップ通知、期間限定機能などに利⽤ 4
実際の利⽤シーン メンテナンス機構の実装タスクにアサイン フラグを⽴てると、元に戻すまでメンテナンス画⾯にリダイレクト プロジェクトのスキルスタック フロント:Nuxt.js アプリ :Cordova + Nuxt.js バック
:Python pyramid なるべく⼿早く提供したい(APIとかDBとか作らずにフロントだけで実装したい) なんか簡単にフラグ管理できる機構なかったっけかなあ -> 「そうだ Firebase Remote Config、使おう」 5
...ところが問題発⽣➀ Firebase SDKのNuxtラッパーがSSR対応してない... フロントがSSRのため、SPAモードに切り替え or SSR(初回リクエスト時)だけ諦める SPAに切り替えるのは影響が⼤きく確認コストが捻出できない SSRの時だけ諦める、画⾯に直でアクセスされると更新系APIを叩けてしまう -> しょうがないからPythonでAPI作って各フロントで呼び出そっと
6
問題発⽣➁ ...Firebase SDKのPythonラッパーにRemote Configがない REST APIでの提供はある -> ならばREST APIでPythonからRemote Configへアクセスだ...!
7
問題発⽣➂ 実装はできた Remote Configの値を取得し、メンテナンス画⾯へリダイレクトする様に 毎画⾯遷移時にRemote Configを取得するAPIをリクエスト レスポンスまでに2~3秒かかり、とても商⽤といえない... 結局、DBにメンテナンスフラグを持たせて、値を返すAPIを作成 -> Firebase
Remote Config 使いませんでした 8
何としてもFirebase Remote Configを使いたい アプリを本番公開する際、ストアへ申請が必要 申請時はAPIのバージョンが古いため、エラーが発⽣してしまう -> Remote ConfigにリクエストURLを定義しておき、申請中はテスト環 境へ向ける 9
まとめ アプリだけなら問題なく利⽤可能 今回はWebもろとも同じ機構にしようとして失敗した バージョンアップまわりの制御に利⽤できそう 公式の使い道に乗っ取り、アプリのA/Bテストに利⽤してみたい 10