1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Rails】cable.ymlについて

Posted at

記事概要

Ruby on Railsの設定ファイルについて、まとめる

前提

  • Ruby on Railsでアプリケーションを作成している

基本情報

ファイルパス

config/cable.yml

概要

ActionCableを使用する際の設定を記述するファイル

adapter

サーバーから送信された情報をクライアントへ提供する仕組みがあって成り立っているが、その仕組みと連携するためのもの

使用できるadapterの種類には、下記3通り

種類 備考
Asyncアダプタ 無料で導入が可能。
一方で、パフォーマンスの面から本番環境での利用は非推奨(個人アプリの規模であれば、基本的に挙動に問題はない)
Redisアダプタ 本番環境での利用が推奨されている。
一方で、EC2を用いたデプロイを行う際に、料金がかかる
PostgreSQLアダプタ 本番環境での利用が推奨されている。
一方で、DBとのやりとりには、PostgreSQLを使用していることが条件
1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?