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
Kaigi on Rails 2024 その後
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
ryosk7
November 14, 2024
Programming
0
110
Kaigi on Rails 2024 その後
ryosk7
November 14, 2024
Tweet
Share
More Decks by ryosk7
See All by ryosk7
Campfireから学ぶ、37signalsのRails設計入門
ryosk7
0
43
実践「Clean Coder」
ryosk7
1
12
実運用を目指す、PicoRuby と MQTT
ryosk7
1
130
PicoRubyでMQTTサポートの実装をしている話 (3)
ryosk7
0
150
PicoRubyと暮らす、シェアハウスハック
ryosk7
0
500
PicoRubyでMQTTサポートの実装をしている話
ryosk7
0
590
Gitを理解した話
ryosk7
9
1.1k
30万人が利用するチャットをFirebase Realtime DatabaseからActionCableへ移行する方法
ryosk7
5
1.6k
【月刊MEMTUS】2024ハッカソン登壇後アプデ内容
ryosk7
0
140
Other Decks in Programming
See All in Programming
Fundamentals of Software Engineering In the Age of AI
therealdanvega
0
150
2026年は Rust 置き換えが流行る! / 20260220-niigata-5min-tech
girigiribauer
0
220
Go 1.26でのsliceのメモリアロケーション最適化 / Go 1.26 リリースパーティ #go126party
mazrean
1
350
CSC307 Lecture 15
javiergs
PRO
0
220
go directiveを最新にしすぎないで欲しい話──あるいは、Go 1.26からgo mod initで作られるgo directiveの値が変わる話 / Go 1.26 リリースパーティ
arthur1
2
470
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
380
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
210
日本だけで解禁されているアプリ起動の方法
ryunakayama
0
370
Ruby x Terminal
a_matsuda
7
580
株式会社 Sun terras カンパニーデック
sunterras
0
2k
API Platformを活用したPHPによる本格的なWeb API開発 / api-platform-book-intro
ttskch
1
120
PostgreSQL を使った快適な go test 環境を求めて
otakakot
0
410
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Mobile First: as difficult as doing things right
swwweet
225
10k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
450
Joys of Absence: A Defence of Solitary Play
codingconduct
1
300
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
1.9k
Thoughts on Productivity
jonyablonski
75
5.1k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
1.9k
First, design no harm
axbom
PRO
2
1.1k
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
Visualization
eitanlees
150
17k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
380
The Limits of Empathy - UXLibs8
cassininazir
1
240
Transcript
Kaigi on Rails 2024 その後 ryosk7
None
Kaigi on Railsでました
Kaigi on Railsでしくじった話は話は今度はなします まだ解決していない
Kaigi on Rails登壇でお話した残された課題
コネクションタイムアウト問題
ロードバランサーの設定を見直した タイムアウトを3分 → 30分に変更
これで安定するかと思いきや...
NewRelicで監視をすると、まだ完全にエラー出てる
再接続に10秒以上かかり、 データ反映に時間がかかっていた
Action Cableの仕組み
None
再接続には時間がかかる
観測した限り、再接続には1s以上かかる
マッチングアプリ的には致命的
クライアント側で15分たったら再接続させるようにし た
2ms ~ 10msで接続できるようになった
次に試したいこと
ずっと繋げられる仕組みを作りたい
2重でconnectionを貼れば実現できそう
切断する直前に新しいconnectionとconnection_idを 用意 接続されたら古いconnectionを切断
っていうのをやりたい
続きは来月か来年はなします
おわり