Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Best Practice for Online Game Development on AWS

2,272 views

Published on

2018/11/15に開催されたGame Tech Nightのセッション1のスライドです。

Published in: Internet
  • Be the first to comment

Best Practice for Online Game Development on AWS

  1. 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. F A , 1A F A D C 8 HA 85 18CG 8D # ## # HA 8 28 . AF 8D 0 8C AC 8 8
  2. 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • • A
  3. 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • W A S / • S A • A W
  4. 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. (21 • 3 : 4 )5 1 42 ::1 ) • ) 1 hn o t rD W se • ) 1 D 1 ( • ) 1 a aP • ) 1 bgd A • ) 1 lI uC?A i • C
  5. 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ( ) (
  6. 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. . ) / ) (.) / / )
  7. 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ( ) (
  8. 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • pcr / P a • A We • v v • G P aA • A a A • v D Kt • Lt ar • r We • h L Rov • D • h W W • / . / • • / . • GrW • • GrW pv vL • I • tL • g Wr • • • h k vL • AR Rov • r • • • A P r / . • Q A A • A GrW • Q A • k SvL • QA R • Q vA AtL • D C a L A • Q AbS Gp Rov • kv Rov / .
  9. 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • b R • • SI L g • I A • CD R r • K o • Ro aW b R • eGKp P • CD R • eR • / . / • • / . • o Gg • • • • Kc • G o • • L g • eW hGI K • P p P • W o g • • • g Go / . • • o Gg • k v t • hWS Q K • k v aWP • L g G A K • CD W K • k v Q G P • p h P / .
  10. 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. i 51 6 7 2 .3 648 /1 3 8 ./ ./ d r s ? g ? h C n WP h ? l o ( e ) a D
  11. 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  12. 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. P 1 . C . • B B • BD • • •
  13. 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. + • : • P : b • C e C a 1 1 Amazon EC2 Crontab Batch process
  14. 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ? ) + • b aj l z • w • hmcbT u s g _b r o b • • (t z e i • d b AWS Lambda Scheduled Events ?) 2? C? : 2 : / :1 ? 5 C #?2 # ? : (t P Up ( : ? n v ) ( .- Up 2 ( *
  15. 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. / /: 2 • P /: m d WD clD im D • rE p j _D n _ uo S . 1 hmc kDk • t Prws ea i g C ( ) • m d zE A De m d v 1 . 3 3 / ./ / /: ./ 1/. /. 1 Scheduled Events Amazon ECS ECS Cluster Container
  16. 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. )1 1 E (2 • S S Ge • r z U ( ) u PfGc jan dh_ ef e ) .W S u ilp • em jlo e ʻ W w ( ) v Pts fGc jan dh_ 3 2 1C 1:1 2 : 1 (/- ) 1 . A 3 : Scheduled Events Amazon ECS Spot Fleet Container
  17. 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. - 1 - 1 : ( ( ( ) F • ( ( ) A C 2P hbc ri S -C : Pm h efEb h h h • p noP p s SP kt gaE v hbc t kt Pz • F E j l P Ed s u wP Scheduled Events Amazon ECS 4 - - -C : / 2- - 1 4 - - -C : / -. - 4- :1 - 2- - 1 : 1 -:0 1A1: .- 10 - /410 8 : AWS Fargate
  18. 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. e 4 : 1 P 4 n 1 • 2 + • )( 2+ ( • 2 ( • 2 ( ( • 2 ( a 3 12 1C 4 1
  19. 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  20. 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. N W I • G P N a • 2 • • AC
  21. 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • P • C C • • + : 2 a 1 2 EC2 instance EC2 instance Auto Scaling Elastic Load Balancing Game Player Amazon RDS
  22. 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A 3 3
  23. 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. http://techblog.netflix.com/2012/01/auto-scaling-in-amazon-cloud.html
  24. 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ) 2 + • A T i • ) A ( 2 2 a I : o : i IT • HI eL C ) L r • su • P b tF • m L dC n c C Game Player Amazon DynamoDB AWS Lambda Amazon API Gateway* Amazon Cognito
  25. 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 2 33 / 2 ) ( C • PS : PS g Ab a • PS A 3 / b a • e W ++ B A Ca • ) ++ A c C Elastic Load Balancing Game Player Amazon RDS Amazon ECS Auto Scaling
  26. 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 2 ) ( + • : • : 4 • • F 2 C Elastic Load Balancing Game Player Amazon RDS Amazon ECS AWS Fargate
  27. 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ) • m ) ) ( ) ) • DB P b • A r • 2PM W • A on • e aC : st A • 5 U Game Player GameSparks
  28. 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. I b a 4 5 1 1 t 4 • • +) ( • BA • 2 BA • ( 2 n P1 W 3 C e 45 4 Arsr A: 4
  29. 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  30. 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • 3 3 • C 3 • 3
  31. 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • : de 3 :n • • P t • i • R C s • 1 a r 1 Amazon ElastiCache EC2 instance EC2 instance Elastic Load Balancing Game Player Amazon RDS
  32. 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • : de 3 :n • • P t • i • R C s • 1 a r 1 2 12908 91 -8 6 2 12908 91 ( 98 2 12908 91 4 08 2 12908 91 ) 9818 2 12908 91 " 9818 -8 6 4 08 98 2 12908 91 98 4 2329 Amazon ElastiCache
  33. 33. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 1 22 • A C • • PS • a P S R • s i • 1 2 2 C e d : An A • R A ro3C I R D t EC2 instance EC2 instance Elastic Load Balancing Game Player Amazon RDS Amazon DynamoDB
  34. 34. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • 1 P C r • ae • P 31t • C • / / • : / s : / • n EC2 instance EC2 instance Game Player GameSparks or
  35. 35. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Game Leaderboard: “Score” GameSparks 1 2 Event: “Send Score” : =150 : =130 1 user1 150 2 user2 130
  36. 36. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. C : 3 1 P12 • • •
  37. 37. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  38. 38. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. C • 4 • • •
  39. 39. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ( ) • 4 P : a • N Le • • C • Le • a
  40. 40. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • C • 4 .' , ' ( .' ' ' . ' ' . ,' ' . ' , . ' ' . ' ' . ' ' ' , ) ( ) *
  41. 41. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. REST API JSONAmazon Comprehend ? NO YES %>
  42. 42. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 4 C •
  43. 43. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  44. 44. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • W • a • • W A e 5 S A W C
  45. 45. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 0 2 /. / 29092: 9 0 060 87 186 59 29092: • /. oc i ehn c Cr t ) w /. S oc a • nW c A /. i ehn c C C ) t w /. S o m S c e a • /. j p Cr ( t w /. S j p Ss z S
  46. 46. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 4 1 78 4 7 4 4:4 5 : 9 78 4 • 1 Tje u r ( 1 h sj Sje u T jo p i E • 1 T z m a h rtc z j ( rtc z j R W :4 . /8 AC z m a h • 1 a ) 1 T LEje u a 02 p R wjo n j W aox r S aox r
  47. 47. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. . ) . / :. :.- ( . )-- ) )( ) /:: 5 / :. : . . / :. :.- • o ulS F t k • ) S ) : 5 / :. : ) Fz pr Sm s j S • ei dAaA h wn • A S ei dAaA • c W C S
  48. 48. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ( )
  49. 49. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ) C ( ( D / : : B 0 0 20 2 1 2 3 DDAC C A 5 ED C DC 5: BC - A 2 t pL b e wd jsoL 8 k uLhv lnW Sa b J 2I R D 8 L i clrmLn J ) I I. 5 D O z T
  50. 50. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 5 A C 5 S W • • •
  51. 51. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  52. 52. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ml • t cr a o • WF ckh i u e ,, • A , ckh i s d S w p A t n
  53. 53. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  54. 54. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

×