24
http://wippy.grusp.org Microsoft Cloud Computing: Windows Azure e lo sviluppo con PHP e MySQL Pietro Brambati, Microsoft blogs.msdn.com/pietrobr Twitter: @pietrobr

PHP e Windows Azure, SQL Azure

  • Upload
    pietro

  • View
    1.665

  • Download
    2

Embed Size (px)

Citation preview

Page 1: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

Microsoft Cloud Computing: Windows Azure e lo sviluppo con PHP e MySQL

Pietro Brambati, Microsoft

blogs.msdn.com/pietrobr

Twitter: @pietrobr

Page 2: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

Agenda

Cos’è Windows Azure?

Cosa serve per sviluppare con PHP?

Page 3: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

Il Cloud?

Page 4: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

Cos’è Windows Azure?

Server nel Data Center Microsoft

Gli sviluppatori possono

installare «servizi»

ospitare dati

Indipendenza dall’ hardware e software installato un sistema operativo per il cloud

Facilita il modo in cui creiamo applicazioni scalabili e disponibili

aumento il numero di «istanze» in esecuzione agendo su parametri di configurazione

Page 5: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

Windows Azure: la piattaforma

Compute: Virtualized compute environment based on

Windows Server

Storage: Durable, scalable, & available storage

Management:

Automated, model-driven management of the service

Database:

Relational processing for structured/unstructured data

Service Bus: General purpose application bus

Access Control: Rules-driven, claims-based access control AppFabric

Page 6: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

Windows Azure

Fabric Controller

Web Portal (API)

LB

LB

D

N

S

Your Service

Page 7: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

Slide portale WinAzure

Page 8: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

LB

LB

D

N

S

Deployment

Your Service

Fabric Controller

Web Portal (API)

Service Model Service Service

DNS config

Page 9: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

LB

LB

D

N

S

Scalabilità

Your Service

Fabric Controller

Web Portal (API)

Service

Service

Service

Model

Service

Service

Service Service

Service

Page 10: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

LB

LB

D

N

S

Service Monitoring & Recovery

Your Service

Fabric Controller

Web Portal (API)

Service

Service

Service

Model

Service

Page 11: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

I ruoli o tipi di applicazioni

Windows Server 2008 x64

IIS 7

ASP.NET 3.5 SP1

FastCGI – PHP

Native Code

Full Trust

User Mode

Windows Server 2008 x64

.NET Start

Native Code

User Mode

Inbound any TCP Port

MySQL

Web Role Worker Role

Page 12: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

Come faccio da PHP?

Page 13: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

PHP e MySQL Tool per Windows Azure

Eclipse Galileo with PDT

Windows Azure SDK Feb 2010 release

Windows Azure Tools for Eclipse

PHP 5.2.12

MySQL for Windows v5.1

MySQL ODBC Connector v5.2

SQL Server Driver for PHP v 1.1

SQL Server Migration Assist 2008 for MySQL v1 CTP1

Windows Azure MySQL PHP Solution Accelerator

Page 14: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

Demo

La mia prima applicazione per Windows Azure

Demo

Page 15: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

MySQL in un worker role

• Copiare MySQL in una

worker role sub-directory

• Copiare in un read-write

local storage

• Configurare MySQL per

fare rimanere in ascolto su

una porta

• Monitor MySQL health

Usare MySQL

• via IP address e porta

PHP Web

App MySQL

PHP/MySQL su Windows Azure PHP WebApp + MySQL su Windows Azure

Scaricate il Solution Accelerator

http://code.msdn.microsoft.com/winazuremysqlphp

http://code.msdn.microsoft.com/winazuremediawiki

Page 16: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

Demo

Solution Accelertor per MySQL

Demo

Page 17: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

SQL Azure: perchè migrare?

Scalabilità

Non c’è bisogno di installare patch

Alta disponibilità e fault tolerence

Facile provisioning e deploy di più database

Page 18: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

da MySQL DB a SQL Azure Usate il SQL Server Migration Assist per MySQL

SQL Azure

Database

SQL Server Migration Assist for MySQL

MySQL

Database

Page 19: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

Demo

Da MySQL a SQL Azure

Demo

Page 20: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

Command-line Tools

PHP Application

PHP Core

PHP Extensions

Windows Azure Command-line Tool for PHP

Windows Azure

Deployment Package

(cspkg + configuration)

Windows Azure Command-line Tool for PHP

March 2010 CTP

http://azurephptools.codeplex.com/ Download

Page 21: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

Demo

Tool da riga di comando

Demo

Page 22: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

Altri Windows Azure SDKs per PHP

Windows Azure SDK

Storage e Management APIs

Windows Azure AppFabric SDK

APIs per il Service Bus e gli Access Control Services

WCF Data Services PHP Toolkit

APIs per il Service Bus e gli Access Control Services

More Information and Download Links

http://www.azure.com/interop

http://www.interoperabilitybridges.com

Page 23: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org

Risorse

• Windows Azure Tools for Eclipse:

• http://www.interoperabilitybridges.com/projects/windows-azure-tools-for-eclipse

• Windows Azure MySQL PHP accelerator:

• http://code.msdn.microsoft.com/winazuremysqlphp

• Microsoft SQL Server Migration Assistant 2008 for MySQL v1.0 CTP1

• http://www.microsoft.com/downloads/details.aspx?FamilyID=0e6168b0-2d0c-4076-96c2-60bd25294a8e&displaylang=en

• Command Line Tools for PHP e Azure

• http://azurephptools.codeplex.com/

• MYSQL Running

• http://www.joshholmes.com/blog/2010/02/09/gettingmysqlrunningonazure

Page 24: PHP e Windows Azure, SQL Azure

http://wippy.grusp.org