35
http://dev.office.com/

Micro services architecture and service fabric

Embed Size (px)

Citation preview

Site collection and site provisioning

http://dev.office.com/

Microservices and Azure Service FabricLuis Valencia MVPwww.luisevalencia.comTwitter: @levalencia

http://dev.office.com/

CloudRoadShow 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM2

Agenda

IntroductionMicroservice designService Fabric

http://dev.office.com/

2013 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.2/22/17 2:15 PM3

What is a service

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM4

What is a service, sizing traditional approach.

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM5

Microservices

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM6

What is a service

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM7

Microservices The monolithic

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM8

Emergence of microservices: Why not?

http://dev.office.com/

Microservicios bsicamente introducen un nuevo conjunto de principios de diseo adicionales que le ensean cmo dimensionar un servicio correctamenteOffice Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM9

Emergence of microservices: Benefits

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM10

Microservices: Design Principles

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM11

Approach: High Cohesion

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM12

Microservices: Autonomous

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM13

Approach: Autonomous

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM14

Approach: Autonomous

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM15

Microservices: Business Domain Centric

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM16

Approach: Resilience

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM17

Microservices: Observable

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM18

Approach: Observable

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM19

Approach: Observable

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM20

Approach: Automation

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM21

Approach: Automation

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM22

Service Fabric

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM23

Azure Cloud Services(Web & Worker Roles)

Azure Service Fabric(Services)Each role/instance per VMSlow deployment & upgradesSlow to scale role instances up/downEmulator for developmentMany service instances share a PC/VMFast deployment & upgradesFast to scale service instances up/downOneBox cluster for developmentCloud Services vs Service Fabric

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 7:15 PM24

Datacenter (Azure, Amazon, On-Premises, )

Load BalancerPC/VM #1

Service FabricYour code, etc.PC/VM #2

Service FabricYour code, etc.PC/VM #3

Service FabricYour code, etc.PC/VM #4

Service FabricYour code, etc.PC/VM #5

Service FabricYour code, etc.Service Fabric Cluster with 5 Nodes

Your code, etc.(Port: 19080)Web Request(Port: 80/443/?)*SF supports 1,000s of nodes

25

Cluster Manager (ports 19080 [REST] & 19000 [TCP])Performs cluster REST & PowerShell/FabricClient operations Failover ManagerRebalances resources as nodes come/go NamingMaps service instances to endpoints Image store (not on OneBox)Contains your Application packages Upgrade Service (Azure only)Coordinates upgrading SF itself with Azures SFRPService Fabrics Infrastructure ServicesNode #1

FNode #2

CNINode #3

CFNode #4

NINode #5

CIFNUUUNFUIC

http://dev.office.com/

26

PC/VMFabricHost.exe [Auto-starts at boot]Fabric.exe[Inter-node communication]Your Apps ServicesEx: ASP.NET or other .exe[Exposes public endpoint(s)]FabricGateway.exe[Cluster communication]NodeNode ProcessesOneBox[testing]Fabric.exe[Inter-node communication]Your Apps ServicesEx: ASP.NET or other .exe[Exposes public endpoint(s)]FabricGateway.exe[Cluster communication]Node

27

Creacion Cluster

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM28

Creacion Cluster

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM29

Creacion Cluster

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM30

Demo Service Fabric Explorer

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM31

Demo Actualizacion de un Microservicio

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM32

http://dev.office.com/

Office Developer Platform 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 7:40 PM33

Gracias!!!Luis Valencia MVPwww.luisevalencia.comTwitter: @levalencia

http://dev.office.com/

CloudRoadShow 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.2/22/17 2:15 PM34

http://dev.office.com/