LoginSignup
1
2

More than 1 year has passed since last update.

構成図を作ってインフラの勉強 AWS+Rails+Nginx+Unicorn

Posted at

はじめに

初めてドメインを取得しAWSでデプロイ(HTTPS)を行いましたので、その復習・備忘録として構成図を作成しました。

前提

  • VSCode(Draw.io Integration)
  • Ruby on Rails
  • AWS(EC2)
  • Nginx
  • Unicorn

構成図

aws.png

大まかな処理の流れ

【Usersからアクセス】
1.Route53でURLをIPアドレスに変換する
2.Certificate ManagerでSSL証明書を取得する
3.Internet GatewayのPORT(443)を通過
4.Application Load Balancerでアベイラビリティーゾーン(東京)にあるWeb Serverにアクセス
 ※ターゲットグループはPORT(80)
5.Web Severで静的コンテンツを返してもらい、動的コンテンツはAP Serverに要求
6.5のリクエストに対しRailsを実sこう
7.必要に応じDB Serverを操作し、その結果を処理に埋め込む
8.実行結果をWeb Serverに返す
9.Web Serverが処理結果を返す
10.ユーザーが確認できる

構成図を作成してみて

デプロイを行なっている最中は全てが点でしかなかったものが、構成図を作成することで全体の把握ができました。
もし、間違い等ございましたらご指摘をお願いしますm(__)m

1
2
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
2