Web & Cloud Development Jason Keicher - Microsoft.
-
Upload
shannon-crawford -
Category
Documents
-
view
218 -
download
2
Transcript of Web & Cloud Development Jason Keicher - Microsoft.
Web & Cloud DevelopmentJason Keicher - Microsoft
Web Development Trends
Open Devices Social Cloud
One ASP.NET!!
ASP.NET
WebForm
s
Sites
WebPages
Single
PageApps
MVCWebAPI
SignalR
Services
The new MVC web platformASP.NET MVC 4ASP.NET Web API
Visual Studio 2012Develop with Web StandardsDeploy to the Cloud
Reaching All Devices & Platforms
Supporting your Investments!
One ASP.NETFeatures from MVC now in Web Forms:
HTML5 Support
Strongly Typed Data Controls
Model Binding
Unobtrusive Validation
.NET 4.5 improvementsSupport for Async
Support for HTML5 Web-Sockets
30% faster startup, 30% smaller memory footprint
Reach every deviceOptimize for touch and mobile devices
Reach every platformBe productive with the latest standardsHTML5, CSS 3, and ECMAScript 5
Reach for the cloudDeploy to Microsoft Azure for high availability and scalability
Microsoft Web Platform
platforms
devices cloud
standards
Cutting-edge web standards here todayModernized project templatesHTML5 best practices in place
Creating New ASP.NET Projects
Complete control over HTMLEasy to script and styleEasy to SEO
Templates and scaffoldingBuild your controllers and views from code-first models
MVC 4 – Extensibility & Control
Poll
New Project Templates
Demo
Mobile support“Display modes” select the best view for a browserMobile project templates include jQuery Mobile
Performance & scalabilityBundling and minification for optimal performance
MVC 4 for Mobile
Mobile & Bundling
Demo
EF approaches:Model First (RAD approach)
Database First (RAD approach)
Code-First (Fits Domain-Driven approaches)
EF performanceEF 5 brings high performance improvements, up to 67%
EF migrationsDB lifecycle, Schemas & database versions is simplified
Entity Framework 5
www.netcomlearning.com
What is new in Entity Framework 5
Combination of • Updates to Entity Framework NuGet package• Updates to EF core libraries in .NET 4.5• Updates to EF Designer in Visual Studio 2012
Developer productivity
• Enums support• DB Context code generation by default (designer)• Multiple-diagrams per model (designer)• Batch Import of Stored Procedures (designer)• Shape highlighting and coloring (designer)• MVC 4 / Web API integration (model scaffolding)
Database features• Spatial types (Geography and Geometry)• Table-Valued Functions
Performance
• Automatic compiled query for LINQ• LINQ parameter evaluation optimization • Table-Per-Type query improvements• Large model improvements (designer and runtime)
Real-time Communications With SignalR
Microsoft /web
®
What is SignalR?An open-source series of libraries that
provide an abstraction around persistent HTTP connections
SignalR makes real-time HTTP so easy it seems like magic that it works
[In English, please]
Microsoft /web
®
SignalR Components
ASP.NET OWINService
BusRedis
JQueryWinRT
Native .NET
Android(via Mono)
WP7Silverlig
ht
CLIENTS
BACKPLANES
SQL
iOS
HOSTS
Microsoft /web
®
Microsoft /web
®
Additional Features• Server Push• Scale Out• Service Bus• SQL Server• Redis
• Transport Fallback / Specification• Upgrade Resiliency• Future Tech
• Open Source
Microsoft /web
®
Transports• WebSockets
• true persistent, two-way connection between the browser and server
• Server Sent Events• Aka – EventSource, no IE
• Forever Frame• IE only
• Ajax long Polling
Poll
Microsoft /web
®
Connections vs Hubs• Connections• Simple Endpoint for sending messages• Single recipient, grouped, broadcast• Lower level communication • PersistantConnection class• Think WCF
• Hubs• High level pipeline built upon Connection API• Client and server bi-directional method calling• Think .NET Remoting
Microsoft /web
®
System Requirements - Server• Windows Server 2012 (WebSockets)• Windows Server 2008 r2.• Windows 8 (WebSockets)• Windows 7
• .NET 4• .NET 4.5 (WebSockets)
• IIS 7* / 8
Microsoft /web
®
Browser Support • Microsoft Internet Explorer versions 8, 9 and 10. Modern,
Desktop, and Mobile versions are supported.• Mozilla Firefox: current version - 1, both Windows and Mac
versions.• Google Chrome: current version - 1, both Windows and Mac
versions.• Safari: current version - 1, both Mac and iOS versions.• Opera: current version - 1, Windows only.• Android browser
Microsoft /web
®
Client Browser
WebServer
Got Data?
Got Data?
Got Data?
Got Data?
Here’s some data!
Got Data?
Got Data?
Got Data?
Got Data?
SignalR on Old Servers or Clients
Microsoft /web
®
Client Browser
WebServer
I do real time, do you?
Absolutely!
SignalR on New Servers and Clients
Let’s Party in Real-time!
Microsoft /web
®
Client Browser
WebServer
Basically…
SignalR!!!
Microsoft /web
®
Backplane
SignalR BackplanesLoad balancing via a common transport mechanism
Load B
ala
nce
r
Work with the latest standardsHTML5 validation and IntelliSenseFull support for CSS 3 features and vendor prefixesECMAScript 5 compliance and validation
Visual Studio 2012
Search everywhereCommands, files, references, errors
Interactive developmentPage Inspector will find the files you need to work with
Round-trip projectsOpen, edit, and save Visual Studio 2010 projects
Visual Studio 2012 Productivity
Visual Studio 2012 Features
Demo
Supporting more platforms and devicesHTTP is ubiquitous XML is not the only format
LightweightLeverage HTTP message cache-abilitySmaller payloads Easy to test
Web Services Today
jsonhttp
xml odata
{ }
< />
Embrace HTTPContent negotiationVerb routing (ASP.NET Routing)Build restful services
Support every clientMobile devicesScripting languages
First-class Http prog.modelSymmetrically supported on client (via the new HttpClient) and server
ASP.NET Web API
IIS or Azure Web Site
SQL Server
DB
ASP.NET Web API
Business Logic
JavaScript Client
PHP Client
C# Client (Desktop)
Java Client (Phone)
Poll
Web APIDemo
Deployment & Dev Parity
computewebsites
cloud services VMs IaaS
automated
elastic
managed resources
usage based
On-Premise
compliance
full responsibility
managed resources
Up-front investments
computeservers VMs IaaS
Server explorerIntegration to Windows Azure assets
Simplified deploymentRoles and websites
Easier certificates management
ProfilingProfile applications running in Windows AzureRunning IntelliTrace on Windows Azure deploymentsIntelliTrace in production
Visual Studio & Windows Azure
Continuous Deployment to the Cloud
My ApplicationALM Cycles
Continuous Deployment to Windows Azure
Team Foundation Service
Azure Deployment
Demo
Frameworks for scalable, available services
Tooling for modern applications
Support for an application throughout the lifecycle
Automated deployments for continuous delivery
The Web Platform For Developers
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.
Thank You!Stick Around for Q&A