SERVICE FABRIC Haishi DX, 2016. Agenda Basic concepts Exercise 1: Creating a stateless Calculator web API. Exercise 2: Testing stateful service failover.

Slides:



Advertisements
Similar presentations
ASP.NET Ajax Supplementary Tutorial. Why Use ASP.NET AJAX? - I ASP.NET AJAX enables you to build rich Web applications that have many advantages over.
Advertisements

Excel Tutorial 6 Managing Multiple Worksheets and Workbooks
Microsoft Office 2007 Microsoft Excel Collaboration Feature Using SharePoint and Excel Services.
“It’s going to take a month to get a proof of concept going.” “I know VMM, but don’t know how it works with SPF and the Portal” “I know Azure, but.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Features Scalability Availability Latency Lifecycle Data Integrity Portability Manage Services Deliver Features Faster Create Business Value.
Integrating Access with the Web and with Other Programs.
1 of 4 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Windows Azure for scalable compute and storage SQL Azure for relational storage for the cloud AppFabric infrastructure to connect the cloud.
Module 3: SQL Server 2005 Administrative Tools. Overview Using SQL Server Management Studio Using SQL Computer Manager Using the sqlcmd Utility Using.
Subtitle color From Windows Azure From Outside Microsoft Datacenter From Outside Microsoft Datacenter & Windows Azure Application / Browser Windows.
® IBM Software Group © 2006 IBM Corporation The Eclipse Data Perspective and Database Explorer This section describes how to use the Eclipse Data Perspective,
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Sharepoint Portal Server Basics. Introduction Sharepoint server belongs to Microsoft family of servers Integrated suite of server capabilities Hosted.
Manage & Configure SQL Database on the Cloud Haishi Bai Technical Evangelist Microsoft.
CIS 205—Web Design & Development Integration Chapter 1.
Windows Azure SQL Database and Storage Name Title Organization.
Creating a Website. Unit Objectives Plan a website Create a folder for website management Set up a website Add a folder to a website Save a web page Copy.
2 Copyright © 2009, Oracle. All rights reserved. Getting Started with Warehouse Builder.
Subtitle color From Windows Azure From Outside Microsoft Datacenter From Windows Azure & Outside Microsoft Datacenter Application / Browser Windows.
Several Ways to Print in Windows 98 by Ralph Godinez.
COMPREHENSIVE Windows Tutorial 9 Maintaining Hardware and Software.
IT 211 Project Integration and Deployment Lab #11.
Virtual techdays INDIA │ august 2010 SQL Azure – Tips and Tricks Ramaprasanna Chellamuthu │ Developer Evangelist, Microsoft.
Microsoft Office 2007 PowerPoint Web Feature Creating Web Pages Using PowerPoint.
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
1 Chapter Overview Creating Drive and Folder Shares Using Distributed File System Installing Network Printers Administering Network Printers Managing Share.
© Chinese University, CSE Dept. Distributed Systems / Simple Example Open Microsoft Visual Studio 2005:
Macromedia Dreamweaver 8-- Illustrated Introductory 1 Macromedia Dreamweaver 8 Unit B Creating a Web Site.
Unit 5 Microsoft SQL Server and MySQL. Key Concepts DBMS variations SQL Server features SQL Server Management Studio MySQL features Scripts Queries Database.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Windows Azure Conference 2014 LAMP on Windows Azure.
Building micro-service based applications using Azure Service Fabric
Module 8: Managing Software Distribution. Collections Packages Programs Advertisements Collections Packages Programs Advertisements How Software.
Module 9: Using XML Web Services in a C# Application.
Creating highly available and resilient Microservices on Microsoft Azure Service Fabric
1 After completing this lesson, you will be able to: Get around the Internet with your browser. Connect to the Internet. Print Web pages. Save Web pages.
Windows Azure Fundamentals Services Storage. Table of contents Overview Cloud service basics Managing cloud services Cloud storage basics Table storage.
Install a Windows Service Application Windows Development Fundamentals LESSON 3.2.
Azure databases 1. Azure storage possibilities Azure offers several storage possibilities Microsoft SQL Server database MySQL database Azure Document.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Azure in a Day Training: Windows Azure Module 1: Windows Azure Overview Module 2: Development Environment / Portal – DEMO: Signing up for Windows Azure.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
Features Scalability Manage Services Deliver Features Faster Create Business Value Availability Latency Lifecycle Data Integrity Portability.
Mick Badran Using Microsoft Service Fabric to build your next Solution with zero downtime – Lvl 300 CLD32 5.
And scales by cloning the app on multiple servers/VMs/Containers Traditional architecture approach Microservices architecture approach A microservice.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
3 Copyright © 2006, Oracle. All rights reserved. Building an Analytic Workspace.
AZURE AD Haishi DX, Agenda Basic concepts Exercise 1: Creating a new Azure AD tenant and a new user Exercise 2: Enable web app Azure AD authentication.
Sam Vanhoutte CTO Codit, Integration MVP Azure Service Fabric: notes from the field.
Architecting Enterprise Workloads on AWS Mike Pfeiffer.
Microservice Best Practices Lessons Learned from Azure Service Fabric Mark Russinovich CTO, Microsoft
Dive Into® Visual Basic 2010 Express
Build /26/2018 6:17 AM Building Resilient, Scalable Services with Microsoft Azure Service Fabric Érsek © 2015 Microsoft Corporation.
Exercise 3: Configuring User Home Folders
Secrets to Fast, Easy High Availability for SQL Server in AWS
MSSQL Server management
Introduction to the Visual C# 2005 Express Edition IDE
Reliable Services Jeffrey Richter Microsoft Azure Service Fabric.
Microsoft Azure Service Fabric Overview
Relational databases, and more …
Microsoft Office Access 2003
Learn. Imagine. Build. .NET Conf
Microsoft Office Access 2003
Windows Tutorial 9 Maintaining Hardware and Software
These slides are for reference only. They are not "lecture notes"
5 Azure Services Every .NET Developer Needs to Know
Working with Libraries
Tutorial 8 Sharing, Integrating, and Analyzing Data
Johan Lindberg, inRiver
Presentation transcript:

SERVICE FABRIC Haishi DX, 2016

Agenda Basic concepts Exercise 1: Creating a stateless Calculator web API. Exercise 2: Testing stateful service failover.

BASIC CONCEPTS

Service Fabric Overview Build cloud-scale distributed applications Microservices architecture Proven service SQL Database, Document DB, Intune, Power BI, Skye for Business, Cortana, Data Factory… Run anywhere Azure, on-premises, Azure Stack, AWS Windows and Linux Container integration

Service Fabric Application Business Layer Data Layer Presentation Layer Web Role Worker Role Database

Separation between workload and resources

Stateless vs. Stateful add(a, b) add (3,5) 8 add(a) add (3) 3 38 add (5)8

Scaling stateless service add(a, b) Load balancer add(a, b)

Scaling stateful service add(a) Load balancer add(a) 5 3

Scaling stateful service – externalize state add(a) Load balancer add(a) 5 3 8

Scaling stateful service - affinity add(a) Load balancer add(a) 3 8

Load balancer add(a) Scaling stateful service - replication

Scaling stateful service - partition routing add(a)

Service Fabric cluster

EXERCISE 1 Creating a stateless Calculator web API

Steps 1. Launch Visual Studio 2015 as administrator. 2. Create a new Service Fabric Application. 3. On New Service Fabric Service dialog, select the Stateless Web API template, and click on the OK button. 4. Update the ValuesController to container one method: [HttpGet] public int Add(int a, int b) { return a + b; }

Steps 5. Press F5 to launch the application. 6. Open a browser, and navigate to 7. Expand the cluster tree all the way to the node level. Switch to DETAILS view. 8. Note down the port being used. 9. Open another tab in browser, and navigate to

EXERCISE 2 Testing stateful service failover

Steps 1. Launch Visual Studio 2015 as administrator. 2. Create a new Service Fabric Application. 3. On New Service Fabric Service dialog, select the Stateful Service template, and click on the OK button. 4. Right-click the project and select the Publish… menu. 5. Publish to Local Cluster.

Steps 6. Open a browser, and navigate to 7. Expand the cluster tree and observe how the replicas are distributed across nodes for the single partition. 8. In the cluster tree, find the node where the primary replica resides. Then, in the right panel, click on the ACTIONS -> Deactivate (restart) menu. 9. Observe that another node is elected as primary. 10. Modify Local.xml under the ApplicationParameters folder to change the number of partitions to Redeploy the application and observe in Service Fabric Explorer how partitions and replicas are distributed.