Click here to load reader

True story of re architecting website for scale on windows azure

  • View
    5

  • Download
    0

Embed Size (px)

DESCRIPTION

 

Text of True story of re architecting website for scale on windows azure

  • 1. True story of re-architecting website for scale on Windows Azure

2. 1,3 billion+ web transactions / day 3 datacenters / 300+ servers 3. Lithuanian-based startup 20K+ unique visitors per month can go viral any day soon 4. HOSTINGWINDOWS AZURELinux | Apache | MySQL | PHPLinux | Nginx | FTPwebsite, blog static content databasephotos 5. 20K+ ~260K page views / month ~9K page views / day ~1K page views / hour~0,2 page views / secondbut spikes up-to 50 page views / second 6. Cloud gives more flexibility and scalability options Windows Azure is Microsofts Cloud Platform BizSpark gives Windows Azure for free for 1 yearLets move! 7. VIRTUAL MACHINE 8. HOSTINGWINDOWS AZURELinux | Apache | MySQL | PHPLinux | Nginx | FTPwebsite, blog static content databasephotos 9. WINDOWS AZURE Linux | Apache | MySQL | PHPLinux | Nginx | FTPwebsite, blog static content databasephotos 10. SCALING ISSUE #1 Dedicated VM for storing content is suboptimal in the cloud Manual management & scalingNo backups 11. BLOB STORAGE 12. WINDOWS AZURE Linux | Apache | MySQL | PHPLinux | Nginx | FTPwebsite, blog static content databasephotos 13. WINDOWS AZURE Linux | Apache | MySQL | PHPHTTPwebsite, blog static content databasephotos 14. SCALING ISSUE #2 Static content on the same VM as website and blog Different scalability targets Photos are part of static content 15. WINDOWS AZURE Linux | Apache | MySQL | PHPHTTPwebsite, blog static content databasephotos 16. WINDOWS AZURE Linux | Apache | MySQL | PHPHTTPwebsite, blog databasestatic content 17. SCALING ISSUE #3 Database on the same VM as website and blog Very different scalability targets and strategies 18. WINDOWS AZURE Linux | Apache | MySQL | PHPHTTPwebsite, blog databasestatic content 19. WINDOWS AZURE Linux | MySQL Linux | Apache | PHPdatabasewebsite, blogHTTPstatic content 20. SCALING ISSUE #4 Blog on the same VM as website Different scalability targets 21. WEBSITES 22. WINDOWS AZURE Linux | MySQL Linux | Apache | PHPdatabasewebsite, blogHTTPstatic content 23. WINDOWS AZURE Linux | MySQL Linux | Apache | PHP IIS | PHPdatabasewebsiteblogHTTPstatic content 24. FURTHER SCALING 25. SCALING ISSUE #5 Website gets more requests than can handle 26. WINDOWS AZURE Linux | MySQL Linux | Apache | PHP IIS | PHPdatabasewebsiteblogHTTPstatic content 27. WINDOWS AZURE Linux | MySQL Linux | Apache | PHP IIS | PHPdatabasewebsiteblogHTTPstatic content 28. SCALING ISSUE #6 Database gets more queries than can handle 29. WINDOWS AZURE Linux | MySQL Linux | Apache | PHP IIS | PHPdatabasewebsiteblogHTTPstatic content 30. WINDOWS AZURE Linux | MySQLLinux | MySQLwrite-only databaseread-only databaseLinux | Apache | PHP IIS | PHPwebsiteblogHTTPstatic content 31. SCALING ISSUE #7 Read-only database gets more queries than can handle 32. WINDOWS AZURE Linux | MySQLLinux | MySQLwrite-only databaseread-only databaseLinux | Apache | PHP IIS | PHPwebsiteblogHTTPstatic content 33. WINDOWS AZURE Linux | MySQLLinux | MySQLwrite-only databaseread-only databaseLinux | Apache | PHP IIS | PHPwebsiteblogHTTPstatic content 34. SCALING ISSUE #8 Write-only database gets more queries than can handle 35. This is a nice issue to haveSplit write-only database into shards with multiple read-only slaves for each shard accessed via layer of distributed cache 36. DEMO 37. WINDOWS AZURE SQL DatabaseIIS | PHPHTTPdatabaseblogstatic content 38. WINDOWS AZURE SERVICES 39. WINDOWS AZURE Windows Azure Virtual Machine for VMs Windows Azure Blob Storage for static content Windows Azure Website for hosting web site 40. WINDOWS AZURE Windows Azure Service Bus for messaging Windows Azure Cache Service for distributed caching Windows Azure Notification Hubs for push notificationWindows Azure HDInsight for big data 41. WINDOWS AZURE COMPUTEDATA SERVICESAPP SERVICESNETWORKVirtual MachinesSQL DatabaseMedia ServicesSERVICESWeb SitesStorageService BusMobile ServicesHDInsightNotification HubsCloud ServicesCacheBizTalk ServicesBackupActive DirectoryRecoveryMulti-Factor AuthVirtual Network Traffic ManagerManager Pricing calculator: http://www.windowsazure.com/en-us/pricing/calculator/?scenario=full

Search related