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
remix + cloudflare workers (DO) docker上でいい感じに開発する
Search
TomoakiYoshida
March 25, 2025
Programming
0
190
remix + cloudflare workers (DO) docker上でいい感じに開発する
remix + cloudflare workers
docker develpment tips
TomoakiYoshida
March 25, 2025
Tweet
Share
Other Decks in Programming
See All in Programming
Serena MCPのすすめ
wadakatu
4
1k
All About Angular's New Signal Forms
manfredsteyer
PRO
0
170
CSC509 Lecture 06
javiergs
PRO
0
260
bootcamp2025_バックエンド研修_WebAPIサーバ作成.pdf
geniee_inc
0
110
Software Architecture
hschwentner
6
2.3k
品質ワークショップをやってみた
nealle
0
380
CSC305 Lecture 04
javiergs
PRO
0
270
大規模アプリのDIフレームワーク刷新戦略 ~過去最大規模の並行開発を止めずにアプリ全体に導入するまで~
mot_techtalk
1
450
iOSエンジニア向けの英語学習アプリを作る!
yukawashouhei
0
200
Devoxx BE - Local Development in the AI Era
kdubois
0
130
はじめてのDSPy - 言語モデルを『プロンプト』ではなく『プログラミング』するための仕組み
masahiro_nishimi
2
520
overlayPreferenceValue で実現する ピュア SwiftUI な AdMob ネイティブ広告
uhucream
0
180
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.5k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.6k
Typedesign – Prime Four
hannesfritz
42
2.8k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
Reflections from 52 weeks, 52 projects
jeffersonlam
353
21k
How to train your dragon (web standard)
notwaldorf
97
6.3k
It's Worth the Effort
3n
187
28k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
The Cult of Friendly URLs
andyhume
79
6.6k
The Illustrated Children's Guide to Kubernetes
chrisshort
49
51k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
8
910
Transcript
remix + cf workers (DO) docker 上で いい感じ に開発する by
@tech_yda
yda(わいだ) 東京でフリーランスエンジニアしてます Frontendメイン(特にReact周り)の技 術が好きです Remix(RR) の Web標準 を大事にする感じ が大好きです
Remix (cf worker) + DurableObject ユーザー情報のセッションストレージとして DurableObject(以下DO)を採用しています) 負荷分散のために、別のワーカーでDOを起動し、Remix のワ ーカーとServiceBinding
で接続している → 早くて安くてとってもよい!
開発環境もいい感じにしたい! みんな使いやすいようにdocker化しよう!
もしかして...、 別々のコンテナに立てた ワーカー同士は接続できな い...? ref: https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/#local- development
ref: https://github.com/cloudflare/workers-sdk/issues/5770#issuecomment-2465900809 !!!!!!!!!!!!!!
やってみた
None
別々のコンテナ同士でも Service Bindingで繋がった 🎉🎉🎉
まとめ WRANGLER_REGISTRY_PATH を使うことで、 ServiceBinding の情報が共有できる ネットワークを共有してあげれば(擬似的に)別々の環境 で動いているワーカー同士をServiceBindingで繋げられる Remix(RR) は wrangler
の API をかなり最新まで追従してく れていて、ニーズがあることは調べればできるように開発 してくれている!
最後に.... Sentry 周り や BFF からの投げるエラーレスポンスの型など、 皆様がどう扱っているか気になっています! ぜひ知見共有させてください! Twitter: @tech_yda
Github: YoshidaTomoaki ありがとうございました! 🎉