Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Azure Service Fabric - Hamida Rebai - CCDays

1,297 views

Published on

Service Fabric is the foundational technology introduced by Microsoft Azure to empower the large-scale Azure service. In this session, you’ll get an overview of containers like Docker after an overview of Service Fabric, explain the difference between it and Kubernetes as a new way To Orchestrate Microservices. You’ll learn how to develop a Microservices application and how to deploy those services to Service Fabric clusters and the new serverless Service Fabric Mesh service. We’ll dive into the platform and programming model advantages including stateful services and actors for low-latency data processing and more. You will learn: Overview of containers Overview of Service Fabric Difference between Kubernetes and Service Fabric Setup Environment to start developing an application using Microservices with Service Fabric.

Shared as part of Cloud Community Days on 17th June 2020 - ccdays.konfhub.com

Published in: Software
  • Be the first to comment

Azure Service Fabric - Hamida Rebai - CCDays

  1. 1. Containerize Microservices with Service Fabric Hamida REBAI – Microsoft MVP – Architect @rebaihamida didourebai@gmail.com #CCDaysOnline
  2. 2. Agenda • Microservices Overview • Introduction to Service Fabric and architecture • Prepare the environment • Demo
  3. 3. Faster delivery of features. Digital transformation and business needs Hight availability of services Prepare a qualitative model for estimating migration costs. Perform the migration by limiting the impacts on the company
  4. 4. Monolithic vs Microservices Architecture
  5. 5. Benefits of Microservices Microservices allow to evolve, deploy and scale parts of the application independently. Microservices offer great distributed software challenges. Microservices is for large, scalable and long-term evolving applications.
  6. 6. Microservices architecture and Patterns
  7. 7. Patterns Technologies Microservices Bounded Context API Gateway Event Bus Commands Events Domain Events Mediator Aggregates Domain Entity CQRS simplified Domain-Driven Design Message Brokers Async. communication Autonomous Decoupled Isolated Service Discovery Transient Failures Handling Resiliency Health Checks Retries with Exponential Backoff Circuit Breakers Nomad & addressable services Docker Containers Docker Image Docker Registry Docker Hub Azure Container Registry Docker Host Azure Container Service Azure Service Fabric Kubernetes Docker Swarm Mesos DC/OS Linux Containers Windows Containers RabbitMQ Azure Service Bus NServiceBus MassTransit Hyper-V Containers Brighter Stateful Services Actors Orchestrators Polly
  8. 8. Optimizing for microservice development Tracking multiple deployment pipelines while maintaining agile updates Focusing on business logic instead of microservice platform maintenance Dealing with the complexity of network communications Monitoring and governance at overarching and granular levels Achieving reliable state and data consistency without latency issues Running highly secure applications at scale </> .NET </>
  9. 9. Containers in Azure: a complete Set of Choices Container Instances BatchService Fabric Kubernetes ServiceApp Service
  10. 10. PaaS vs CaaS vs FaaS PaaS et CaaS Azure Service Fabric Azure Service Fabric Mesh CaaS Azure Container Instance Azure Kubernetes FaaS Azure Functions 1 2 3
  11. 11. Service Fabric is a large-scale microservices execution platform Azure Service Fabric is a Microsoft PaaS Service Fabric overview Service Fabric is a distributed systems platform Service Fabric can be deployed on Azure or AWS or OpenStack Service Fabric is not only an Orchestrator for Container
  12. 12. • Service Fabric cluster: a network-connected set of virtual machines (VMs) into which your microservices are deployed and managed. • The nodes are the VMs that belong to the Service Fabric cluster. Service Fabric Cluster structure
  13. 13. Optimizing for microservice development Tracking multiple deployment pipelines while maintaining agile updates Focusing on business logic instead of microservice platform maintenance Dealing with the complexity of interactions and network communications Monitoring and governance at overarching and granular levels Achieving reliable state and data consistency without latency issues Running highly secure applications at scale Build Deploy Operate Flexible infrastructure Lifecycle management 24/7 availability & performance Elastic scalability Microservice and container orchestration Security & compliance Health & monitoring Challenges </> Azure Service Fabric .NET </> Build and deploy containers and microservices on Windows and Linux, at any scale, on any cloud
  14. 14. Programming Models Dev & Ops Tooling Orchestration Lifecycle Management Health & Monitoring Always On Availability Auto Scaling AzureOn-premises infrastructureAny cloudDev machine Service Fabric: cloud application platform Build OperateDeploy
  15. 15. Azure Service Fabric offerings Bring your own infrastructure Service Fabric Standalone On-premisesAny cloud Dev machine Dedicated Azure clusters Azure Service Fabric Azure Service Fabric Mesh Serverless microservices Service Fabric Full Control Fully managed
  16. 16. Azure Service Fabric offerings Bring your own infrastructure Service Fabric Standalone On-premisesAny cloud Dev machine Dedicated Azure clusters Azure Service Fabric Azure Service Fabric Mesh Serverless microservices Virtual machines OS patching Runtime upgrades Capacity planning Network and storage Micro-billing App deployment You Azure Responsibility Cluster capacity Network and storage App deployment Virtual machines OS patching Runtime upgrades Hardware OS patching Runtime upgrades Cluster capacity Network and storage App deployment
  17. 17. Azure Service Fabric is designed for mission-critical services Power BI Dynamics 365 Intune Cortana Skype for business Cosmos DB IoT Hub Event Hub SQL Database Azure Monitor Core Azure Services Archive Storage Visual Studio Team Services Stream Analytics Azure Database for PostgreSQL Azure Database for MySQL Azure Container Registry Event Grid
  18. 18. Service Fabric architecture
  19. 19. Overview Monitoring and diagnostics
  20. 20. Monitoring and diagnostics Azure Service Fabric Explorer Azure Monitoring • Application monitoring • Cluster monitoring • Infrastructure monitoring • Watchdogs
  21. 21. Prerequisites Environment • Windows 10 is required for Docker installation. • Visual Studio 2019 or 2017 has built-in support for Docker • .NET Core SDK • SDK Microsoft Service Fabric • Docker for Windows (optional) • Docker Tools(optional)
  22. 22. Set up your windows development environment to buid Service Fabric
  23. 23. Let’s start … Install Visual Studio 2019 To use Visual Studio 2017 or 2019 Install the Microsoft Azure Service Fabric SDK To use Visual Studio 2015 (requires Visual Studio 2015 Update 2 or later) Install the Microsoft Azure Service Fabric SDK and Tools SDK installation only If you only need the SDK, you can install this package: Install the Microsoft Azure Service Fabric SDK
  24. 24. Set up a local service Fabric Cluster
  25. 25. Create a Service Fabric using Visual Studio
  26. 26. Publish a Service Fabric in Visual Studio
  27. 27. Build a .NET Service Fabric application
  28. 28. Deploy a Service Fabric application to a cluster in Azure
  29. 29. Execute Docker container in Service Fabric
  30. 30. Docker container
  31. 31. Containers App Binaries & Libraries Guest VM OS Container App Container App Container App Container App
  32. 32. Build and execute Docker container in Service Fabric
  33. 33. Stateless Services and Stateful Services Stateless Services - no state is maintained in the service. è Covered in this session Stateful Services - state is stored with the service. èNot Covered in this session. Stateful ServicesStateless Services
  34. 34. Conclusion Microservices Overview Introduction to Service Fabric and architecture Prepare the environment Demo: ü Set up a local service Fabric Cluster ü Create a Service Fabric using Visual Studio ü Publish a Service Fabric in Visual Studio ü Overview Monitoring and diagnostics ü Build a .NET Service Fabric application ü Deploy a Service Fabric application to a cluster in Azure ü Build and execute Docker container in Service Fabric
  35. 35. References https://www.linkedin.com/learning/l-essentiel-d-azure-service-fabric/ https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric- tutorial-deploy-app-to-party-cluster https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric- tutorial-monitoring-aspnet https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric- overview https://www.jamessturtevant.com/posts/Service-Fabric-Service-Types/
  36. 36. ‫ﺷ‬‫ﻛ‬‫ر‬‫ا‬ Hamida REBAI Microsoft MVP Merci Merci

×