25
クラウドはもう目の前! PHP on Windows Azure ~PHPをクラウドにどう載せる? どう使う? ~ 日本マイクロソフト株式会社 物江 修 Blog: http://blogs.msdn.com/osamum Twitter : osamum_MS

Php conference2011 kansai

Embed Size (px)

DESCRIPTION

2011 PHPカンファレンス関西

Citation preview

Page 1: Php conference2011 kansai

クラウドはもう目の前! PHP on Windows Azure ~PHPをクラウドにどう載せる? どう使う? ~

日本マイクロソフト株式会社 物江 修 Blog: http://blogs.msdn.com/osamum Twitter : osamum_MS

Page 2: Php conference2011 kansai

アジェンダ

Windows Azure とは?

Windows Azure の構成

Windows Azure へ PHP 配置方法

まとめ

Page 3: Php conference2011 kansai

Windows Azure とは

Page 4: Php conference2011 kansai

Windows Azure Platform の構成

Windows Azure Platform

Page 5: Php conference2011 kansai

Windows Azure の構成

ファブリック (ハードウェア リソースの管理)

コンピューティング (VM の実行)

ストレージ (記憶域サービス)

・・・

Page 6: Php conference2011 kansai

Windows Azure の構成と動作

ファブリック

コンピューティング ストレージ

・・・

アプリケーション

構成

Page 7: Php conference2011 kansai

Windows Azure の構成

ファブリック (ハードウェア リソースの管理)

コンピューティング (VM の実行)

ストレージ (記憶域サービス)

・・・

Page 8: Php conference2011 kansai

Azure コンピューティングのロール

HTTP /HTTPS

NLB

仮想マシン

VHD

VM ロール

Web サーバー

IIS 7.x

バックグラウンド ジョブ

Worker ロール Web ロール

キュー

Page 9: Php conference2011 kansai

Windows Azure の構成

ファブリック (ハードウェア リソースの管理)

コンピューティング (VM の実行)

ストレージ (記憶域サービス)

・・・

Page 10: Php conference2011 kansai

Azure ストレージの種類

ブロック

BLOB ブロック

ブロック

コンテナ

ページ

BLOB

エンティティ

エンティティ

エンティティ

メッセージ

メッセージ

メッセージ

メッセージ

BLOB テーブル キュー

REST, .NET xxx.blob.core.windows.net

REST, .NET xxx.table.core.windows.net

REST, .NET xxx. queue.core.windows.net

Windows Azure Drive

ページ

ページ プロパティ

プロパティ

Page 11: Php conference2011 kansai

Azure ストレージの種類

ブロック

BLOB ブロック

ブロック

コンテナ

ページ

BLOB

エンティティ

エンティティ

エンティティ

メッセージ

メッセージ

メッセージ

メッセージ

BLOB テーブル キュー

REST, .NET xxx.blob.core.windows.net

REST, .NET xxx.table.core.windows.net

REST, .NET xxx. queue.core.windows.net

Windows Azure Drive

メッセージキュー

ページ

ページ

バイナリ―ストア

プロパティ

プロパティ

キーバリュー型 テーブル

Page 12: Php conference2011 kansai

Azure ストレージ 種類別用途 • BLOB

• ファイルなどのバイナリ データーの保存

• 複数ブロック/ページに分割可能

• テーブル • ブロブより粒度の細かいデーターを扱う

• エンティティーと型情報を持つプロパティの単純な階層

• キュー • メッセージ交換に利用

Page 13: Php conference2011 kansai

コントロール パネルから見る Windows Azure の構造

Page 14: Php conference2011 kansai

Windows Azure への PHP アプリケーションの配置

• ツール Eclipse

+ Windows Azure Tools for Eclipse

(WindowsAzure4e)

• 方法 • ツールから直接 • パッケージを作成

Page 15: Php conference2011 kansai

WindowsAzure4e の概要

• Eclipse PDT がベース

• 機能 • Azure プロジェクトの作成

• デバッグ機能

• ストレージ エクスプローラによる

ストレージ管理

• コードの入力補完機能

• 構文のハイライト表示

• Windows Azure への発行

Page 16: Php conference2011 kansai

WindowsAzure4e のインストール

http://www.windowsazure4e.org/update

Page 17: Php conference2011 kansai

Eclipse による Azure プロジェクト作成と Windows Azure への配置

Page 18: Php conference2011 kansai

Windows Azure への OSS アプリケーションの配置

• Windows Azure Companion • MSDN からパッケージを入手 • Azure にインストールして使用

http://archive.msdn.microsoft.

com/azurecompanion

Page 19: Php conference2011 kansai

Windows Azure Companion による Windows Azure への OSS アプリケーションのインストール

Page 20: Php conference2011 kansai

Windows Azure への配置の 注意点

・・

すべての リクエストが 負荷分散されるので

要ツール、 もしくはパッケージ

Page 21: Php conference2011 kansai

まとめ

OSS アプリケーション

プログラム

Page 22: Php conference2011 kansai

Web サイト作成ツール

統合インストーラー

PHP に関連する Web 開発ツール

Web Platform Installer

http://www.microsoft.com/web

Page 23: Php conference2011 kansai

参考 #1

Windows Azure Platform http://www.microsoft.com/japan/windowsazure/

Windows Azure Tools for Eclipse http://www.windowsazure4e.org/

Windows Azure Companion http://archive.msdn.microsoft.com/azurecompanion

Windows Azure SDK for PHP http://phpazure.codeplex.com/

Page 24: Php conference2011 kansai

参考 #2 PHP on Windows ガイドライン (ドラフト)

http://technet.microsoft.com/ja-jp/iis/gg535422/

monoe’s blog http://blogs.msdn.com/osamum

Open Source Web Apps with Microsoft Technology

http://hirookunwp.wordpress.com/

Microsoft /web http://www.microsoft.com/web

Page 25: Php conference2011 kansai

© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista 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.