SlideShare una empresa de Scribd logo
1 de 20
Descargar para leer sin conexión
Amazon  Data  Service  Japan  K.K.
Solutions  Architect
Keisuke  Nishitani(@Keisuke69)
UnityとAmazon  Web  Services
で⽣生み出す新しい価値
⾃自⼰己紹介
•  ⻄西⾕谷圭介
–  @Keisuke69
–  www.facebook.com/keisuke69
•  ロール
–  ソリューションアーキテクト
–  Webサービス  /  スタートアップを
担当
–  モバイルなどアプリ寄りなプロダク
トを担当
と⾔言えば
プログラマブルとは?
•  クラウドはAPIでコントロールできるのが当た
り前
•  AWSの場合、ほぼ全てのサービスにAPIがある
•  ネットワークからプラットフォーム⾃自体まで、
どのレイヤもプログラマのコンテキストでコン
トロールできる
つまり全てが意のままに
AWS  SDK
開発者の環境(サーバやバッチ処理理ワーカーなど)で動かすコードで利利⽤用
Android iOS
Java NodeJS .NET PHP Python Ruby
Javascript
in  
Browser
エンドユーザの端末あるいはサービスのクライアント側で動くコードで利利⽤用
クライアント側SDK
AWS  SDK
開発者の環境(サーバやバッチ処理理ワーカーなど)で動かすコードで利利⽤用
Android iOS
Java NodeJS .NET PHP Python Ruby
Javascript
in  
Browser
エンドユーザの端末あるいはサービスのクライアント側で動くコードで利利⽤用
クライアント側SDK
AWS  Mobile  SDK
AWS  Mobile  SDK  for  Unity
•  クロスプラットフォームなゲーム開発環境として⼈人気の
⾼高いUnityのPlugin
–  .NETベースのクラス群で構成
–  Unityで書かれたゲームからAWSサービスをコールすることが簡単に
•  利利⽤用可能なサービス
–  Amazon  Cognito
–  Amazon  S3
–  Amazon  DynamoDB
–  Amazon  Mobile  Analytics
–  Amazon  SNS
•  Unity4.0以降降をサポート
AWS  Mobile  SDK  for  Unity
•  サービスごとのUnityパッケージ
–  aws-‐‑‒unity-‐‑‒sdk-‐‑‒dynamodb-‐‑‒x.x.x.x.unitypackage
–  aws-‐‑‒unity-‐‑‒sdk-‐‑‒mobileanalytics-‐‑‒x.x.x.x.unitypackage
–  aws-‐‑‒unity-‐‑‒sdk-‐‑‒s3-‐‑‒x.x.x.x.unitypackage
–  aws-‐‑‒unity-‐‑‒sdk-‐‑‒cognitosync-‐‑‒x.x.x.x.unitypackage
•  必要なパッケージだけを導⼊入できる
使い⽅方
awsconfig.xml
<aws region="us-west-2"
<logging logTo="SystemDiagnostics"
logResponses="Always"
logMetrics="true" logMetrics="true" />
<s3 useSignatureVersion4="true" />
<mobileAnalytics sessionTimeout = "5"
maxDBSize = "5242880"
dbWarningThreshold = "0.9"
maxRequestSize = "102400"
allowUseDataNetwork = "false"/>
/>
•  AWS  SDK  for  Unityの設定ファイル
•  ログ設定やS3のシグネチャバージョンなどを設定
•  HTTPレスポンスを出⼒力力したり、リクエストのパフォーマンス状況を出⼒力力
したり
•  そのほか各サービスごとの設定も
サンプル:S3でオブジェクトを取得
private  IAmazonS3  _s3Client;
private  AWSCredentials  _credentials;
private  void  GetObject() {
_credentials = new CognitoAWSCredentials(IdentityPoolId,  RegionEndpoint.USEast1);
_s3Client = new AmazonS3Client(Credentials, RegionEndpoint.USEast1);
ResultText.text = string.Format("fetching {0} from bucket {1}”,SampleFileName,S3BucketName);
Client.GetObjectAsync(S3BucketName, SampleFileName, (responseObj)  => {
string data = null;
var response = responseObj.Response;
if (response.ResponseStream != null){
using (StreamReader reader = new StreamReader(response.ResponseStream)){
data = reader.ReadToEnd();
}
ResultText.text  +=  "n";
ResultText.text  +=  data;
}
})
}
2-‐‑‒Tier  Architecture
仮想サーバー(EC2)を利利⽤用せずに、クライアントから直接  AWS  のサービスを利利⽤用する。
2-‐‑‒Tier  アーキテクチャとは?
従来  アーキテクチャ 2-‐‑‒Tier  アーキテクチャ
・認証API
・データ保存API
Amazon  Cognito
(認証)
Amazon  DynamoDB
(データ保存)
Web DB
バッチ
プッシュ通知
Amazon  SNS  MobilePush
(プッシュ通知)プッシュ通知
AWS  Lambda
(ロジック)
LB
参考資料料
•  ダウンロード
https://s3.amazonaws.com/aws-‐‑‒unity-‐‑‒sdk/latest/aws-‐‑‒unity-‐‑‒sdk.zip
•  ソースコード
https://github.com/aws/aws-‐‑‒sdk-‐‑‒unity
•  Developer  Guide
http://docs.aws.amazon.com/mobile/sdkforios/developerguide/index.html
•  SDK  Reference
http://docs.aws.amazon.com/AWSiOSSDK/latest/
•  Samples
https://github.com/awslabs/aws-‐‑‒sdk-‐‑‒ios-‐‑‒samples
UnityとAmazon Web Servicesで生み出す新しい価値

Más contenido relacionado

La actualidad más candente

ゼロから始めるモバイルアプリ開発 / 
 AWS Mobile Hubハンズオン 本編
ゼロから始めるモバイルアプリ開発 / 
 AWS Mobile Hubハンズオン 本編ゼロから始めるモバイルアプリ開発 / 
 AWS Mobile Hubハンズオン 本編
ゼロから始めるモバイルアプリ開発 / 
 AWS Mobile Hubハンズオン 本編
Koichiro Nishijima
 

La actualidad más candente (20)

Serverless Architecture on AWS (20151201版)
Serverless Architecture on AWS (20151201版)Serverless Architecture on AWS (20151201版)
Serverless Architecture on AWS (20151201版)
 
クラウドネイティブなアーキテクチャでサクサク解析
クラウドネイティブなアーキテクチャでサクサク解析クラウドネイティブなアーキテクチャでサクサク解析
クラウドネイティブなアーキテクチャでサクサク解析
 
ゼロから始めるモバイルアプリ開発 / 
 AWS Mobile Hubハンズオン 本編
ゼロから始めるモバイルアプリ開発 / 
 AWS Mobile Hubハンズオン 本編ゼロから始めるモバイルアプリ開発 / 
 AWS Mobile Hubハンズオン 本編
ゼロから始めるモバイルアプリ開発 / 
 AWS Mobile Hubハンズオン 本編
 
Scale Your Business without Servers
Scale Your Business without ServersScale Your Business without Servers
Scale Your Business without Servers
 
Amazon Cognito Deep Dive @ JAWS DAYS 2016
Amazon Cognito Deep Dive @ JAWS DAYS 2016Amazon Cognito Deep Dive @ JAWS DAYS 2016
Amazon Cognito Deep Dive @ JAWS DAYS 2016
 
AWS meets Android - "AWS SDK for Android"で開発を楽にしよう!
AWS meets Android - "AWS SDK for Android"で開発を楽にしよう!AWS meets Android - "AWS SDK for Android"で開発を楽にしよう!
AWS meets Android - "AWS SDK for Android"で開発を楽にしよう!
 
クラウド時代のソフトウェアアーキテクチャ
クラウド時代のソフトウェアアーキテクチャクラウド時代のソフトウェアアーキテクチャ
クラウド時代のソフトウェアアーキテクチャ
 
AWSで実現するクラウドネイティブなアプリ開発のポイント
AWSで実現するクラウドネイティブなアプリ開発のポイントAWSで実現するクラウドネイティブなアプリ開発のポイント
AWSで実現するクラウドネイティブなアプリ開発のポイント
 
クラウド・アプリケーションの作り方
クラウド・アプリケーションの作り方クラウド・アプリケーションの作り方
クラウド・アプリケーションの作り方
 
Automated Testing on AWS Device Farm
Automated Testing on AWS Device FarmAutomated Testing on AWS Device Farm
Automated Testing on AWS Device Farm
 
AWS Introduction for Startups
AWS Introduction for StartupsAWS Introduction for Startups
AWS Introduction for Startups
 
AWS Lambda / Amazon API Gateway Deep Dive
AWS Lambda / Amazon API Gateway Deep DiveAWS Lambda / Amazon API Gateway Deep Dive
AWS Lambda / Amazon API Gateway Deep Dive
 
Mobile Hubで変わる、アプリ開発最前線
Mobile Hubで変わる、アプリ開発最前線Mobile Hubで変わる、アプリ開発最前線
Mobile Hubで変わる、アプリ開発最前線
 
PHP で始める AWS モバイルサービス - PHPカンファレンス_20150530
PHP で始める AWS モバイルサービス - PHPカンファレンス_20150530PHP で始める AWS モバイルサービス - PHPカンファレンス_20150530
PHP で始める AWS モバイルサービス - PHPカンファレンス_20150530
 
AWS IoTアーキテクチャパターン
AWS IoTアーキテクチャパターンAWS IoTアーキテクチャパターン
AWS IoTアーキテクチャパターン
 
Serverless Revolution
Serverless RevolutionServerless Revolution
Serverless Revolution
 
[AWS初心者向けWebinar] AWSを活用したモバイルアプリの開発と運用
[AWS初心者向けWebinar] AWSを活用したモバイルアプリの開発と運用[AWS初心者向けWebinar] AWSを活用したモバイルアプリの開発と運用
[AWS初心者向けWebinar] AWSを活用したモバイルアプリの開発と運用
 
Amazon Mobile Analyticsのいろは
Amazon Mobile AnalyticsのいろはAmazon Mobile Analyticsのいろは
Amazon Mobile Analyticsのいろは
 
クラウドネイティブが行なういまどきWebサービス開発
クラウドネイティブが行なういまどきWebサービス開発クラウドネイティブが行なういまどきWebサービス開発
クラウドネイティブが行なういまどきWebサービス開発
 
Ad Tech on AWS - IVS CTO Night and Day Spring 2016
Ad Tech on AWS - IVS CTO Night and Day Spring 2016Ad Tech on AWS - IVS CTO Night and Day Spring 2016
Ad Tech on AWS - IVS CTO Night and Day Spring 2016
 

Similar a UnityとAmazon Web Servicesで生み出す新しい価値

Architecting+for+high+availability
Architecting+for+high+availabilityArchitecting+for+high+availability
Architecting+for+high+availability
anzhong70
 
Architectingforhighavailability 170629010328
Architectingforhighavailability 170629010328Architectingforhighavailability 170629010328
Architectingforhighavailability 170629010328
anzhong70
 

Similar a UnityとAmazon Web Servicesで生み出す新しい価値 (20)

Gaming cicd-pipeline gaming-technight-2
Gaming cicd-pipeline gaming-technight-2Gaming cicd-pipeline gaming-technight-2
Gaming cicd-pipeline gaming-technight-2
 
Going Serverless, Building Applications with No Servers
Going Serverless, Building Applications with No ServersGoing Serverless, Building Applications with No Servers
Going Serverless, Building Applications with No Servers
 
Serverless for VUI
Serverless for VUIServerless for VUI
Serverless for VUI
 
20190201 Cloud Native Kansai AKS Azure
20190201 Cloud Native Kansai AKS Azure20190201 Cloud Native Kansai AKS Azure
20190201 Cloud Native Kansai AKS Azure
 
Windows 開発者のための Dev&Ops on AWS
Windows 開発者のための Dev&Ops on AWSWindows 開発者のための Dev&Ops on AWS
Windows 開発者のための Dev&Ops on AWS
 
Running Java Apps with Amazon EC2, AWS Elastic Beanstalk or Serverless
Running Java Apps with Amazon EC2, AWS Elastic Beanstalk or ServerlessRunning Java Apps with Amazon EC2, AWS Elastic Beanstalk or Serverless
Running Java Apps with Amazon EC2, AWS Elastic Beanstalk or Serverless
 
ハイブリットクラウド環境におけるモダンアプリケーション開発
ハイブリットクラウド環境におけるモダンアプリケーション開発ハイブリットクラウド環境におけるモダンアプリケーション開発
ハイブリットクラウド環境におけるモダンアプリケーション開発
 
Smart store servlerless-20191030-40min
Smart store servlerless-20191030-40minSmart store servlerless-20191030-40min
Smart store servlerless-20191030-40min
 
.NET の今と未来 ~ デバイス&クラウド ネイティブを目指して
.NET の今と未来 ~ デバイス&クラウド ネイティブを目指して.NET の今と未来 ~ デバイス&クラウド ネイティブを目指して
.NET の今と未来 ~ デバイス&クラウド ネイティブを目指して
 
Ecsとlambdaのバッチ処理
Ecsとlambdaのバッチ処理Ecsとlambdaのバッチ処理
Ecsとlambdaのバッチ処理
 
Azure DevOps 関西 2019 - Overview
Azure DevOps 関西 2019 - OverviewAzure DevOps 関西 2019 - Overview
Azure DevOps 関西 2019 - Overview
 
MicrosoftのOSSへの取り組み
MicrosoftのOSSへの取り組みMicrosoftのOSSへの取り組み
MicrosoftのOSSへの取り組み
 
[Japan Tech summit 2017] APP 001
[Japan Tech summit 2017] APP 001[Japan Tech summit 2017] APP 001
[Japan Tech summit 2017] APP 001
 
Azure Stack Hybrid DevOpsデモンストレーション
Azure Stack Hybrid DevOpsデモンストレーションAzure Stack Hybrid DevOpsデモンストレーション
Azure Stack Hybrid DevOpsデモンストレーション
 
サーバーレスの今とこれから
サーバーレスの今とこれからサーバーレスの今とこれから
サーバーレスの今とこれから
 
.NETアプリケーションのクラウド最適化
.NETアプリケーションのクラウド最適化.NETアプリケーションのクラウド最適化
.NETアプリケーションのクラウド最適化
 
Architecting+for+high+availability
Architecting+for+high+availabilityArchitecting+for+high+availability
Architecting+for+high+availability
 
Code for Japan 勉強会 Vol.1 CKAN入門 プロジェクトのFork、デプロイ、CIまで
Code for Japan 勉強会 Vol.1 CKAN入門 プロジェクトのFork、デプロイ、CIまでCode for Japan 勉強会 Vol.1 CKAN入門 プロジェクトのFork、デプロイ、CIまで
Code for Japan 勉強会 Vol.1 CKAN入門 プロジェクトのFork、デプロイ、CIまで
 
Architectingforhighavailability 170629010328
Architectingforhighavailability 170629010328Architectingforhighavailability 170629010328
Architectingforhighavailability 170629010328
 
Infrastructure as Code (IaC) 談義 2022
Infrastructure as Code (IaC) 談義 2022Infrastructure as Code (IaC) 談義 2022
Infrastructure as Code (IaC) 談義 2022
 

Más de Keisuke Nishitani

Más de Keisuke Nishitani (17)

Application Lifecycle Management in a Serverless World
Application Lifecycle Management in a Serverless WorldApplication Lifecycle Management in a Serverless World
Application Lifecycle Management in a Serverless World
 
Serverless Anti-Patterns
Serverless Anti-PatternsServerless Anti-Patterns
Serverless Anti-Patterns
 
AWSでアプリ開発するなら 知っておくべこと
AWSでアプリ開発するなら 知っておくべことAWSでアプリ開発するなら 知っておくべこと
AWSでアプリ開発するなら 知っておくべこと
 
Tune Up AWS Lambda
Tune Up AWS LambdaTune Up AWS Lambda
Tune Up AWS Lambda
 
What's new with Serverless
What's new with ServerlessWhat's new with Serverless
What's new with Serverless
 
Introduction to AWS X-Ray
Introduction to AWS X-RayIntroduction to AWS X-Ray
Introduction to AWS X-Ray
 
Introducing Amazon Rekognition, Amazon Polly and Amazon Lex
Introducing Amazon Rekognition, Amazon Polly and Amazon LexIntroducing Amazon Rekognition, Amazon Polly and Amazon Lex
Introducing Amazon Rekognition, Amazon Polly and Amazon Lex
 
What's new with Serverless
What's new with ServerlessWhat's new with Serverless
What's new with Serverless
 
AWSのサーバレス関連アップデートを10分で紹介します
AWSのサーバレス関連アップデートを10分で紹介しますAWSのサーバレス関連アップデートを10分で紹介します
AWSのサーバレス関連アップデートを10分で紹介します
 
AWS Lambda Updates
AWS Lambda UpdatesAWS Lambda Updates
AWS Lambda Updates
 
Building Scalable Application on the Cloud
Building Scalable Application on the CloudBuilding Scalable Application on the Cloud
Building Scalable Application on the Cloud
 
Androidを中心に紐解くIoT
Androidを中心に紐解くIoTAndroidを中心に紐解くIoT
Androidを中心に紐解くIoT
 
RESTful API 入門
RESTful API 入門RESTful API 入門
RESTful API 入門
 
Serverless Architecture on AWS(20151023版)
Serverless Architecture on AWS(20151023版)Serverless Architecture on AWS(20151023版)
Serverless Architecture on AWS(20151023版)
 
AWS Lambda Update
AWS Lambda UpdateAWS Lambda Update
AWS Lambda Update
 
RubyとAmazon Web Service で生み出す新しい価値
RubyとAmazon Web Serviceで生み出す新しい価値RubyとAmazon Web Serviceで生み出す新しい価値
RubyとAmazon Web Service で生み出す新しい価値
 
AWS Lambdaを紐解く
AWS Lambdaを紐解くAWS Lambdaを紐解く
AWS Lambdaを紐解く
 

UnityとAmazon Web Servicesで生み出す新しい価値