SlideShare a Scribd company logo
Service Fabric Deployments
Service Fabric Deployments
NOT
IS
Service Fabric Deployments
Monolithic application approach
• A monolithic application has
most of its functionality within a
few processes that are
componentized with libraries.
• Scales by cloning the app on
multiple servers/VMs/Containers
App 1
App 1
Monolithic application approach Microservices application approach
• A microservice application
separates functionality into
separate smaller services.
• Scales out by deploying each
service independently creating instances of these
services across servers/VMs/containers
• A monolithic application has
most of its functionality within a
few processes that are
componentized with libraries.
• Scales by cloning the app on
multiple servers/VMs/Containers
App 1 App 2
Run and secure
services reliably at
any scale
Operate
Deploy any code at
any scale using tools
you know
Deploy
Build new or
transform existing
applications
Build
Azure Service Fabric
Build, deploy, and operate applications, using any OS, at any scale, on any cloud
Power BI
Dynamics
Intune
Cortana Skype
Cosmos
DB
IoT Hub
Event Hub
SQL Database
Azure
Monitor
Core
Azure
Services
Archive
Storage
Azure
DevOps
Stream
Analytics
Azure
Database for
PostgreSQL
Azure
Database
for MySQL
Azure
Container
Registry
Event Grid
Scenarios powered by Service Fabric
Lift & shift to
containers
Mission-critical
business SaaS
IoT data
processing
Low-latency data
processing apps
…one powerful Microservices platform for Windows Server and Linux.
Any workload, running anywhere.
New cloud-
native apps
From monolith to Microservice
5 stages in a continuum…
... Service Fabric can support any stage you choose
New or
transformed
microservices app
5
Parts of existing
monolith
extracted
4
Existing Monolith + new
microservices
3
Monolith Hosted as
guest executable or
container
2
Traditional app
1
To build, deploy, and operate…
…containers or microservices on any OS on any cloud
Programming
Models
Dev & Ops
Tooling
Orchestration Lifecycle
Management
Health &
Monitoring
Always On
Availability
Auto
Scaling
Azure On-premises infrastructure Other cloudsDev machine
Azure Cloud Services
(Web and Worker Roles)
• 1 service instance per VM with uneven workloads
• Lower compute density
• Slow in deployment & upgrades (VM Bound)
• Slower in scaling and disaster recovery
Azure Cloud Services
(Web and Worker Roles)
Azure Service Fabric
(Microservices)
• 1 service instance per VM with uneven workloads
• Lower compute density
• Slow in deployment & upgrades (VM Bound)
• Slower in scaling and disaster recovery
• Many microservices per VM
• High microservices density
• Fast deployment & upgrades
• Fast scaling and failover within the cluster
Service Fabric Deployments
App1 App2
Service Fabric - Deployment
App Type Packages Service Fabric Cluster VMs
App1 App2
Handling Machine Failures
#FAIL
App Type Packages Service Fabric Cluster VMs
Purple NodesGreen Nodes
App1 App2
Orchestration Basics - Constraints
App Type Packages Service Fabric Cluster VMs
App1 App2
Orchestration Basics - Capacity
App Type Packages Service Fabric Cluster VMs
App1 App2
Orchestration Basics - Balancing
App Type Packages Service Fabric Cluster VMs
App1 App2
Orchestration Basics – Scaleout Service
App Type Packages Service Fabric Cluster VMs
App1 App2
Orchestration Basics – Scaleout Cluster
App Type Packages
UD3
UD2
UD1
App1 App2
Orchestration Basics - Upgrade
App2.1
App Type Packages Service Fabric Cluster VMs
Stateful Microservices - Replication
Primary
Secondary
Replication
App Type Packages Service Fabric Cluster VMs
Node 5Node 4Node 3 Node 6Node 2Node 1
Services can be partitioned for scale-out
You can choose your own partitioning scheme
Service partitions are striped across machines in the cluster
Replicas automatically scale out & in on cluster changes
P2
S
S
S
P4
S
P1
S
P3S
S
S
Service Fabric Deployments
Service Fabric Deployments
Service Fabric Deployments
Service Fabric Deployments
Service Fabric Deployments
Service Fabric Deployments
Service Fabric Deployments
Service Fabric Deployments
Application
Service Service Service
Node Node Node Node
Cluster
Partitions
Services are composed of code/config/data packages
Code packages define an entry point (dll or exe)
Config packages define service specific config information
Data package define static resources (e.g. images)
Packages can be independently versioned
<ServiceManifest Name="QueueService" Version="1.0">
<ServiceTypes>
<StatefulServiceType ServiceTypeName="QueueServiceType" HasPersistedState="true" />
</ServiceTypes>
<CodePackage Name="Code" Version="1.0">
<EntryPoint>
<ExeHost>
<Program>ServiceHost.exe</Program>
</ExeHost>
</EntryPoint>
</CodePackage>
<ConfigPackage Name="Config" Version="1.0" />
<DataPackage Name="Data" Version="1.0" />
</ServiceManifest>
Service Fabric Deployments
Service Fabric Deployments
Voting Application
Service Fabric Deployments
Node “failure”:
Rolling deployment:
Deployment failure:
CI/CD:
Service Fabric Deployments
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-quickstart-dotnet
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-quickstart-containers
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-quickstart-containers-linux
http://aka.ms/ServiceFabricSDK
https://mva.microsoft.com/en-US/training-courses/building-microservices-applications-on-azure-service-fabric-16747
http://aka.ms/ServiceFabricSamples
http://aka.ms/tryservicefabric
https://blogs.msdn.microsoft.com/azureservicefabric/2016/07/06/introduction-to-service-fabric-lab-part-1/
https://stackoverflow.com/questions/tagged/azure-service-fabric
http://aka.ms/ServiceFabricForum
https://github.com/azure/service-fabric-issues
http://aka.ms/ServiceFabricSlack here
here
Service Fabric Deployments
dtoomey@deloitte.com.au
@daniel2me
linkedin.com/in/danieltoomey
mindovermessaging.com
github.com/dtoomey
Service Fabric Deployments
Service Fabric Deployments

More Related Content

PPT
A journey from monolith to micro services
PDF
AWS Innovate: Smaller IS Better – Exploiting Microservices on AWS, Craig Dickson
PDF
App42 PaaS - Application Hosting Platform
PPTX
Service fabric overview
PDF
Automated Security & Continuous Compliance on Microsoft Azure
PDF
56K.cloud Docker Training
PPTX
Continuous Delivery with Elastic Beanstalk And CodePipeline on AWS
PPTX
Deploying Containers on Azure
A journey from monolith to micro services
AWS Innovate: Smaller IS Better – Exploiting Microservices on AWS, Craig Dickson
App42 PaaS - Application Hosting Platform
Service fabric overview
Automated Security & Continuous Compliance on Microsoft Azure
56K.cloud Docker Training
Continuous Delivery with Elastic Beanstalk And CodePipeline on AWS
Deploying Containers on Azure

What's hot (14)

PPTX
Microservices with Azure Service Fabric
PPTX
Securing your cloud perimeter with azure network security brk3185
PPTX
Managing Multi-Cloud and On-Premises with Microsoft Azure
PDF
Testing Framework on AWS Cloud - Solution Set
PDF
Olivier meetup-boston-2013-jan-21-v2
PPTX
VMworld 2015: Build and Run Cloud Native Apps in your Software Defined Data C...
PDF
[Jun AWS 201] Elastic Beanstalk for Startups
PPTX
Going Serverless on AWS
PDF
Siebel Monitoring Tools
PPTX
High Availability in the Cloud - Architectural Best Practices
PPTX
An Introduction to Docker
PPTX
Container cicd
PPTX
A Bit of Everything Chef
PPTX
Azure service fabric
Microservices with Azure Service Fabric
Securing your cloud perimeter with azure network security brk3185
Managing Multi-Cloud and On-Premises with Microsoft Azure
Testing Framework on AWS Cloud - Solution Set
Olivier meetup-boston-2013-jan-21-v2
VMworld 2015: Build and Run Cloud Native Apps in your Software Defined Data C...
[Jun AWS 201] Elastic Beanstalk for Startups
Going Serverless on AWS
Siebel Monitoring Tools
High Availability in the Cloud - Architectural Best Practices
An Introduction to Docker
Container cicd
A Bit of Everything Chef
Azure service fabric
Ad

Similar to Service Fabric Deployments (20)

PPTX
AKS_22Juli.pptx
PDF
AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AK...
PPTX
Azure servicefabric
PPTX
Azure Modern Cloud App Development Approaches 2017
PPTX
This will show docker history details Ppt.pptx
PPTX
Introduction to Docker - 2017
PPTX
Micro services and Containers
PDF
Microservice Architecture Patterns, by Richard Langlois P. Eng.
PPTX
The Microservices world in. NET Core and. NET framework
PDF
Multi-Containers Orchestration with Live Migration and High-Availability for ...
PDF
Creating Microservices Application with IBM Cloud Private (ICP) - Container a...
PDF
Testing the Migration of Monolithic Applications to Microservices on the Cloud
PPTX
Disruptive Trends in Application Development
PPTX
QConSF-MicroServices-IPC-Netflix-Sudhir-2014.pptx
PPTX
Container DevOps in Azure
PPTX
Azure realtime-interview questions - part 7
PPTX
Think Small To Go Big - Introduction To Microservices
PDF
[OpenInfra Days Vietnam 2019] Innovation with open sources and app modernizat...
PDF
Elastic APM: Amping up your logs and metrics for the full picture
PPTX
ServiceFabric-Arch
AKS_22Juli.pptx
AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AKS_2AK...
Azure servicefabric
Azure Modern Cloud App Development Approaches 2017
This will show docker history details Ppt.pptx
Introduction to Docker - 2017
Micro services and Containers
Microservice Architecture Patterns, by Richard Langlois P. Eng.
The Microservices world in. NET Core and. NET framework
Multi-Containers Orchestration with Live Migration and High-Availability for ...
Creating Microservices Application with IBM Cloud Private (ICP) - Container a...
Testing the Migration of Monolithic Applications to Microservices on the Cloud
Disruptive Trends in Application Development
QConSF-MicroServices-IPC-Netflix-Sudhir-2014.pptx
Container DevOps in Azure
Azure realtime-interview questions - part 7
Think Small To Go Big - Introduction To Microservices
[OpenInfra Days Vietnam 2019] Innovation with open sources and app modernizat...
Elastic APM: Amping up your logs and metrics for the full picture
ServiceFabric-Arch
Ad

More from Daniel Toomey (20)

PPTX
Microsoft Azure News - May 2025 - BAUG _
PPTX
Microsoft Azure News - February 2025 - BAUG
PPTX
Microsoft Azure News - January 2025 - BAUG
PPTX
Microsoft Azure News - December 2024 - BAUG
PPTX
Microsoft Azure News - November 2024 - BAUG
PPTX
Microsoft Azure News - October 2024 - BAUG
PPTX
Microsoft Azure News - September 2024 - BAUG
PPTX
Updates from the INTEGRATE 2024 Conference
PPTX
Microsoft Azure News - August 2024 - BAUG
PPTX
Microsoft Azure News - July 2024 -- BAUG
PPTX
Azure Logic Apps & AI - Building Integration & AI Solutions
PPTX
Microsoft Azure News - May 2024 - BAUG'24
PPTX
Azure Logic Apps and Copilot.pptx .
PPTX
Microsoft Azure News - April 2024 .
PPTX
Microsoft Azure News - Feb 2024
PPTX
Microsoft Azure News - Dec 2023
PPTX
Microsoft Azure News - Nov 2023
PPTX
Microsoft AzureNews - Oct 2023
PPTX
Microsoft Azure New - Sep 2023
PPTX
Microsoft Azure News - Aug 2023
Microsoft Azure News - May 2025 - BAUG _
Microsoft Azure News - February 2025 - BAUG
Microsoft Azure News - January 2025 - BAUG
Microsoft Azure News - December 2024 - BAUG
Microsoft Azure News - November 2024 - BAUG
Microsoft Azure News - October 2024 - BAUG
Microsoft Azure News - September 2024 - BAUG
Updates from the INTEGRATE 2024 Conference
Microsoft Azure News - August 2024 - BAUG
Microsoft Azure News - July 2024 -- BAUG
Azure Logic Apps & AI - Building Integration & AI Solutions
Microsoft Azure News - May 2024 - BAUG'24
Azure Logic Apps and Copilot.pptx .
Microsoft Azure News - April 2024 .
Microsoft Azure News - Feb 2024
Microsoft Azure News - Dec 2023
Microsoft Azure News - Nov 2023
Microsoft AzureNews - Oct 2023
Microsoft Azure New - Sep 2023
Microsoft Azure News - Aug 2023

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Approach and Philosophy of On baking technology
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Empathic Computing: Creating Shared Understanding
PDF
KodekX | Application Modernization Development
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Encapsulation theory and applications.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
A Presentation on Artificial Intelligence
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Cloud computing and distributed systems.
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Mobile App Security Testing_ A Comprehensive Guide.pdf
Electronic commerce courselecture one. Pdf
Encapsulation_ Review paper, used for researhc scholars
Approach and Philosophy of On baking technology
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Digital-Transformation-Roadmap-for-Companies.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Empathic Computing: Creating Shared Understanding
KodekX | Application Modernization Development
Machine learning based COVID-19 study performance prediction
Understanding_Digital_Forensics_Presentation.pptx
Encapsulation theory and applications.pdf
NewMind AI Monthly Chronicles - July 2025
A Presentation on Artificial Intelligence
20250228 LYD VKU AI Blended-Learning.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Cloud computing and distributed systems.

Service Fabric Deployments

Editor's Notes

  • #7: Problem with monolithic application is complexity of deployment and lack of scalability at a granular level.
  • #8: Service Fabric allows you to scales services independently, and not limited to one service per virtual machine. Looks complex, right?
  • #9: Visual Studio, Azure DevOps, Yeoman, Octopus Deploy
  • #10: Service Fabric runs several Million cores at Microsoft.
  • #29: The recommended VM SKU is Standard D3 or Standard D3_V2 or equivalent with a minimum of 14 GB of local SSD. Reverse proxy addresses services in the cluster that exposes HTTP endpoints including HTTPS. greatly simplifies calling other services and their methods by having a specific URI format handles the resolve, connect, retry steps required for one service to communicate with another using the Naming Service. Hides the Naming Service from you when calling other services by making this as simple as calling a URL.
  • #33: The certificate must contain a private key. The certificate must be created for key exchange, exportable to a Personal Information Exchange (.pfx) file. The certificate's subject name must match the domain used to access the Service Fabric cluster. This is required to provide SSL for the cluster's HTTPS management endpoints and Service Fabric Explorer. You cannot obtain an SSL certificate from a certificate authority (CA) for the .cloudapp.azure.com domain. Acquire a custom domain name for your cluster. When you request a certificate from a CA the certificate's subject name must match the custom domain name used for your cluster.
  • #35: Objective: Present the Core Concepts that make up a Service Fabric Application Notes: A Service Fabric Application is made up of a collection of Services, where each service id responsible for performing some distinct function. Services are composed of Code, Configuration, and Data, where code is the executable binaries, configuration consists of the service settings that affect its runtime behavior, and data is any arbitrary static data that the service will consume at runtime. Service Fabric supports several different Service models, and can be categorized as being either Stateful Services or Stateless Services (the different service models will be discussed in an upcoming slide.) At runtime, services are deployed into a Cluster, where a cluster is a scalable collection made up of a set of either physical or virtual machines. Each machine (physical or virtual) that is part of a cluster is called a Node. Service Fabric manages distribution of services across the cluster based on placement criteria identified in the service’s configuration and also on the application’s resource balancing needs. The configuration for each service will include a partition scheme for that service, as well as instance and/or replica counts. Services can split data and processing across multiple partitions, which are then spread out across the nodes in a cluster. Stateless services have instances, whereas stateful services have replicas. Instances provide availability, in that in the event of a failure of one instance, the other instances continue to function. Replicas keep the state for a service in sync across multiple partitions; should one replica fail, one of the others will take its place and a new replica will be created.
  • #44: fa