Web & Cloud Development Jason Keicher - Microsoft.

41
Web & Cloud Developmen t Jason Keicher - Microsoft

Transcript of Web & Cloud Development Jason Keicher - Microsoft.

Page 1: Web & Cloud Development Jason Keicher - Microsoft.

Web & Cloud DevelopmentJason Keicher - Microsoft

Page 2: Web & Cloud Development Jason Keicher - Microsoft.

Web Development Trends

Open Devices Social Cloud

Page 3: Web & Cloud Development Jason Keicher - Microsoft.

One ASP.NET!!

ASP.NET

WebForm

s

Sites

WebPages

Single

PageApps

MVCWebAPI

SignalR

Services

Page 4: Web & Cloud Development Jason Keicher - Microsoft.

The new MVC web platformASP.NET MVC 4ASP.NET Web API

Visual Studio 2012Develop with Web StandardsDeploy to the Cloud

Reaching All Devices & Platforms

Page 5: Web & Cloud Development Jason Keicher - Microsoft.

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

Page 6: Web & Cloud Development Jason Keicher - Microsoft.

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

Page 7: Web & Cloud Development Jason Keicher - Microsoft.

Cutting-edge web standards here todayModernized project templatesHTML5 best practices in place

Creating New ASP.NET Projects

Page 8: Web & Cloud Development Jason Keicher - Microsoft.

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

Page 9: Web & Cloud Development Jason Keicher - Microsoft.

Poll

Page 10: Web & Cloud Development Jason Keicher - Microsoft.

New Project Templates

Demo

Page 11: Web & Cloud Development Jason Keicher - Microsoft.

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

Page 12: Web & Cloud Development Jason Keicher - Microsoft.

Mobile & Bundling

Demo

Page 13: Web & Cloud Development Jason Keicher - Microsoft.

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

Page 14: Web & Cloud Development Jason Keicher - Microsoft.

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)

Page 15: Web & Cloud Development Jason Keicher - Microsoft.

Real-time Communications With SignalR

Page 16: Web & Cloud Development Jason Keicher - Microsoft.

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]

Page 17: Web & Cloud Development Jason Keicher - Microsoft.

Microsoft /web

®

SignalR Components

ASP.NET OWINService

BusRedis

JQueryWinRT

Native .NET

Android(via Mono)

WP7Silverlig

ht

CLIENTS

BACKPLANES

SQL

iOS

HOSTS

Page 18: Web & Cloud Development Jason Keicher - Microsoft.

Microsoft /web

®

Page 19: Web & Cloud Development Jason Keicher - Microsoft.

Microsoft /web

®

Additional Features• Server Push• Scale Out• Service Bus• SQL Server• Redis

• Transport Fallback / Specification• Upgrade Resiliency• Future Tech

• Open Source

Page 20: Web & Cloud Development Jason Keicher - Microsoft.

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

Page 21: Web & Cloud Development Jason Keicher - Microsoft.

Poll

Page 22: Web & Cloud Development Jason Keicher - Microsoft.

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

Page 23: Web & Cloud Development Jason Keicher - Microsoft.

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

Page 24: Web & Cloud Development Jason Keicher - Microsoft.

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

Page 25: Web & Cloud Development Jason Keicher - Microsoft.

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

Page 26: Web & Cloud Development Jason Keicher - Microsoft.

Microsoft /web

®

Client Browser

WebServer

I do real time, do you?

Absolutely!

SignalR on New Servers and Clients

Let’s Party in Real-time!

Page 27: Web & Cloud Development Jason Keicher - Microsoft.

Microsoft /web

®

Client Browser

WebServer

Basically…

SignalR!!!

Page 28: Web & Cloud Development Jason Keicher - Microsoft.

Microsoft /web

®

Backplane

SignalR BackplanesLoad balancing via a common transport mechanism

Load B

ala

nce

r

Page 29: Web & Cloud Development Jason Keicher - Microsoft.

Work with the latest standardsHTML5 validation and IntelliSenseFull support for CSS 3 features and vendor prefixesECMAScript 5 compliance and validation

Visual Studio 2012

Page 30: Web & Cloud Development Jason Keicher - Microsoft.

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

Page 31: Web & Cloud Development Jason Keicher - Microsoft.

Visual Studio 2012 Features

Demo

Page 32: Web & Cloud Development Jason Keicher - Microsoft.

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

{ }

< />

Page 33: Web & Cloud Development Jason Keicher - Microsoft.

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)

Page 34: Web & Cloud Development Jason Keicher - Microsoft.

Poll

Page 35: Web & Cloud Development Jason Keicher - Microsoft.

Web APIDemo

Page 36: Web & Cloud Development Jason Keicher - Microsoft.

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

Page 37: Web & Cloud Development Jason Keicher - Microsoft.

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

Page 38: Web & Cloud Development Jason Keicher - Microsoft.

Continuous Deployment to the Cloud

My ApplicationALM Cycles

Continuous Deployment to Windows Azure

Team Foundation Service

Page 39: Web & Cloud Development Jason Keicher - Microsoft.

Azure Deployment

Demo

Page 40: Web & Cloud Development Jason Keicher - Microsoft.

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

Page 41: Web & Cloud Development Jason Keicher - Microsoft.

© 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