亚马逊AWS 基于AWS云平台的游戏架构最佳实践

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

©2014Amazon.com,Inc.anditsaffiliates.Allrightsreserved.Maynotbecopied,modified,ordistributedinwholeorinpartwithouttheexpressconsentofAmazon.com,Inc.Traditional:RigidAWS:ElasticServersDemandCapacityExcessCapacityWasted$$DemandUnmetDemandUpsetPlayersMissedRevenue:(11Regions52EdgeLocationsContinuousExpansion关注于游戏设计本身ELB•Chooseregion•=2AvailabilityZones•AmazonEC2forapp•ElasticLoadBalancing•AmazonRDSdatabase•Multi-AZRegion•AmazonS3forgamedata•Assets•UGC•Analytics•...withCloudFront!•AutoScalingGroup•Capacityondemand•Respondtousers•Automatichealing•AmazonElastiCache•Memcached•Redis•RDSread-replicaELBRegionCloudFrontCDN•Gamesarewriteheavy•Cachingoflimiteduse•Keyvaluepair•Binarystructures•Database=bottleneckELBRegionCloudFrontCDN(notfun)A-ZN-ZA-HI-PELBRegionCloudFrontCDN•Fully-managed•NoSQLdatastore•Provisionedthroughput•Secondaryindexes•PUT/GETkeys•DocumentSupport!•400KBItems•AutoScaling(OSS)ELBRegionCloudFrontCDN全球部署、快速扩展“大世界”高性能、低延迟资源弹性按需伸缩MMO实战模拟:武士对决://bit.ly/superdata-latency100+ms100+ms100+ms100+ms1.GameserversHTTPGameAPIsTokyoOregonFrankfurtVirginiaVPCSubnetVPCSubnetAvailabilityZoneAAvailabilityZoneBVPCSubnetVPCSubnetAutoScalinggroupWEBVPCSubnetWEBJOBSRegion①LoginviaHTTPAPI②DownloadGameAssets③MatchmakingtoGameServerEC2EC2EC2Region①LoginviaHTTPAPI②DownloadGameAssets③MatchmakingtoGameServer④ConnecttoServer⑤HackApartYourFriends⑥GameOverEC2EC2Region①LoginviaHTTPAPI②DownloadGameAssets③MatchmakingtoGameServer④ConnecttoServer⑤HackApartYourFriends⑥GameOver⑦WriteviaHTTPAPIEC2EC2VPCPrivateSubnetVPCPublicSubnetAvailabilityZoneAAvailabilityZoneBVPCPublicSubnetVPCPrivateSubnetGAMEGAMEGAMEGAMEGAMEGAMETokyoOregonFrankfurtVirginia??VPCSubnetAvailabilityZoneAAvailabilityZoneBVPCSubnetAutoScalinggroupWEBWEBOregonTokyoVPCSubnetJOBSRegion•GameAPIbackendpods•Coresession•Matchmaking•S3+CloudFront•DLC,assets•Gamesaves•UGC•Gameserverpod(publicsubnet)•Directclientsocket•Scaleonplayers①LoginviaAPI②Requestmatchmaking③GetgameserverIPRegion①LoginviaAPI②Requestmatchmaking③GetgameserverIP④Connecttoserver⑤Pulldownassets⑥OtherplayersjoinRegionRegionAEC2APIRegionBEC2APIVPCPrivateSubnetVPCPublicSubnetAvailabilityZoneAS3BucketAmazonCloudWatchLogsGAMEGAMEGAMEVPCPrivateSubnetVPCPublicSubnetAvailabilityZoneAAmazonKinesisS3BucketAmazonRedshiftGAMEGAMEGAME://bit.ly/linux-tuningBefore:HypervisorAfter:HardwareIntel®Xeon®v3•Haswellmicroarchitecture•PstateandCstatecontrolgameserverstatelessjennysun@amazon.com

1 / 40
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功