Your SlideShare is downloading. ×
0
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Windows Azure Platform + PHP - Jonathan Wong

9,176

Published on

Presentation by Jonathan Wong at PHP User Group Meetup (Apr 27, 2010) .

Presentation by Jonathan Wong at PHP User Group Meetup (Apr 27, 2010) .

Published in: Technology
0 Comments
6 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
9,176
On Slideshare
0
From Embeds
0
Number of Embeds
16
Actions
Shares
0
Downloads
235
Comments
0
Likes
6
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • 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.
  • Transcript

    • 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
    • 5. The Microsoft Cloud
    • 6. Introducing the Windows Azure Platform
    • 7. Types of Clouds
      Private
      (On-Premise)
      Infrastructure
      (as a Service)
      Platform
      (as a Service)
      You manage
      Applications
      Applications
      Applications
      You manage
      Runtimes
      Runtimes
      Runtimes
      Security & Integration
      Security & Integration
      Security & Integration
      Managed by vendor
      Databases
      Databases
      Databases
      You manage
      Servers
      Servers
      Servers
      Managed by vendor
      Virtualization
      Virtualization
      Virtualization
      Server HW
      Server HW
      Server HW
      Storage
      Storage
      Storage
      Networking
      Networking
      Networking
    • 8. Private
      (On-Premise)
      Types of Clouds
      Infrastructure
      (as a Service)
      Platform
      (as a Service)
    • 9. Windows Azure for Application Developers
      Hosted
      Service
      Portal
      SDK
      Storage
      Develop
      Run
      Deploy
    • 10. Windows Azure Compute Roles
      Role
      Code
      Configuration
    • 11. Web vs. Worker Role
      Worker Role
      Web Role
      System Host
      IIS Host
      Your Code
      Your Code
    • 12. Sample Application Architecture
      Web Role
      Worker Role
      Queue
      http://yourapp.cloudapp.net
      Blob
    • 13. Development Fabric and Storage
      Local Machine
      Windows Azure Simulation Environment
      Development Storage
      Development Fabric
    • 14. Windows Azure Developer Portal
    • 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!
      HelloCloudPHP
      ServiceDefinition.csdef
      ServiceConfiguration.cscfg
      WebRole
      web.roleconfig
      web.config
      php
      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
    • 19. Windows Azure Tools for Eclipse
      http://windowsazure4e.org
    • 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:>php package.php
      --project=MyProject
      --source=..php_source
      --phpRuntime="C:Program FilesPHP“
      --target="..workspace“
      --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
    • 29. Simple Configuration
      VIP
      Load Balancer
      Web Role
      MySQL
      Worker Role
    • 30. Replication
      VIP
      Load Balancer
      Web Role
      MySQL
      MySQL
      MySQL
      Worker Roles
      M
      S
      S
    • 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)
    • 37. Offers & Promotions
      Development Accelerator
      Designed to accelerate cloud app development. Flexible (on/off) consumption for scaling. Predictable payment and discounted price.
      • 6 month subscription (38%-45% discount)
      • 38. Offered as a unit (can order multiple units)
      • 39. Cancel first 30 days; anytime after first 6 months
      • 40. Overage at Standard Consumption rates
      CORE($59.95/month)
      Amount Included in Base
      Compute 750 hrs/mo
      Storage 10 GB/mo
      Storage Transactions 1M/mo
      NET - Messages 1M/mo
      Data Transfers 7 GB In / 14 GB Out
      EXTENDED($109.95/month)
      Amount Included in Base
      Same as Core except also includes 1 SQL Azure Business Edition DB (10 GB)
      Introductory Free Offer
      No-cost developer starter offer. Provides no-cost allocation to run a cloud service.
      • Available to all partner/customers
      • 41. Limit of one per customer
      • 42. Overage at Standard Consumption rates
      NO-COST
      Windows Azure
      Compute 25 Hrs/month
      Storage 0.5 GB/month
      Bandwidth 0.5 GB/month
      Storage Transactions 10K/month
      SQL Azure
      1 Web Edition DB (1GB DB) 90 day trial
      Service Bus and Access Control Service
      Messages 100K/mo
      MSDN Premium
      Mobilize committed .NET developer base. Enable them to build, deploy, manage multiple cloud projects w/in MSDN subscription.
      • Available to MSDN Premium subscribers with limit of one per subscription (one per Windows Live ID)
      • 43. 12-month term
      • 44. Overage at partner Consumption rates
      • 45. Limited time to sign up (thru 6/30/10)
      • 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
    • 50. Thank You!
      innovativesingapore.com
      twitter.com/innovativesg
      © 2010 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.

    ×