0
0

More than 1 year has passed since last update.

action_cableのbroadcastが特定の端末に送信されない

Posted at

経緯

action_cableを利用してチャットシステムを作成

開発環境で動作確認し、正常に動作

社内環境に資産適用

動作確認をしているとき、
broadcastが特定の端末に送信されないことが判明
なんで???

原因&解決方法

サブスクリプションアダプタに「async adapter」を利用していたため。
production環境では「redis」もしくは「PostgreSQL」adapterを使用する必要がある。

※なぜ「async adapter」が推奨されないのかは下記サイトがわかりやすかった。
railsのactivejobアダプターのAsyncAdapterって何?実装は?本番に使える?実用性は?調べてみました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0