The microservice architectural style promotes the development of complex applications as a suite of small services based on specific business capabilities. This course will help you take a hands-on approach to build microservices and deploy them using ASP .NET Core and Microsoft Azure.
Apart from the deprecated Azure Cloud Services there are three main options to create microservices on Azure:
- Azure Container Service
Microsoft’s implementation of open-source container technologies based on Docker.
- Azure Service Fabric
Allows focusing on business objectives and not infrastructure.
- Azure Functions
Another viable option to build microservices, Allows you to write functions in a language of your choice directly on the Azure portal. Each function essentially becomes a mini version of a microservice.
In this lesson, let’s take a closer look at Azure Service Fabric which is the most popular option to create microservices on Azure.
What is Azure Service Fabric?
Azure Service Fabric is a Microsoft’s cloud-based Platform-as-a-Service(PaaS) offering to build and deploy microservices-based applications. It is a distributed systems platform that makes it easy to package, deploy, and manage scalable and reliable microservices and containers.
Why Azure Service Fabric?
- Azure Service Fabric provides developers a single platform that fixes many of the issues associated with building cloud-based distributed applications.
- Service Fabric is a platform that makes it easier to build and deploy microservices-based applications, handling both stateful and stateless operations.
- Service Fabric will run on any Windows system and there’s also a Linux version, which means that it’s portable across multiple cloud environments including Amazon Web Services, OpenStack, and VMware.
- Service Fabric provides lifecycle management capabilities to microservice-based applications. The microservices are hosted inside containers that are deployed across the Service Fabric cluster. Using containers instead of virtual machines means a massive increase in density and greater still density can be achieved by moving from containers to microservices in these containers.
Capabilities of Service Fabric
The key capabilities of Service Fabric include:
- Develop scalable microservices
- Microservices on Service Fabric can be stateless or stateful.
- Write code once and then deploy it to any Service Fabric cluster.
- Deploy applications quickly and at a high density.
- Upgrade applications independently.
- Monitor the health of your application and set policies for automatic repairs.
- Manage the life cycle of your applications without any downtime.
Ways to create a microservice on Azure Service Fabric
- Reliable Services
This is the simplest way to create a microservice with Service Fabric. It is similar to creating the classic windows service. It is divided into two subtypes. Stateless Services, which many ways looked and acted as a console application and Stateful microservices which are state of the art, self-contained microservice with its own transactional replicated storage.
- Reliable Actors
Virtual actor design pattern and it is built on top of the stateful Reliable Service framework. Suitable for handling the massive amounts of client requests with large compute and scale.
- Guest Executables
Ability to take any application, written in any language to run it with Service Fabric after a few configuration changes.
You might be interested in the following courses: