Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Windows Azure Platform + PHP - Jonathan Wong
1. Windows Azure Platform + PHP Jonathan Wong Microsoft Innovation Centre Singapore innovativesingapore.com | twitter.com/innovativesg
2. The Non-Cloud View Allocated IT-capacities Load Forecast “Under-supply“ of capacities “Waste“ of capacities Fixed cost of IT-capacities IT CAPACITY Barrier for innovations ActualLoad TIME
3. Load Forecast Allocated IT capacities No “under-supply“ IT CAPACITY Reduction of “over-supply“ Possible reduction of IT-capacities in case of reduced load Reduction of initial investments ActualLoad TIME However, In a Cloud View
4. The Microsoft Cloud ~100 Globally Distributed Data Centers Quincy, WA Chicago, IL San Antonio, TX Dublin, Ireland Generation 4 DCs
15. How does Windows Azure Work with PHP? Running PHP in Windows Azure
16. Running PHP in Windows Azure How to Do It Host in Web role (like .NET) Supply PHP runtime Point to runtime via FastCGI configuration in Web.config Web.roleconfig PHP Web Role Instance 1 VIP Load Balancer PHP Web Role Instance 2
17. This is all you need! elloCloudPHP ServiceDefinition.csdef ServiceConfiguration.cscfg ebRole web.roleconfig web.config hp index.php <your php application> etc... Make sure you change your php.ini to use relative paths!
18. How does Windows Azure Work with PHP? Running PHP in Windows Azure Windows Azure Tools for Eclipse Windows Azure Command Line Tools for PHP
20. Windows Azure Command-Line Tools for PHP Create new applications or convert existing PHP applications to Windows Azure applications Deploy to Local Development Fabric or the Windows Azure Cloud No IDE required http://azurephptools.codeplex.com/
21. Windows Azure Command-Line Tools for PHP C:gt;php package.php --project=MyProject --source=..hp_sourcebr />--phpRuntime="C:rogram FilesHP --target="..orkspace --runDevFabric
22. How does Windows Azure Work with PHP? Running PHP in Windows Azure Windows Azure Tools for Eclipse Windows Azure Command Line Tools for PHP PHP with Windows Azure Storage PHP with SQL Azure
23. PHP + Cloud Storage Windows Azure Storage On-Premises VIP PHP Web Role Load Balancer PHP App SQL Azure Windows Azure Platform
24. PHP with Windows Azure Storage Windows Azure SDK for PHP @ http://phpazure.codeplex.com PHP programming model for Windows Azure Storage Features PHP classes for Blobs, Tables & Queues Store PHP sessions in Table Storage
25. PHP with SQL Azure SQL Server Driver for PHP @ http://sqlsrvphp.codeplex.com/ Supports PHP access to SQL Azure Features Choose between SQL Server and SQL Azure by changing connection string Use from on-premises or in Windows Azure
26. Migrate MySQL DB to SQL AzureUsing the SQL Server Migration Assistant for MySQL http://www.microsoft.com/downloads/details.aspx?FamilyID=0e6168b0-2d0c-4076-96c2-60bd25294a8e MySQL Database SQL Server Migration Assist for MySQL SQL Azure Database
27. How does Windows Azure Work with PHP? Running PHP in Windows Azure Windows Azure Tools for Eclipse Windows Azure Command Line Tools for PHP PHP with Windows Azure Storage PHP with SQL Azure Running MySQL in Windows Azure
28. Running MySQL in Windows Azure Running MySQL in a worker role Copy MySQL to the worker role sub-directory Copy to read-write local storage Configure MySQL to listen on the right port Monitor MySQL health Consuming MySQL Discover IP address and port Normal access from then on
31. Windows Azure Drive with Hot Spare VIP Load Balancer Web Role MySQL MySQL Worker Roles Windows AzureStorage
32. Windows Azure MySQL PHP Solution Accelerator http://code.msdn.microsoft.com/winazuremysqlphp Master/slave configurations in a worker role Leverage Windows Azure Drive Master election and replication on startup Failover and recovery Scale up/down slaves Periodic backups - full and incremental Available with source code
33. How does Windows Azure Work with PHP? Running PHP in Windows Azure Windows Azure Tools for Eclipse Windows Azure Command Line Tools for PHP PHP with Windows Azure Storage PHP with SQL Azure Running MySQL in Windows Azure Solution Accelerators
34. Solution Accelerators http://www.microsoft.com/windowsazure/interop/ memcached, Tomcat, MediaWikiSolution Accelerators, plus others in the future Solution Accelerators are best-practice deployments Leverage Windows Azure primitives Windows Azure Drive Windows Azure storage Discovering IP addresses, other servers, lifecycle Dynamic Scaling, Failover, and Upgrades Automation of application lifecycle
35. Windows Azure Pricing – Compute Services Variable instance sizes to handle complex workloads of any size Small Medium Large X Large $0.96 per service hour $0.24 per service hour $0.48 per service hour $0.12 per service hour Unit of Compute Defined Equivalent compute capacity of a 1.6Ghz processor (on 64bit platform) Small Medium Large X Large 1.6 GHz (moderate IO) 1.75 GB Memory 250 GB Instance Storage 4 x 1.6 GHz (high IO) 7 GB Memory 1000 GB Instance Storage 8 x 1.6 GHz (high IO) 14 GB Memory 2000 GB Instance Storage 2 x 1.6 GHz (high IO) 3.50 GB Memory 500 GB Instance Storage
36. Windows Azure Pricing – Other Services Bandwidth Per GB transfer in or out of a datacenter US/EU Bandwidth = $0.10 in / $0.15 out / GB Asia Pacific = $0.30 in / $0.45 out / GB Windows Azure Storage Per GB stored & transactions Blob & table $0.15 / GB Storage Access = $0.10 / 100K Transactions Data Transfers Windows Azure and SQL Azure data transfers within a sub-region are not subject to BW charges Web Edition Per DB per Month Up to 1GB DB $9.99 + BW charges Business EditionPer DB per Month Up to 10GB DB$99.99 + BW charges Service BusPer connection/month $3.00 connection/month (multi connection packs avail) Access ControlPer AC transactions/month $.015/100K AC transactions(pay per use basis)
46. After 6/30/10 quantities may be reduced NO-COST Windows Azure Compute 750 hrs Storage 10 GB Storage Transaction 1M SQL Azure - 3 Web DB (1 GB) Service Bus and Access Control Service Messages 1 Million Data Transfer 7GB In/14GB Out
47. Sign up at the Windows Azure Platform developers’ portal Windows Azure access Developer tools White papers Sample applications Plan pilot applications, proofs of concept, and architectural design sessions with Windows Azure partners http://www.windowsazure.com
48. Lastly, Microsoft can help your company! BizSpark www.bizspark.com For startups Less than 3 years old Less than USD 1M in annual revenue Must make software product or service You get a bunch of free stuff (software, support, visibility) Free Windows Azure usage (up to a certain limit) WebsiteSpark www.websitespark.com For companies that build web sites and applications for their customers Less than 10 employees You get a bunch of free stuff (software, support, visibility) No Windows Azure usage unfortunately…
49. Learn and Build Free Training on the Microsoft Web Platform functionWebCamps() { Day1.Learn(); Day2.Build(); } /* Life Runs On Code */ Interested in learning how new innovations in Microsoft's Web Platform and developer tools like ASP.NET 4 and Visual Studio 2010 can make you a more productive web developer? If you're currently working with PHP, Ruby, ASP or older versions of ASP.NET and want to hear how you can create amazing websites more easily, then register for a Web Camp near you today! 4 -5 June 2010 Singapore REGISTER TODAY! http://www.webcamps.ms/#singapore_panel
Key point: Windows Azure is hosted in Microsoft data centers around the world. Windows Azure provides compute power, storage, and automated service management, as well as easy connectivity to other applications and access control to provide secure authorization and authentication of access to cloud resources. Also hosted in the Windows Azure platform is Microsoft SQL Azure, providing relational database services and automated management of relational service.