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
130
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
地域ITコミュニティの活性化とAWSに移行してみた話
yuukis
0
240
Optimizing JRuby 10
headius
0
280
Agentic Applications with Symfony
el_stoffel
2
280
Being an ethical software engineer
xgouchet
PRO
0
210
アプリを起動せずにアプリを開発して品質と生産性を上げる
ishkawa
0
2.7k
gen_statem - OTP's Unsung Hero
whatyouhide
1
200
Building a macOS screen saver with Kotlin (Android Makers 2025)
zsmb
1
150
RuboCop: Modularity and AST Insights
koic
2
250
MCP世界への招待: AIエンジニアが創る次世代エージェント連携の世界
gunta
4
900
フロントエンドテストの育て方
quramy
11
3k
自分のために作ったアプリが、グローバルに使われるまで / Indie App Development Lunch LT
pixyzehn
1
160
AI Coding Agent Enablement - エージェントを自走させよう
yukukotani
14
6k
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.1k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.6k
A Tale of Four Properties
chriscoyier
158
23k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
160
15k
Why Our Code Smells
bkeepers
PRO
336
57k
How to Ace a Technical Interview
jacobian
276
23k
How GitHub (no longer) Works
holman
314
140k
Speed Design
sergeychernyshev
29
890
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Reflections from 52 weeks, 52 projects
jeffersonlam
349
20k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Producing Creativity
orderedlist
PRO
344
40k
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 ありがとうございました! 🎉