Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
PHP e Windows Azure, SQL Azure
1. Microsoft Cloud Computing:
Windows Azure e lo sviluppo
con PHP e MySQL
Pietro Brambati, Microsoft
blogs.msdn.com/pietrobr
Twitter: @pietrobr
http://wippy.grusp.org
4. 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
http://wippy.grusp.org
5. 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:
AppFabric Rules-driven, claims-based access control
http://wippy.grusp.org
8. Deployment
Your
Service Service
Service Model
Service
D
N
S
L
B
Web
Portal
(API) DNS
config L
Fabric B
Controller
http://wippy.grusp.org
9. Scalabilità
Your
Service Service
D
Service
N
S
Service
Service Service
L Service
B
Service
Web Service
Portal
(API) L
Fabric B
Controller
Model
http://wippy.grusp.org
10. Service Monitoring & Recovery
Your
Service
D
Service
N
S
Service
L
B Service
Service
Web
Portal
(API) L
Fabric B
Controller
Model
http://wippy.grusp.org
11. I ruoli o tipi di applicazioni
Web Role Worker Role
Windows Server 2008 x64 Windows Server 2008 x64
IIS 7 .NET Start
ASP.NET 3.5 SP1 Native Code
FastCGI – PHP User Mode
Native Code Inbound any TCP Port
Full Trust MySQL
User Mode
http://wippy.grusp.org
13. 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
http://wippy.grusp.org
14. Demo
La mia prima applicazione per Windows Azure
Demo
http://wippy.grusp.org
15. PHP/MySQL su Windows Azure
PHP WebApp + MySQL su Windows Azure
MySQL in un worker role
• Copiare MySQL in una PHP Web
MySQL
worker role sub-directory App
• 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
Scaricate il Solution Accelerator
http://code.msdn.microsoft.com/winazuremysqlphp
http://code.msdn.microsoft.com/winazuremediawiki
http://wippy.grusp.org
17. SQL Azure: perchè migrare?
Scalabilità
Non c’è bisogno di installare patch
Alta disponibilità e fault tolerence
Facile provisioning e deploy di più database
http://wippy.grusp.org
18. da MySQL DB a SQL Azure
Usate il SQL Server Migration Assist per MySQL
MySQL SQL Azure
Database Database
SQL Server Migration Assist for MySQL
http://wippy.grusp.org
22. 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
http://wippy.grusp.org
23. 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
http://wippy.grusp.org