Data Persistence In A Web Hosted World

Slides:



Advertisements
Similar presentations
Svetlin Nakov Director Training and Consulting Activities National Academy for Software Development (NASD) ASP.NET 3.5 New Features.
Advertisements

Introduction to NHibernate By Andrew Smith. The Basics Object Relation Mapper Maps POCOs to database tables Based on Java Hibernate. V stable Generates.
Unit 1: Overview of the Microsoft.NET Platform
Online Construction Estimation Developed By:- Vatsal S. Shah ( ) Dilip K. Babariya ( ) Jimit V. Rajani ( ) Guided by:-
.NET 3.5 SP1 New features Enhancements Visual Studio 2008 SP1 New features Enhancements Additional features/enhancements.
Michael Pizzo Software Architect Data Programmability Microsoft Corporation.
Orchard CMS Deploying to Azure, Orchard CMS 1.5 August 15, 2012 Copyright 2012 Cloud Construct, LLC.
The Jukebox Orian Paz & Yair Cleper Instructor: Viktor Kulikov Semester: Spring 2009 Final Presentation.
LCT2506 Internet 2 Data-driven web sites Week 5. LCT2506 Internet 2 Current Practice  Combining web pages and data stored in a relational database is.
Building a social networking portal on Windows Azure in 1 hour Saranya Sriram Developer Evangelist Microsoft, India.
Discover, Master, InfluenceSlide 1 SQL Server Compact Edition and the Entity Framework Rob Sanders Readify.
Virtual techdays INDIA │ august 2010 Building ASP.NET applications using SQL Server Compact Chaitanya Solapurkar │ Partner Technical Consultant,
Kay Herzam Herzam IT Consulting What‘s new in ASP.NET MS TechTalk.
Cross Platform Mobile Backend with Mobile Services James
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Visual Studio 2012 or 2013 VisualStudio.com (or) Github (or) Bitbucket (or more) Azure Cross-Platform Command Tools Setup if you want to play too.
Membership in ASP.Net...if only Presented by: Patrick Hynds President, CriticalSites Microsoft Regional Director.
Entity Framework Code First End to End
Intro to Entity Framework By Shahed Chowdhuri Don’t drown in database design during WakeUpAndCode.com.
ASP.NET + jQuery + Odata = Goodness Stephen Walther Superexpert.com
Windows Azure Tour Benjamin Day Benjamin Day Consulting, Inc.
Ken Casada Developer Evangelist Microsoft Switzerland WebMatrix: Your Web Made.
Where Do I Go From Here?. Anupam Chakravarty Senior Software Engineer The Atlanta Journal-Constitution Vice-President Gwinnett, Georgia, Microsoft User.
SQL Server User Group Meeting Reporting Services Tips & Tricks Presented by Jason Buck of Custom Business Solutions.
Lap Around Visual Studio 2008 &.NET 3.5 Enhancements.
IOS and Android with Windows Azure Websites Name Title Address Website.
Multi-Tier Apps with Admin Access, RDP, Custom Installs Modern Scalable Web Sites Full Windows Server/Linux VMs Web Sites Virtual Machines Cloud Services.
Microsoft Visual Studio 2005 Tools for the Office System: Building Office Solutions Using Visual Studio 2005 Tools for Office Andrew Coates Developer Evangelist.
Technology Drill Down: Windows Azure Platform Eric Nelson | ISV Application Architect | Microsoft UK |
2 Behind every great site, there is great data Eric Nelson Developer Evangelist Microsoft UK
NAV Introduction to ODATA Web Services: How to easily publish your NAV data to the outside world Cristian Nicola,
Data Access Methodologies: When to choose what (ADO.NET, Entity Framework, WCF Data Services) Wriju Ghosh Lead Partner Consultant, Microsoft.
Exploring Networked Data and Data Stores Lesson 3.
Windows Azure: Is the Relational Database Dead? Benjamin Day
Website Deployment Week 12. Software Engineering Practices Consider the generic process framework – Communication – Planning – Modeling – Construction.
Building Enterprise Applications Using Visual Studio®
Introducing the Microsoft® .NET Framework
Presented By: Jessica M. Moss
LINQ for SQL SQL Saturday May 2009 David Fekke.
Introduction to ASP.NET 2.0
Chris Menegay Sr. Consultant TECHSYS Business Solutions
What is SharePoint and why you should care
LiNQ SQL Saturday David Fekke.
Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek
ASP.NET 3.5 Mike Ormond Developer & Platform Group Microsoft Ltd
Developing an app for SharePoint autohosted in Azure
CO6025 Advanced Programming
Learn. Imagine. Build. .NET Conf
PaaS - Development Stefan Geiger Gerry
Populating a Data Warehouse
Populating a Data Warehouse
Populating a Data Warehouse
SharePoint hosting 101 Where do I host my apps?
Populating a Data Warehouse
Populating a Data Warehouse
Populating a Data Warehouse
Please thank our sponsors!
Tech Ed North America /1/ :36 AM Required Slide
DAT381 Team Development with SQL Server 2005
Visual Studio 2005 Tools For Office: Creating A Multi-tier Application
Pablo Castro Software Architect Microsoft Corporation
Developing for Windows Azure
Sayed Ibrahim Hashimi Program Manager Microsoft Corporation
SSIS Data Integration Data Warehouse Acceleration
SSIS Data Integration Data Warehouse Acceleration
7/19/2019 2:53 AM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Visual Studio 2008.
Introduction to ASP.NET Parts 1 & 2
.NET Framework V3.5+ & RESTful web services
SSIS Data Integration Data Warehouse Acceleration
Presentation transcript:

Data Persistence In A Web Hosted World

Jeff Ammons The Atlanta Journal-Constitution GGMUG.com Developer/DBA GGMUG.com President Gwinnett, Georgia, Microsoft User Group 2nd Thursday, 6:30 PM Gwinnett Tech Blog: http://ammonsonline.com/jeffablog

Agenda Define Hosted Environment Explore Data Persistence Options DBA Tasks With Hosted SQL Server Data Access With LINQ and Entity Framework

What Is Hosted Environment? Web Shared Server Managed By Hosting Company

What’s Included? Web Server File Storage Database Bandwidth Email

Examples GoDaddy Hostgator DiscountASP.net Bizhostnet.com

Who Is This Environment For? Start-ups Non-profit organizations Personal use

Why Choose A Hosted Env? Lost cost ($5-$20/month) Quick Start Fewer People Required No hardware to buy No hardware to maintain No server room

Challenges Server Access Server Options Server Load Dude, Where’s My Data? Dude, Who Can See My Data?

Microsoft vs FOSS: The FOSS Advantage Lots of FOSS based sites (LAMP) Lots of FOSS sample code Zero start-up cost MS stack seen as ugly and corporate-looking

Microsoft vs FOSS: The Empire Strikes Back Asp.Net MVC JQuery supported OFFICIALLY Visual Studio Express Edition BizSpark WebsiteSpark You CAN achieve zero start-up cost You CAN make good looking sites

Asp.Net Options SharePoint WebForms MVC ASP.NET

Data Persistence Options MySQL SQL Server File Based XML JSON

Why Not MySQL? .Net naturally works better with SQL Server LINQ To SQL works ONLY with SQL Server Entity Framework support for MySQL is dodgy This is NOT MySQL Saturday…

SQL Server $15/month = Unlimited 200 MB DBs Good basic set of functionality Choice of access methods LINQ To SQL Entity Framework ADO Etc.

SQL Server and MySQL

What’s Missing? Missing In Action Alternative Agent Wish You Had Agent SSIS SSRS SSAS Wish You Had Agent Stored Procs ASP App Perhaps With Silverlight, why not? None

Types Of Access Direct Access Web Admin SQL Server Management Studio Expose YOUR database directly to the Internet Web Admin Primitive tools CYDB

Typical DBA Tasks Set Up Backups/Restores Imports/Exports Schemas Tables Indexes Views Stored Procedures Backups/Restores Imports/Exports

Demo Time

Developer/DBA Developers vs DBAs Objects vs Relational Data ORM

What Is LINQ? Language INtegrated Query SQL-like language construct for .Net Joins Tables Objects Both Aggregation Selection

Example LINQ Query var orderedModuleList = from module in itemList.getList() orderby module.Name select module;

LINQ To Lots Of Stuff LINQ To Entities LINQ To SQL LINQ To Objects LINQ To XML

File System Options POCO (Built-in .Net Serialization) XML

Why? Why? Why? Not ALL apps need relational databases SMALL datasets Burn the heretic!!! SMALL datasets Lots of Readers/Few Publishers Blog Informational site Personal site Excessive DB Traffic

Example Custom ASP.Net Membership Provider Basic log-on info Works great with 10-30,000 users Total DOG with 500,000 users No calls to DB server Most start-ups would KILL to get 10,000 users

Demo Time

Goals For Your Project Website itself Web app others can use

Strategy 1: SQL Server Your hosting plan gives you all the DBs you need Latency of calling DB server is acceptable Don’t kill yourself by calling DB too much Cache, Cache, Cache

Strategy 2: File System Now, SQL Server Later Repository Pattern LINQ lets you query object collections Switch to SQL Server if you grow Not as big a deal as it once was SQL Server now pretty cheap

Helpful Links MSDN: Dynamic Management Views and Functions http://msdn.microsoft.com/en-us/library/ms188754.aspx SQLServerCentral http://www.sqlservercentral.com/ SQLBlog http://sqlblog.com/

Helpful Queries SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition') select top 100 * from sys.dm_tran_locks select login_name, count(1) from sys.dm_exec_sessions group by login_name order by count(1) desc SELECT creation_time ,cursor_id ,name ,c.session_id ,login_name FROM sys.dm_exec_cursors(0) AS c JOIN sys.dm_exec_sessions AS s ON c.session_id = s.session_id WHERE DATEDIFF(mi, c.creation_time, GETDATE()) > 5;