Post on 28-May-2020
transcript
佐藤直生 (さとうなおき)Twitter @satonaoki
Facebook satonaoki
http://satonaoki.wordpress.com/
2010年、Windows Azureのエバンジェリストとして、マイクロソフトに参画
以前は、オラクルでJavaエバンジェリストとして活動
Twitter 公式ハッシュ タグ
#javafesta
はじめに…
• アンケートにご協力ください• 記入したアンケートは受付に
• 質問があれば、セッション後にお気軽にどうぞ
• おみやげ (クラウディア グッズ、Tシャツ) 差し上げます
本セッションのテーマWindows Azure を活用した Windows 8 アプリケーション開発
• Windows Azure の最新情報、Windows 8向けのWindows ストアアプリケーション開発の概要、「Windows Azure Mobiles Services」を使った効率的なWindows ストアアプリケーション開発について、ご紹介します。
本セッションの内容
• Windows Azure アップデート
• Windows 8 開発
• Windows Azure Mobile Servicesによる、Windows Azure &Windows 8開発
Windows Azure
SDK 1.1 SDK 1.3 SDK 1.5 SDK 1.7
Windows Azure
クラウド サービス
仮想マシン ( IaaS )
Windows Server 2012
Start Simple
無料で始めて簡単拡張
数秒で準備が完了
ビルトインの監視機能
Go LiveCode Smart
SQL データベース
NoSQL データベース
3多重
スキーマレス
REST API
大量の動画や画像に最適
3多重 + DC間複製
REST API
CDN 対応
単純なセットアップと管理
E2E セキュリティ
迅速なプロビジョニング
簡易的完全な制御
スケーラブル
複雑なシナリオに対応
エンタープライズ向け
ハイブリッドな基盤構築と運用
仮想ネットワーク
キャッシュ
Web インスタンス間でセッション状態とデータを共有
データ層からの読み込み負荷を軽減
メディア サービス
エンコーディング
新機能まとめ
各開発言語, Mac/Linux向け SDK
SQL レポートローカル冗長ストレージ
インメモリキャッシュ 仮想マシン
Web サイト
仮想ネットワーク
メディア
本セッションの内容
• Windows Azure アップデート
• Windows 8 開発
• Windows Azure Mobile Servicesによる、Windows Azure &Windows 8開発
このパートのスライドは非公開です…
本セッションの内容
• Windows Azure アップデート
• Windows 8 開発
• Windows Azure Mobile Servicesによる、Windows Azure &Windows 8開発
Windows Azure Mobile Services とは?
キーとなるシナリオWindows Azure Mobile Services が向いているのは:
構造化されたストレージの利用Windows Azure SQL Database
単一のデータベースアプリはスキーマで分割可能AppX.Todoitem
AppY.Todoitem
データの管理は下記いずれでも可能ポータル上
SQL 管理ポータル
SQL Management Studio
REST API…
サーバー側ロジック
ストレージ用に自動生成されるサービス用 REST API
Dynamic な Schema の On/Off が可能
CRUD 操作に対するサーバー側ロジック追加が可能
高度なクエリーの利用が可能
サーバー側ロジック
サポートされたモジュール + Globals
mssql
request
console
push
tables
statusCodes
mssql.query('select top 1 * from statusupdates',
{ success: function(results) {
console.log(results);
}
}
);
REST API と SQL 型とのマッピング
JSON Value T-SQL Type
Numeric values (integer, decimal, floating point)
Float
Boolean Bit
DateTime DateTimeOffset(3)
String Nvarchar(max)
Push 通知ライフサイクル概要
• 1. チャネル URI を要求
• 2. クラウド サービスに登録
• 3. 認証とプッシュ通知
Cloud Service
Push 通知
Windows Notification Services (WNS) を使ってToast、Tile、および Badge の各通知を提供
Portal を使って
WNS Client に SID をセキュアにパッケージ
push.wns.* が提供するのは:
・プッシュ通知を構成するための
クリーンで簡単なオブジェクトモデル・WNS を使った認証
認証*Windows Live を使用した認証
個々の CRUD 操作に対するTable レベルのパーミッション付与
Everyone
Anyone with the Application Key
Only Authenticated Users
Only Scripts and Admins
サーバー側スクリプトを使用した更に粒度の細かい制御
user.level: {admin, authenticated, anonymous}
user.userId: id or undefined if not authenticated
Diagnostics、その他の機能
DiagnosticsAPI 呼び出しCPU 時間Data 出力
Loggingconsole.error(…)console.log(…)…
Scale - Computeインスタンスを増やしてスケールアウトVM サイズのスケールアップ
Scale - StorageMobile Services テナントの専用 SQL Database への変更SQL Database のスケールアップ
Start Windows Azure
http://WindowsAzure.com
90 日 無料評価版開発者向け情報
Web 開発企業
月 375 時間まで
最大 3 年間
無償
スタートアップ企業
月 1,500 時間まで
Windows ストアアプリ開発支援最新情報は常にこちら→ http://www.facebook.com/5Metro
Developer
Camp
Application
Excellence Lab
http://aka.ms/devcampJP
http://aka.ms/AELjp
テンプレート& 素材集 http://msdn.microsoft.com/ja-jp/jj556277
まとめ
クラウド移行を可能にするシナリオを大幅に拡大
より多くのお客様のクラウド移行を支援
Window 8アプリのバックエンドとしても最適
最後に…
• アンケートにご協力ください• 記入したアンケートは受付に
• 質問があれば、お気軽にどうぞ• おみやげ (クラウディア グッズ、
Tシャツ) 差し上げます
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the
part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.