Azure service fabric is a great platform to build reliable and scalable microservices. In this session, we will uncover how we developed multiple specific child bots, orchestrated by a master bot on top of Service fabric to achieve hyper scalability. You will see what designs and principles we applied to overcome various challenges. Next, we’ll dive into how we leveraged Actor programming model to store the bot state reliably within the cluster itself. Then, we'll talk about how we managed to test and troubleshoot using Application Insights and Finally, we publish all the bots through DevOps automation.
Prior to starting these labs, you must have the following operating system and software configured on your local machine:
Operating System
- 64-bit Windows 10 Operating System or Windows Server 2016
- Microsoft .NET Framework 4.6.2 or higher 1
Software
Software | Download Link |
---|---|
Service Fabric SDK 3.1.274 | /download.microsoft.com/service-fabric-sdk |
Service Fabric Tools 3.1.274 | /download.microsoft.com/service-fabric-tools |
Bot Builder SDK 3.15 or higher | /download.microsoft.com/bot-builder-sdk |
Visual Studio 2017 Enterprise | /code.visualstudio.com/download |
Lab Code Template | /VS C# Template |
- Pre-lab: Subscribe for Azure subscription and VSTS subscription
- Lab: Download code template and configure bots to be published in Fabric cluster with Actor Programming model
- Post-lab: Additional Exercise (Optional): Set up of Resources - Service Fabric Cluster, Api Management and Bot Channel Registration
- If you are unsure of what version of the .NET Framework you have installed on your local machine, you can visit the following link to view instructions on determining your installed version: https://docs.microsoft.com/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed.
- If you are unsure of how to create a bot project template, you can visit the following link to view instructions: https://docs.microsoft.com/en-us/azure/bot-service/dotnet/bot-builder-dotnet-quickstart?view=azure-bot-service-3.0.
- If you are unsure of how to create a service fabric project template, you can visit the following link to view instructions: https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/service-fabric/service-fabric-create-your-first-application-in-visual-studio.md.
- If you are unsure of how to create a web api project template, you can visit the following link to view instructions: https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-2.1.
- If you are unsure of how to deploy an application with CI/CD to a Service Fabric cluster, you can visit the following link to view instructions: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-tutorial-deploy-app-with-cicd-vsts.