Windows Azure Platform + PHP - Jonathan Wong
Upcoming SlideShare
Loading in...5
×
 

Windows Azure Platform + PHP - Jonathan Wong

on

  • 10,254 views

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

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

Statistics

Views

Total Views
10,254
Slideshare-icon Views on SlideShare
10,023
Embed Views
231

Actions

Likes
6
Downloads
230
Comments
0

29 Embeds 231

http://oakleafblog.blogspot.com 82
http://www.slideshare.net 36
http://innovativesingapore.com 28
http://oakleafblog.blogspot.in 14
http://kathaleenbriffaut.blogspot.fr 8
http://mal-1.blogspot.com 7
http://localhost:50222 6
http://elrincondelasnnttenedesp.blogspot.com.es 6
http://elrincondelasnnttenedesp.blogspot.com 5
http://s-o2.se 5
http://mal-1.blogspot.de 4
http://kathaleenbriffaut.blogspot.com 3
http://oakleafblog.blogspot.kr 3
http://new-acksite.acknowledgement.co.uk 3
http://oakleafblog.blogspot.co.uk 3
http://oakleafblog.blogspot.fr 2
http://acknet.dev 2
http://oakleafblog.blogspot.it 2
http://oakleafblog.blogspot.de 2
http://oakleafblog.blogspot.ru 1
http://spiffy.sg 1
http://oakleafblog.blogspot.hk 1
http://www.rcampus.com 1
http://oakleafblog.blogspot.jp 1
http://spiffy1.capturepagedesigns.com 1
http://www.aproveaqui.com.br 1
http://core3 1
http://wonder-tonic.com 1
http://oakleafblog.blogspot.ca 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • 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.

Windows Azure Platform + PHP - Jonathan Wong Windows Azure Platform + PHP - Jonathan Wong Presentation Transcript

  • Windows Azure Platform + PHP
    Jonathan Wong
    Microsoft Innovation Centre Singapore
    innovativesingapore.com | twitter.com/innovativesg
  • 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
  • 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
  • The Microsoft Cloud
    ~100 Globally Distributed Data Centers
    Quincy, WA
    Chicago, IL
    San Antonio, TX
    Dublin, Ireland
    Generation 4 DCs
  • The Microsoft Cloud
  • Introducing the Windows Azure Platform
  • 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
  • Private
    (On-Premise)
    Types of Clouds
    Infrastructure
    (as a Service)
    Platform
    (as a Service)
  • Windows Azure for Application Developers
    Hosted
    Service
    Portal
    SDK
    Storage
    Develop
    Run
    Deploy
  • Windows Azure Compute Roles
    Role
    Code
    Configuration
  • Web vs. Worker Role
    Worker Role
    Web Role
    System Host
    IIS Host
    Your Code
    Your Code
  • Sample Application Architecture
    Web Role
    Worker Role
    Queue
    http://yourapp.cloudapp.net
    Blob
  • Development Fabric and Storage
    Local Machine
    Windows Azure Simulation Environment
    Development Storage
    Development Fabric
  • Windows Azure Developer Portal
  • How does Windows Azure Work with PHP?
    Running PHP in Windows Azure
  • 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
  • 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!
  • How does Windows Azure Work with PHP?
    Running PHP in Windows Azure
    Windows Azure Tools for Eclipse
    Windows Azure Command Line Tools for PHP
  • Windows Azure Tools for Eclipse
    http://windowsazure4e.org
  • 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/
  • Windows Azure Command-Line Tools for PHP
    C:>php package.php
    --project=MyProject
    --source=..php_source
    --phpRuntime="C:Program FilesPHP“
    --target="..workspace“
    --runDevFabric
  • 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
  • PHP + Cloud Storage
    Windows Azure Storage
    On-Premises
    VIP
    PHP
    Web Role
    Load Balancer
    PHP App
    SQL Azure
    Windows Azure Platform
  • 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
  • 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
  • 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
  • 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
  • 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
  • Simple Configuration
    VIP
    Load Balancer
    Web Role
    MySQL
    Worker Role
  • Replication
    VIP
    Load Balancer
    Web Role
    MySQL
    MySQL
    MySQL
    Worker Roles
    M
    S
    S
  • Windows Azure Drive with Hot Spare
    VIP
    Load Balancer
    Web Role
    MySQL
    MySQL
    Worker Roles
    Windows AzureStorage
  • 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
  • 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
  • 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
  • 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
  • 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)
  • 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)
    • Offered as a unit (can order multiple units)
    • Cancel first 30 days; anytime after first 6 months
    • 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
    • Limit of one per customer
    • 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)
    • 12-month term
    • Overage at partner Consumption rates
    • Limited time to sign up (thru 6/30/10)
    • 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
  • 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
  • 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…
  • 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
  • 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.