Mick Badran Using Microsoft Service Fabric to build your next Solution with zero downtime – Lvl 300 CLD32 5.

Slides:



Advertisements
Similar presentations
A Ridiculously Easy & Seriously Powerful SQL Cloud Database Itamar Haber AVP Ops & Solutions.
Advertisements

1 © Copyright 2010 EMC Corporation. All rights reserved. EMC RecoverPoint/Cluster Enabler for Microsoft Failover Cluster.
Microsoft Ignite /16/2017 2:42 PM
Features Scalability Availability Latency Lifecycle Data Integrity Portability Manage Services Deliver Features Faster Create Business Value.
Building Resilient, Scalable Services with Microsoft Azure Service Fabric Mark Fussell Principal Program Manager Vipul Modi Principal Software.
Overview Of Microsoft New Technology ENTER. Processing....
1© Copyright 2011 EMC Corporation. All rights reserved. EMC RECOVERPOINT/ CLUSTER ENABLER FOR MICROSOFT FAILOVER CLUSTER.
Running Your Database in the Cloud Eran Levin VP R&D - Xeround.
Manage & Configure SQL Database on the Cloud Haishi Bai Technical Evangelist Microsoft.
Components of Windows Azure - more detail. Windows Azure Components Windows Azure PaaS ApplicationsWindows Azure Service Model Runtimes.NET 3.5/4, ASP.NET,
Migrating Business Apps to Windows Azure Marc Müller Principal Consultant, 4tecture GmbH
Austin code camp 2010 asp.net apps with azure table storage PRESENTED BY CHANDER SHEKHAR DHALL
Virtual techdays INDIA │ august 2010 SQL Azure – Tips and Tricks Ramaprasanna Chellamuthu │ Developer Evangelist, Microsoft.
Cloud Computing & Amazon Web Services – EC2 Arpita Patel Software Engineer.
Windows Azure Conference 2014 Deploy your Java workloads on Windows Azure.
AZR308. Building distributed systems on an abstraction against commodity hardware at Internet scale, composed of multiple services. Distributed System.
Building micro-service based applications using Azure Service Fabric
The microservices approach Scales by cloning the app on multiple servers/VMs/Containers Monolithic application approach Microservices application.
Pierre Sleep tight knowing you’re prepared for outages Protect your environment with Azure ARC32 4.
Andrew Hennessy Automating Server Application migrations to the Cloud – Goodbye Server INF21 3.
Kevin Francis Developing on Windows Devices ARC33 2.
Chris Hewitt Adding magic to your business with Perceptual Intelligence ARC323 B.
Matt McSpirit Software-defined Networking in Windows Server 2016 INF32 4.
Kevin Francis Azure Media Services Architecture Deep Dive CLD31 2.
Creating highly available and resilient Microservices on Microsoft Azure Service Fabric
Michael Porfirio and Chris Gondek Beyond Backup The Next Generation Commvault Data Platform DAT22 5.
Mahesh Krishnan Architecting highly resilient applications on Azure ARC42 7.
Jessica Payne Microsoft Global Incident Response and Recovery
James Bannan Freddy vs JSON: Azure Resource Manager CLD44 3.
Warwick Rudd – Henry Rooney – How Available is SQL Server 2016? DAT33 6.
Features Scalability Manage Services Deliver Features Faster Create Business Value Availability Latency Lifecycle Data Integrity Portability.
Please note that the session topic has changed
Matt McSpirit Understanding the Azure Stack INF33 2.
Building a Microservices solution using Docker,
Technology Drill Down: Windows Azure Platform Eric Nelson | ISV Application Architect | Microsoft UK |
Basil Apostolou & Craig Pringle The why and how of hybrid cloud CLD22 3.
Building Cloud Solutions Presenter Name Position or role Microsoft Azure.
Kevin Francis Big Building Blocks – a tour of Dynamics ARC323 A.
(re)-Architecting cloud applications on the windows Azure platform CLAEYS Kurt Technology Solution Professional Microsoft EMEA.
James Bannan The Cloud That Chuck Norris Built: Resilient Architecture in Azure ARC44 3.
And scales by cloning the app on multiple servers/VMs/Containers Traditional architecture approach Microservices architecture approach A microservice.
Building web applications with the Windows Azure Platform Ido Flatow | Senior Architect | Sela | This session.
Agility Dev TestDeploy Learn Agility.
The best of WF 4.0 and AppFabric Damir Dobric MVP-Connected System Developer Microsoft Connected System Division Advisor Visual Studio Inner Circle member.
 Cloud Computing technology basics Platform Evolution Advantages  Microsoft Windows Azure technology basics Windows Azure – A Lap around the platform.
Sam Vanhoutte CTO Codit, Integration MVP Azure Service Fabric: notes from the field.
Microservice Best Practices Lessons Learned from Azure Service Fabric Mark Russinovich CTO, Microsoft
3 Ways to Integrate Business Systems to Partners
Build /26/2018 6:17 AM Building Resilient, Scalable Services with Microsoft Azure Service Fabric Érsek © 2015 Microsoft Corporation.
BRK1036 Building applications with Microsoft Azure Service Fabric on Windows and Linux Subramanian Ramaswamy (Mani) Sean McKenna
Modern Backends Service Fabric & Actor Model Damir Dobric, daenet.
Microservices with Azure Service Fabric Building and Running Services at Scale
Need for Speed: Why Applications With No Database and No Services are Fast ARC334 Nick Randolph – Built to Roam.
Microsoft Azure Service Fabric Overview
Service Fabric Patterns & Best Practices
Service Fabric Patterns & Best Practices
Cloud Database Based on SQL Server 2012 Technologies
Microsoft Azure Service Fabric
2017 Real Questions
Microsoft Build /8/2018 5:15 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Outline Virtualization Cloud Computing Microsoft Azure Platform
Clouds & Containers: Case Studies for Big Data
Modern cloud PaaS for mobile apps, web sites, API's and business logic apps
Saranya Sriram Developer Evangelist | Microsoft
Jonathan Ruckert & Darren Neimke
UI test automation of MVC apps with Microsoft Edge WebDriver
Securing ASP.NET in an Azure Environment
Johan Lindberg, inRiver
Presentation transcript:

Mick Badran Using Microsoft Service Fabric to build your next Solution with zero downtime – Lvl 300 CLD32 5

MOQdigital Azure MVP, Insider & Doing mo-vember Who Am I

Agenda  What is Service Fabric  Demo – Stateless and Stateful counters  Service Fabric Applications  Demo - Reliable Service API Stateful Word count service  Service Fabric Clusters  Demo – Stateful Microservices – causing chaos  Upgrading Apps with no downtime  Demo – No Downtime Upgrade  Wrap Up…

Application development in the age of the Cloud Features Scalability Manage Services Deliver Features Faster Create Business Value Availability Latency Lifecycle Data Integrity Portability

Microsoft Azure Service Fabric A platform for reliable, hyperscale, microservice-based applications

Battle-hardened for over 5 years

What is a microservice? Is (logic + state) that is independently versioned, deployed, and scaled Has a unique name that can be resolved e.g. fabric:/myapplication/myservice Call other Microservices Remains always logically consistent in the presence of failures Hosted inside a “container” (code + config)

What can you build with Service Fabric Stateless applications A service that has state where the state is persisted to external storage, such as Azure databases or Azure storage  e.g. Existing web (ASP.NET) and worker role applications Stateful applications Reliability of state through replication and local persistence Reduces latency Reduces the complexity and number of components in traditional three tier architecture Existing apps written with other frameworks node.js, Java VMs, any EXE

Installing Service Fabric

Reliable Actor API  Build reliable stateless and stateful objects with a virtual Actor Programming Model  Suitable for applications with multiple independent units of state and compute  Automatic state management and turn based concurrency (single threaded execution)

Demo: Stateful and Stateless Counters

Application Package Unit of Lifetime Versioning Isolation Counter Service type Counter WebApp type Defining applications and services Counter Service Pkg Code Config Counter WebApp Pkg Application Type

Instantiating an application  ServiceType is “like” a.NET CLR type (class CounterServiceType)  ApplicationType is “like” a typed Container (CounterAppType : ServiceContainer where TServiceType is CounterServiceType, ServiceType2  ApplicationInstance is an instance of the ApplicationType and has an unique name “fabric:/CounterApplication”  Each service instance has a unique name in the “namespace” of the application “fabric:/CounterApplication/CounterService” Service Package B Service Package A Service Package B Service Package A Service Package B Service Package A Service Package B Service Package A

Reliable Collections  Reliable collections make it easy to build stateful services.  Evolution of the.NET collections for the cloud

Reliable Services API  Build stateless services using existing technologies such as ASP.NET  Build stateful services using reliable collections  Manage the concurrency and granularity of state changes using transactions  Communicate with services using the technology of your choice ( e.g WebAPI, WCF )

Demo: Reliable Service API Stateless Word count service

Cloud Services Azure Tables/NoSQL Reliable Azure Queue Service Fabric (Stateful) Word count service Cloud Service vs Stateful Service Fabric

Demo: Reliable Service API StateFUL Word count service

A set of machines that Service Fabric stitches together to form a cluster Clusters can scale to 1000s of machines Cluster: A federation of machines Node

Service Fabric Subsystems Microservices

Nodes failed Machine failure detection Time = t New Node arrived 61 Time = t Failures Detected cluster reconfigured Time = t 0

Queues Storage 3-Tier service pattern Front End (Stateless Web) Stateless Middle-tier Compute Cache  Scale with partitioned storage  Increase reliability with queues  Reduce read latency with caches  Manage your own transactions for state consistency  Many moving parts each managed differently Load Balancer

Stateful Middle-tier Compute Stateful services: Simplify design, reduce latency Front End (Stateless Web) data stores used for analytics and disaster recovery  Application state lives in the compute tier  Low Latency reads and writes  Partitions are first class for scale-out  Built in transactions  Fewer moving parts Load Balancer

Stateful microservices are reliable and consistent Each service is backed by replica set to make its internal state reliable All replicas are logically consistent – meaning all replicas see the same linearised order of read and write operations to initial state Read-Write quorums are supported and are dynamically adjusted Replica set is dynamically reconfigured to account for replica arrivals and departures

Stateful microservice Application Package replication

Replication  Reads are completed at the primary  Writes are replicated to the write quorum of secondaries P S S S S Write Ack Read Value Write Ack

Reconfiguration  Types of reconfiguration  Primary failover  Removing a failed secondary  Adding recovered replica  Building a new secondary  Replica States  None  Idle Secondary  Active Secondary  Primary P S S S S S Must be safe in the presence of cascading failures B P Failed

Application: logical grouping of microservices Application

Application Lifecycle Management Provisioning and deployment of fellow microservices Upgrade microservices without loss of availability Monitor microservices Interface with machine management layer for autoscale and initiating reboot, reimage, and repair actions Provide operational insight into aggregate utilisation – inventory, performance counters/metrics, etc. – for capacity planning

Upgrading Services with zero downtime Application Package

Application development in the age of the Cloud Features Scalability Manage Services Deliver Features Faster Create Business Value Availability Latency Lifecycle Data Integrity Portability

Mick

Continue your Ignite learning path Visit Microsoft Virtual Academy for free online training visit Visit Channel 9 to access a wide range of Microsoft training and event recordings Head to the TechNet Eval Centre to download trials of the latest Microsoft products