1 / 38

Building and maintaining internet scale applications with Windows Azure Web Sites

Building and maintaining internet scale applications with Windows Azure Web Sites. Yochay Kiriaty Senior Program Manager yochay@microsoft.com @yochayk 3-552. Agenda. One ‘marketing’ slide What does it take to run production sites? Development Cycle Monitor & Diagnose Scale.

nedra
Télécharger la présentation

Building and maintaining internet scale applications with Windows Azure Web Sites

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Building and maintaining internet scale applications with Windows Azure Web Sites Yochay Kiriaty Senior Program Manager yochay@microsoft.com @yochayk 3-552

  2. Agenda • One ‘marketing’ slide • What does it take to run production sites? • Development Cycle • Monitor & Diagnose • Scale

  3. Demoing Scale takes time

  4. Scale demos for today Run the first two demos I need a volunteer

  5. Windows Azure Web Sites PaaS for the Modern Web Scalable Ready for Business Flexible Scale out or up in seconds on a Load Balanced, Always up to date, Global Infrastructure Enterprise Grade Availability with support for SSL and AD Web hosting your way with choice of language, framework, database, and platform A powerful self service platform for developers

  6. What does it takes to run a production site? • "Anything that can go wrong, will go wrong“ • Murphy's law • Build it • Your favorite language, framework and tools • 3rd party components • Test it • Functional, perf and stress • Multiple environment and as close to production as possible • Deploy it • Production configuration and secrets • Source control integration • Maintain it • Monitor, diagnose, and debug

  7. Continues Integration • Many SC options • Push from cloud • Custom deployment scripts

  8. Demo Stage / PROD + custom deployment

  9. Go see Cory’s session Continues Integration with Windows Azure Web Sitestomorrow @ 9:00 (North Hall:131)

  10. Monitoring and Diagnostics • Performance statistics • CPU Time, # of requests, HTTP status 2xx, 4xx, 5xx, Network, Storage size • Diagnostics • HTTP logs, Filed Request Tracing, Detailed Errors • Availabilty with endpoint monitoring • ‘Dev Ops’ (bunch of diagnostics tools) • Application tracing & log streaming • Memory Dumps • Diagnostics console • New Relic

  11. DemoDiagnostics Console Application tracing

  12. scalability is the ability of a system (a web site), network, or process to handle a growing amount of work (http traffic)in a capable manner (doesn’t go belly up) or its ability to be enlarged to accommodate that growth Source: http://en.wikipedia.org/wiki/Scalability

  13. Web Sites Scale = HTTP Throughput

  14. Scaling Options: One or Both • Scale Up • In Standard tier - increase the size of a reserved instance • Scale Out • In Shared tier - add more instances of your app • In Standard tier – add more reserved instances (VMs)

  15. Scale demos for today Show result of the first two demos

  16. 32 bit Vs. 64 bit • For .NET application a gain of ~20% to ~30% • Make sure all dependencies support 64 bit • No 64 bit support • php, Python, node.js

  17. Scale demos for today Start next two demos Again – a volunteer is required

  18. How Does It Work? Cloud First by Design SQL based configuration Dynamic provisioning of sites on demand Network Storage (Azure xDrive, SMB, NAS, SAN) Stateless web servers (no synchronization required) Intelligent load balancing

  19. Serving HTTP(s) Traffic – Inactive Site (‘cold’ site) API endpoint WebWorker Azure LB WebWorker Site DB Site DB Site DB WebWorker http://site1..../ WebWorker Site DB Site DB Site DB Frontend (IIS ARR) SQL Azure / MySQL / Mongo Runtime DB VHD blobs SQL Azure HTTP File Server Publish endpoint

  20. Serving HTTP(s) Traffic – Inactive Site (‘cold’ site) API endpoint Azure LB WebWorker http://site1..../ Site DB Frontend (IIS ARR) site1 site1 SQL Azure Runtime DB VHD blobs SQL Azure HTTP File Server Publish endpoint

  21. Serving HTTP(s) Traffic – Active Site (‘hot’ site) API endpoint WebWorker Azure LB WebWorker Site DB Site DB Site DB WebWorker http://site1..../ WebWorker Site DB Site DB Site DB Frontend (IIS ARR) site1 SQL Azure Runtime DB Metering DB VHD blobs SQL Azure HTTP File Server Publish endpoint

  22. Scale Out – Things To Remember • Is your app stateful? • Meet ARR Affinity cookie • Stateless app running on WAWS • Say goodbye to ARR Affinity cookie • Manage session state (DB, Cache, Azure Storage, Client Cookies, etc…) • Manage load across all components • Database (SQL-Az, MySQL, Mongo, etc…) • Any other Azure or 3rd party component

  23. Deleting Cookies • function Delete_Cookie( name, path, domain ) • { • if ( Get_Cookie( name ) ) • document.cookie=name+"="+((path) ? ";path="+path:"")+((domain)?";domain="+domain:"") + • ";expires=Thu, 01 Jan 1970 00:00:01 GMT"; • }

  24. Scale demos for today Show result of last two demos

  25. Auto - Scale • Optimizing cost • Scale-out • Scale-up (coming soon)

  26. Additional ‘Scale’ Considerations / Topics • Cache • ‘in memory’ (like Memcached) / Distributed (‘velocity’) / As a service • Geo – Distributed • Traffic Manager • CDN • Sharding • Database (‘manually’ or using DB such as mongo) • Traffic (traffic manager) / Advance Load Balancing • Any other application related sharding logic

  27. Customer adoption for numbers Over 90K Subscriptions Since June’12

  28. Don’t Try This @ Home • https://github.com/yochay/waws-sudokutest • https://github.com/yochay/waws-Leaderboard • http://www.iis.net/downloads/community/2007/05/wcat-63-(x86) • http://blogs.msdn.com/b/windowsazure/ https://twitter.com/yochayk • If you don’t believe me. Try it for yourself

  29. Why Using Windows Azure Web Sites Scalable, secure and flexible platform for building and hosting powerful web applications. Faster to market Open and flexible Ready for business Web scale world wide Best Visual Studio Experience

  30. Additional Azure Web Sites Sessions

  31. Q&Ayochay@microsoft.com@yochayk

  32. Required Slide *delete this box when your slide is finalized Your MS Tag will be inserted here during the final scrub. Evaluate this session • Scan this QR codeto evaluate this session and be automatically entered in a drawing to win a prize!

More Related