Creating php cloud applications

4,083 views
4,012 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
4,083
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • SetupThis slide will outline the process by which new Windows Azure Web Sites are provisioned and created when a customer submits a new site request.Request ProcessTraffic comes into the Azure load balancer(fade in ARR) Hits the ARR load balancer (extended to support WAWS)(fade in Runtime SQL) Talks to the runtime database to find out which web server the traffic should be routed to(fade in Web Server) Stores metadata about each siteStores data about individual server load and memory usageUpdates every 30 secondsTraffic is routed to the appropriate web serverWhen the traffic hits the web server, it makes a call back to the runtime SQL database to verify the requested site should served from it (added security functionality)(fade in storage controller) If the site is valid, a map is made to the storage controller defining the content of the siteConfig files are generated and saved(fade in web site SQL) If you chose to have a linked database for your site, the linkage to your site’s database is set up automatically(fade in traffic arrow) Traffic then sent back to the Azure load balancer and then the requesting client sees the output
  • SetupThis slide will outline the process by which requests are handled to Windows Azure Web Sites that have already been provisioned.Request ProcessTraffic comes into the Azure load balancer(fade in ARR) Hits the ARR load balancer, which has a list of where sites live and how to direct traffic to themTraffic is routed to the appropriate web server(fade in web server) Traffic is routed to the web server. (fade out web server, fade in multiple web server instances) If the site has multiple instances, traffic is dynamically routed to the least-utilized server(fade in storage controller) Site content is loaded from the storage controller to the web server that was hit(fade in web site SQL) If you chose to have a linked database for your site, data is exchanged between the site and it’s database during the request(fade in traffic arrow) Traffic then sent back to the Azure load balancer and then the requesting client sees the output
  • SetupThis slide will outline the process by which requests are handled to Windows Azure Web Sites that have already been provisioned.Request ProcessTraffic comes into the Azure load balancer(fade in ARR) Hits the ARR load balancer, which has a list of where sites live and how to direct traffic to themTraffic is routed to the appropriate web server(fade in web server) Traffic is routed to the web server. (fade out web server, fade in multiple web server instances) If the site has multiple instances, traffic is dynamically routed to the least-utilized server(fade in storage controller) Site content is loaded from the storage controller to the web server that was hit(fade in web site SQL) If you chose to have a linked database for your site, data is exchanged between the site and it’s database during the request(fade in traffic arrow) Traffic then sent back to the Azure load balancer and then the requesting client sees the output
  • SetupThis slide will outline the process by which requests are handled to Windows Azure Web Sites that have already been provisioned.Request ProcessTraffic comes into the Azure load balancer(fade in ARR) Hits the ARR load balancer, which has a list of where sites live and how to direct traffic to themTraffic is routed to the appropriate web server(fade in web server) Traffic is routed to the web server. (fade out web server, fade in multiple web server instances) If the site has multiple instances, traffic is dynamically routed to the least-utilized server(fade in storage controller) Site content is loaded from the storage controller to the web server that was hit(fade in web site SQL) If you chose to have a linked database for your site, data is exchanged between the site and it’s database during the request(fade in traffic arrow) Traffic then sent back to the Azure load balancer and then the requesting client sees the output
  • Creating php cloud applications

    1. 1. http://joind.in/8168
    2. 2. Types of CloudPublic Cloud Hybrid Cloud Private Cloud
    3. 3. Programmable Resources
    4. 4. Programmable ResourcesWindows Azure Cross Platform CLI Tools
    5. 5. Windows Azure CLI Tools http://aka.ms/Azure-SDK-ToolsChef http://aka.ms/Chef
    6. 6. Scale Out, over Scale Up
    7. 7. Scale Out vs. Scale Up
    8. 8. Windows Azure Web Sites InternalsRequest Process Flow for New (Cold) Sites
    9. 9. Windows Azure Web Sites InternalsRequest Process Flow for Existing (Hot) Sites
    10. 10. Windows Azure Web Sites InternalsFTP and Web Deploy Deployment ProcessLegend
    11. 11. Windows Azure Web Sites InternalsGit Deployment ProcessLegend
    12. 12. Supported PHP Versions5.4.05.3.13Default Support Customized Support Change configurations with .user.ini Load extensions via PHP_ExtensionsAppSetting Bin deploy specific PHP Runtime Configure FastCGI Handler in Web Site Configuration Uses local php.ini file for extensions andconfigurations
    13. 13. Load Balanced Web SiteWindows Azure Web Sites
    14. 14. Decoupling ApplicationComponents
    15. 15. Tightly Coupled
    16. 16. Tightly Coupled
    17. 17. Loosely Coupled
    18. 18. Loosely Coupled
    19. 19. Loosely Coupled
    20. 20. Loosely Coupled
    21. 21. Windows Azure SDK for PHPGitHub: http://aka.ms/AZURESDK-PHPDeveloper Center: http://aka.ms/Develop-PHP
    22. 22. {"require": {"microsoft/windowsazure": "*"},"repositories": [{"type": "pear","url": "http://pear.php.net"}],"minimum-stability": "dev"}
    23. 23. use WindowsAzureCommonServicesBuilder;use WindowsAzureCommonServiceException;use WindowsAzureServiceBusmodelsBrokeredMessage;$serviceBusRestProxy = ServicesBuilder::getInstance()->createServiceBusService(SERVICE_BUS_CONNECTION_STRING);// SERVICE_BUS_CONNECTION_STRING:// Endpoint=https://[sb-namespace].servicebus.windows.net;// SharedSecretIssuer=[sb-issuer];// SharedSecretValue=[sb-access-key]
    24. 24. // Create message$message = new BrokeredMessage();$message->setBody($msg);// Send message$serviceBusRestProxy->sendQueueMessage(QUEUE_NAME, $message);
    25. 25. Message MeWindows Azure Service Bus Queue
    26. 26. Cost, Agility and Reliability
    27. 27. Cory FowlerWindows Azure Technical Evangelist@SyntaxC4blog.syntaxc4.net http://joind.in/8168Questions?Three truths of cloud computing:hardware fails, software has bugsand people make mistakes
    28. 28. Resources aka.ms/TEK13-Azure aka.ms/Tek13-Azure-Code aka.ms/WAWS-Cheat aka.ms/WAWS-PHP-Troubleshoot aka.ms/Develop-PHP aka.ms/AZURESDK-PHP aka.ms/WA-Silverlining

    ×