Hosting applications on Windows Azure is simple but there are things to change when cloud-enabling existing web applications because cloud is conceptually different than on-premises or shared hosting environment. This sessions goes through main issues one will face when moving applications to cloud. Real-life examples provide elegant solutions to problems and through demos the audience will see how to deploy applications to cloud and how to test and run cloud and hybrid applications on your development machine.
5. Windows Azure services
Web Sites
Virtual
Machines
Mobile
Services
Cloud
Services
SQL DB Storage
Media
Services
Service
Bus
Cache
6. Application types
• In-premises: we host everything on our servers
• Cloud: everything is hosted on Windows Azure
• Hybrid: mix of cloud and in-premises
8. Local files
• Direct use of local directories to keep files
• File system support is hardcoded to application
• Not proper use of temporary files
• Using folders above web application root
9. Local database
• Systems of developed and tested using SQL Server on
development machine
• Database is located in network but not much test data is
available
10. In-proc and local data
• Session data is kept in server memory
• Cache data is kept in server memory
• Some shared data is kept in static variables
12. Change in mindset
• Your code must work in multi-server environment
• There will always be network
• Instead of modules there are pluggable components
• Everything can be service
13. Breaking dependencies
• Most of the work you do is breaking dependencies
• While breaking dependencies you make generalizations
• You move to modularized code
• You make it easier to test your code
15. Generalizing file storage
• Local file system: paths up to 248 chars
• Blob Storage: account -> container -> blob
• Other services:
o Amazon
o OneDrive
o Google Drive
o SharePoint
• Considering all those limits try to get things done
20. Sessions and cache
• Stop using in-proc session and cache
• Use SQL Server or some distributed cache
• Test for performance and monitor traffic
• If needed ask session values once per request
22. Upcoming events
UXify Bulgaria, June 7
Sessions, training day and more
http://uxify.org/
SQLSaturday #311 in October!
http://www.sqlsaturday.com/311/
jQuery Bulgaria, November 22
http://www.jquerybulgaria.com/
23. Thanks to our Sponsors:
Global Sponsor:
Gold Sponsors:
Swag Sponsors: Media Partners:
More Global Sponsors:
Silver Sponsors: