Book Image

A Developer's Guide to Building Resilient Cloud Applications with Azure

By : Hamida Rebai Trabelsi
Book Image

A Developer's Guide to Building Resilient Cloud Applications with Azure

By: Hamida Rebai Trabelsi

Overview of this book

To deliver software at a faster rate and reduced costs, companies with stable legacy systems and growing data volumes are trying to modernize their applications and accelerate innovation, but this is no easy matter. A Developer’s Guide to Building Resilient Cloud Applications with Azure helps you overcome these application modernization challenges to build secure and reliable cloud-based applications on Azure and connect them to databases with the help of easy-to-follow examples. The book begins with a basic definition of serverless and event-driven architecture and Database-as-a-Service, before moving on to an exploration of the different services in Azure, namely Azure API Management using the gateway pattern, event-driven architecture, Event Grid, Azure Event Hubs, Azure message queues, FaaS using Azure Functions, and the database-oriented cloud. Throughout the chapters, you’ll learn about creating, importing, and managing APIs and Service Fabric in Azure, and discover how to ensure continuous integration and deployment in Azure to fully automate the software delivery process, that is, the build and release process. By the end of this book, you’ll be able to build and deploy cloud-oriented applications using APIs, serverless, Service Fabric, Azure Functions, and Event Grid technologies.
Table of Contents (18 chapters)
1
Part 1: Building Cloud-Oriented Apps Using Patterns and Technologies
5
Part 2: Connecting Your Application with Azure Databases
13
Part 3: Ensuring Continuous Integration and Continuous Container Deployment on Azure

Exercise 4 – creating a .NET Service Fabric application

Service Fabric supports multiple application models. It’s a flexible technology that allows you to host and execute any workload. After installing the Service Fabric SDK, you will be able to use its available templates.

When we run Visual Studio 2022 and select Service Fabric template, many models appear, as shown in the screenshot:

Figure 5.18 – Service Fabric template models

Figure 5.18 – Service Fabric template models

We will start with an application model that is considered to have reliable services. These services use the native API of Service Fabric. We have three different types of reliable services: stateless, stateful, and actors. The difference between stateful and stateless services is that in stateless services, no state is maintained in the service, but for stateful services, the state is stored with the service.

Moreover, we can use both .NET Core and .NET Framework runtimes to build reliable services...