LoginSignup
0
0

More than 1 year has passed since last update.

Rails案件で一般的に「Nginx - Puma, Unicorn - Rails」構成を取る理由

Last updated at Posted at 2022-01-02

それぞれの説明

  • Nginx: 一般的なWebサーバ。デフォでクライアントからのリクエストをバッファリング可能
  • Puma, Unicorn: Rackアプリ向けWebサーバ。クライアントからのリクエストをバッファリングができないため、低速回線によるリクエストだと接続が完了するまでつまってしまう。UnicornはRackの機能をあわせ持つ(Pumaも?)
  • Rack: Rackアプリ向けWebサーバとRailsとをつなぐAPIを提供するアプリケーションサーバ(ライブラリ).一般的なWebサーバNginxとの接続は想定されていない。

・・・というわけで、一般的に
 Nginx - Puma, Unicorn - Rails
という構成が取られているみたい。

参考

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