Amazon API Gateway を活用したゲームサーバー構築

1,001 views
665 views

Published on

Amazon API Gateway を利用してゲームサーバーを構築します。
デモとしてその場でゲームリスト取得APIを実装しました。

Published in: Technology
0 Comments
6 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,001
On SlideShare
0
From Embeds
0
Number of Embeds
89
Actions
Shares
0
Downloads
1
Comments
0
Likes
6
Embeds 0
No embeds

No notes for slide

Amazon API Gateway を活用したゲームサーバー構築

  1. 1. •  –  –  –  –  – 
  2. 2. •  •  •  •  •  • 
  3. 3. ELB •  •  •  •  •  •  •  •  •  Region
  4. 4. ELB •  •  •  •  Region CloudFront CDN
  5. 5. ELB Region CloudFront CDN•  •  •  •  •  •  •  • 
  6. 6. ELB Region CloudFront CDN•  •  •  •  •  •  •  •  •  •  • 
  7. 7. •  •  •  •  •  ELB Region CloudFront CDN
  8. 8. •  •  •  •  •  •  ELB Region CloudFront CDN DynamoDB
  9. 9. •  •  •  •  •  ELB Region CloudFront CDN Aurora Cluster W RRR
  10. 10. Internet Mobile Apps Websites Services AWS ELB
  11. 11. Internet Mobile Apps Websites Services API Gateway AWS Lambda functions AWS API Gateway Cache Amazon CloudWatch Amazon DynamoDB
  12. 12. Internet Mobile Apps Websites Services API Gateway AWS Lambda functions AWS API Gateway Cache Amazon CloudWatch Amazon DynamoDB Endpoints on Amazon EC2 / Amazon Elastic Beanstalk Any other publicly accessible endpoint
  13. 13. •  •  •  •  •  •  UserID (hash key) GameName (range key) TopScore TopScoreDate "101" "Galaxy Invaders" 5842 "2014-09-15T17:24:31" "101" "Meteor Blasters" 1000 "2014-10-22T23:18:01" "101" "Starship X" 24 "2014-08-31T13:14:21" "102" "Alien Adventure" 192 "2014-07-12T11:07:56" "102" "Galaxy Invaders" 0 "2014-09-18T07:33:42" "103" "Attack Ships" 3 "2014-10-19T01:13:24" "103" "Galaxy Invaders" 2317 "2014-09-11T06:53:00" "103" "Meteor Blasters" 723 "2014-10-19T01:14:24" "103" "Starship X" 42 "2014-07-11T06:53:03"
  14. 14. •  •  •  •  GameName (hash key) TopScore (range key) UserID "Alien Adventure" 192 "101" "Attack Ships" 3 "103" "Galaxy Invaders" 0 "102" "Galaxy Invaders" 2317 "103" "Galaxy Invaders" 5842 "101" "Meteor Blasters" 723 "103" "Meteor Blasters" 1000 "101" "Starship X" 24 "101" "Starship X" 42 "103" UserID (hash key) GameName (range key) TopScore TopScoreDate "101" "Galaxy Invaders" 5842 "2014-09-15T17:24:31"
  15. 15. •  •  –  –  –  •  –  –  GameAPI /games /games/{gameId} •  GET •  POST •  PUT
  16. 16. •  –  –  •  –  –  –  –  •  –  •  –  •  – 
  17. 17. •  –  –  •  –  –  –  –  •  –  –  – 
  18. 18. •  –  –  –  •  –  –  –  •  –  –  – 
  19. 19. •  • 
  20. 20. •  •  •  –  GameAPI dev beta gamma prod
  21. 21. API 1 (v1) Stage (dev) Stage (prod) API 2 (v2) Stage (dev)
  22. 22. •  –  –  –  –  –  •  –  – 
  23. 23. •  –  •  –  •  –  –  • 
  24. 24. •  –  •  –  •  –  •  –  https://my-api-id.execute-api.region-id.amazonaws.com/stage-name/{resourcePath}
  25. 25. •  –  •  –  •  –  •  – 
  26. 26. Internet Mobile Apps Websites Services API Gateway AWS Lambda functions AWS API Gateway Cache Amazon CloudWatch Amazon DynamoDB Endpoints on Amazon EC2 / Amazon Elastic Beanstalk Any other publicly accessible endpoint

×