Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ELB vs API Gateway vs CloudFront / 結局何を選べばいいの?
Search
haruko_tanabe
January 28, 2025
360
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ELB vs API Gateway vs CloudFront / 結局何を選べばいいの?
haruko_tanabe
January 28, 2025
More Decks by haruko_tanabe
See All by haruko_tanabe
ELB vs API Gateway vs CloudFront / 結局何を選べばいいの?
harukotanabe
1
500
TerraformでS3バケット削除後、再作成するとApplyが終わらない!
harukotanabe
0
160
エンジニア歴1年未満の初心者が3か月でAWS認定試験を全冠した話
harukotanabe
1
7.8k
クラウド未経験者が3か月でAWS認定試験を全冠した話
harukotanabe
0
350
エンジニア歴1年未満の初心者が3か月でAWS認定試験を全冠した話
harukotanabe
0
210
Featured
See All Featured
First, design no harm
axbom
PRO
2
1.3k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Scaling GitHub
holman
464
140k
Deep Space Network (abreviated)
tonyrice
0
370
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Designing Experiences People Love
moore
143
24k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
470
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
43k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
550
Transcript
ELB vs API Gateway vs CloudFront 結局何を選べばいいの? 2025/1/28 tanabe haruko
• アクセンチュア株式会社のエンジニア • 2024 Japan AWS All Certifications Engineers •
Google Cloud認定資格 11種保有 tanabe haruko https://zenn.dev/haruko_tanabe @hrsaaaam
アジェンダ 1. はじめに 2. 各サービスの利用目的 3. 各構成パターンとユースケース 4. まとめ
1 はじめに
はじめに • エンジニア経験が浅いと、インフラアーキテクチャの検討は難易度が高い。 ➢ どのようなケースで、どのサービスを採用すればよいのか判断するための 指針がほしい! • Elastic Load BalancingやAmazon
API Gateway、Amazon CloudFrontは、「アプリケーションのフロントに置き、ユーザーからのアクセ スを受け付ける」という点は共通しているが、それぞれ本質的な目的は異な る。
2 各サービスの利用目的
各サービスの利用目的(1/3) 1. Elastic Load Balancing(ELB) ➢ 1つまたは複数のAZ内の複数のターゲット の ヘルスチェックを行い、受信したトラフィックを 正常なターゲットにのみ自動的に分散させる
ことが目的。 https://docs.aws.amazon.com/ja_jp/elasticloadbalancing/latest/userguide/how-elastic-load-balancing-works.html
各サービスの利用目的(2/3) 2. Amazon API Gateway ➢ あらゆる規模のREST、HTTP、およびWebSocket APIを作成、公開、維持、 モニタリング、およびセキュア化することが目的。 https://docs.aws.amazon.com/ja_jp/apigateway/latest/developerguide/getting-started.html
各サービスの利用目的(3/3) 3. Amazon CloudFront ➢ エッジロケーションを経由し、コンテンツを キャッシュ・圧縮することによって、世界中の ユーザーへ低レイテンシーなコンテンツの配 信を実現することが目的。 https://docs.aws.amazon.com/ja_jp/AmazonCloudFront/latest/DeveloperGuide/Introduction.html
3 各構成パターンとユースケース
各構成パターンとユースケース(1/2) Public AWS Cloud Region VPC Private ア プ リ
ALB Cloud Front Public AWS Cloud Region VPC Private ア プ リ ALB ELB(ALB) ELB(ALB) + CloudFront 構成図 ユースケース パフォーマンス コスト ✓ 複数のEC2インスタンスやコンテナベースのWebアプリケーションを バックエンドとして、ヘルスチェックを行いながらリクエストを均一に ルーティングしたい場合。 ✓ ALBの機能に加え、世界中のユーザーに対して低レイテンシーな コンテンツ配信を行いたい場合。 ✓ キャッシュの有効期限や、Invalidation機能を細かく設定したい 場合。 ✓ 実行利用時間に応じた課金体系であるため、アクセス数には影 響されない。 ✓ リクエスト数、及びエッジロケーションからのデータ転送量に応じた課 金体系。 ✓ キャッシュ機能が無いため、CloudFrontと比較するとレイテンシー は高い。 ✓ エッジロケーションでキャッシュを作成できるため、低レイテンシーを 実現可能。
各構成パターンとユースケース(2/2) ELB(NLB) + API Gateway ELB(NLB) + API Gateway +
CloudFront 構成図 ユースケース パフォーマンス コスト ✓ 受信したAPIコール数に応じた課金体系のため、アクセス数に影 響される。 ✓ CloudFrontには及ばないが、キャッシュやペイロード圧縮により最 適化が可能。 AWS Cloud Region VPC Private Public ア プ リ NLB API Gateway Cloud Front AWS Cloud Region VPC Private Public ア プ リ NLB API Gateway ✓ モニタリングや変換、アクセスの上限数のコントロール、バージョニン グ等の機能と併せてAPIを構築・統合管理したい場合。 ✓ API課金や、 AWS Cognitoと連携した認証/認可の仕組みを 利用したい場合。 ✓ API Gatewayの機能に加え、世界中のユーザーに対して低レ イテンシーなコンテンツ配信を行いたい場合。 ✓ キャッシュの有効期限や、Invalidation機能を細かく設定したい 場合。 ✓ キャッシング効果により、アクセス数が多いほど、コスト削減につなが りやすい。 ✓ エッジロケーションでキャッシュを作成できるため、低レイテンシーを実 現可能。
4 まとめ
まとめ • アプリケーションに求められる要件(ルーティング、セ キュリティレベル、レスポンス速度、等)によって、適し たサービスが存在する。 • その他詳細は以下記事参照。 https://zenn.dev/acntechjp/articles/8bde90d02ff2ef
Thank you!