Part 04 – Preparing to Deploy to the Cloud Entity Framework and MVC Series Tom Perkins NTPCUG.

Slides:



Advertisements
Similar presentations
Futures – Alpha Cloud Deployment and Application Management.
Advertisements

From Server to Service: How Microsoft moved Team Foundation Server to Windows Azure Grant Holliday Senior Premier Field Engineer AZR323b.
Mark Simms Principal Program Manager Windows Azure Customer Advisory Team.
Introduction to Entity Framework Part 1 Tom Perkins NTPCUG.
Part 05 – Code First Migrations and Azure Deployment Entity Framework and MVC Series Tom Perkins NTPCUG.
©2012 Microsoft Corporation. All rights reserved..
4 2) Code Repository 1) Developers 3) Build4) Test5) Deploy to Cloud 6) Monitor and Improve Contoso App Azure.
Sitefinity Performance and Architecture
Azure Websites Features & Capabilities Hybrid Connections VPN Support Scheduled Backups Azure Active Directory Integration Site Resiliency, HA, and.
An Introduction to ASP.NET Web Pages 2 Module 1: Webmatrix Installation and Your First Web Site Tom Perkins.
Microsoft ® Official Course Monitoring and Troubleshooting Custom SharePoint Solutions SharePoint Practice Microsoft SharePoint 2013.
CONFIGURING WINDOWS SERVER MIS 424 Professor Sandvig.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Introduction to the Enterprise Library. Sounds familiar? Writing a component to encapsulate data access Building a component that allows you to log errors.
Training Workshop Windows Azure Platform. Presentation Outline (hidden slide): Technical Level: 200 Intended Audience: Developers Objectives (what do.
BIT 286: Web Applications Lecture 04 : Thursday, January 15, 2015 ASP.Net MVC - Models.
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
Module 8 Configuring and Securing SharePoint Services and Service Applications.
Intro to Entity Framework By Shahed Chowdhuri Don’t drown in database design during WakeUpAndCode.com.
Designing For Testability. Incorporate design features that facilitate testing Include features to: –Support test automation at all levels (unit, integration,
Codeigniter is an open source web application. It occupies a very small amount of space in the memory and is most useful for developers who aim to develop.
Virtual techdays INDIA │ august 2010 SQL Azure – Tips and Tricks Ramaprasanna Chellamuthu │ Developer Evangelist, Microsoft.
Cory Fowler SyntaxC4-MSFT.
Guidelines for Homework 6. Getting Started Homework 6 requires that you complete Homework 5. –All of HW5 must run on the GridFarm. –HW6 may run elsewhere.
Tom Castiglia Hershey Technologies
Ideas to Improve SharePoint Usage 4. What are these 4 Ideas? 1. 7 Steps to check SharePoint Health 2. Avoid common Deployment Mistakes 3. Analyze SharePoint.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
Introduction to Entity Framework Part 2 CRUD Scaffolding Tom Perkins NTPCUG.
LexEVS in a caGrid Environment Interacting with LexEVS 5.0 November 2009.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
Sage ACT! 2013 SDK Update Brian P. Mowka March 23, 2012 Template date: October 2010.
Oracle Data Integrator Procedures, Advanced Workflows.
Module 10 Administering and Configuring SharePoint Search.
Slide 1 ASP Authentication There are basically three authentication modes Windows Passport Forms There are others through WCF You choose an authentication.
Building Secure Web Applications With ASP.Net MVC.
Module 7 Planning and Deploying Messaging Compliance.
Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.
Introduction to MVC Introduction NTPCUG Tom Perkins, Ph.D.
Data Access Layer Shahed Chowdhuri Using Code-First Migrations.
ADO.NET FUNDAMENTALS BEGINNING ASP.NET 3.5 IN C#.
Microsoft Cloud Solution.  What is the cloud?  Windows Azure  What services does it offer?  How does it all work?  How to go about using it  Further.
Building Cloud Solutions Presenter Name Position or role Microsoft Azure.
(re)-Architecting cloud applications on the windows Azure platform CLAEYS Kurt Technology Solution Professional Microsoft EMEA.
Entity Framework Database Connection with ASP Notes from started/getting-started-with-ef-using-mvc/creating-an-
Nivo 300 ASP.NET MVC 4 Danijel Malik Artifis Danijel Malik s.p.
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
1 BCS 4 th Semester. Step 1: Download SQL Server 2005 Express Edition Version Feature SQL Server 2005 Express Edition SP1 SQL Server 2005 Express Edition.
Let's build a VMM service template from A to Z in one hour Damien Caro Technical Evangelist Microsoft Central & Eastern Europe
Migration of Real Product into Windows Azure Lessons Learned.
ASP.NET Core* Shahed Chowdhuri Sr. Technical WakeUpAndCode.com A Quick Overview of ASP.NET Core * aka ASP.NET 5 before.
GENERAL SCALABILITY CONSIDERATIONS
The Holmes Platform and Applications
Top 10 Entity Framework Features Every Developer Should Know
Cameron Blashka | Informer Implementation Specialist
How to tune your applications before moving your database to Microsoft Azure SQL Database (MASD) OK, you've jumped into your Azure journey by creating.
Lecture 04: Thursday, January 15, 2015
Designing For Testability
Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek
Senior Software Engineering Student Robertas Sys
CO6025 Advanced Programming
SharePoint Cloud hosted Apps
What’s changed in the Shibboleth 1.2 Origin
Managing Services with VMM and App Controller
Hybrid Power BI With the on Premise Data Gateway
Service Template Creation from the Ground Up
Building global and highly-available services using Windows Azure
Service Template Creation from the Ground Up
06 | Integrating extra features and looking forward
Entity Framework & LINQ (Language Integrated Query)
SQL Azure to .NET Developers
Presentation transcript:

Part 04 – Preparing to Deploy to the Cloud Entity Framework and MVC Series Tom Perkins NTPCUG

Environment Change … CURRENT ENVIRONMENT LOCAL MACHINE CONTOSO APP IIS SQL Server Express LocalDB database Web Hosting Provider TARGET ENVIRONMENT CLOUD Database Server Deploy

This tutorial … Two EF 6 Features Connection Resiliency – Automatic retries for transient errors – transient – lasting only for a short time; impermanent Command Interception – Intercept all SQL queries sent to DB to log or change them

Reasons for transient errors App and database may not be in the same datacenter Load balancers may interfere Having many other users may effect responsiveness Service Level Agreement – how frequently you can access the database – throws exceptions (throttling) Contoso App Windows Azure SQL Database Windows Azure SQL Database

Connection Problems May resolve themselves in a short period of time A short wait may lead to a successful operation Connection Resiliency – EF6 feature – Automatically tries transient errors again – Invisible to customer

Connection Resiliency Feature Must be configured for particular database service (EF6 defaults to Windows Azure) Must identify ‘transient’ errors – don’t retry program bugs Wait only an appropriate amount of time before retrying – users are waiting … Try only an appropriate number of times

Contoso App – Enable Connection Resiliency Set SQL database “execution strategy” – EF term for ‘retry policy’ Follow the steps outlined in Part 04 Exercise 1 – Set Retry Policy (Handout)

Command Interception How to test retry policy? Plan: – Intercept SQL queries EF sends to SQL – Replace SQL server response with a transient error exception type EF6’s Interception Feature – Use for logging – Use for simulation of transient errors

Exercise 2 – Logging Interface and Class Perform the steps in Exercise 2 – Create Logging Interface and Implementation Class

Interceptor Classes Called each time EF sends a query to the database Classes derive from DbCommandInterceptor class – Override methods that are called when query is about to be executed – Examine or change the query *** OR *** – Return something to EF without sending it to SQL 2 classes – SchoolInterceptorLogging.cs – does logging – SchoolInterceptorTransientErrors.cs – “Throw” in Search string produces dummy transient errors

Interceptor Classes Follow Exercise 3 – Interceptor Classes

Testing – Exercise 4 To test both logging and transient error handling, follow the steps in Exercise 4 Note that not all the output from the logging and exception has been copied – you should be able to see this on your display as you work through the exercise.

Part 04 – What We Did Enabled Connection Resiliency Log SQL commands from EF to database Next: – Use CodeFirst Migrations to deploy to Azure