Book Image

A Developer's Guide to Cloud Apps Using Microsoft Azure

By : Hamida Rebai Trabelsi
Book Image

A Developer's Guide to Cloud Apps Using Microsoft Azure

By: Hamida Rebai Trabelsi

Overview of this book

Companies face several challenges during cloud adoption, with developers and architects needing to migrate legacy applications and build cloud-oriented applications using Azure-based technologies in different environments. A Developer’s Guide to Cloud Apps Using Microsoft Azure helps you learn how to migrate old apps to Azure using the Cloud Adoption Framework and presents use cases, as well as build market-ready secure and reliable applications. The book begins by introducing you to the benefits of moving legacy apps to the cloud and modernizing existing ones using a set of new technologies and approaches. You’ll then learn how to use technologies and patterns to build cloud-oriented applications. This app development book takes you on a journey through three major services in Azure, namely Azure Container Registry, Azure Container Instances, and Azure Kubernetes Service, which will help you build and deploy an application based on microservices. Finally, you’ll be able to implement continuous integration and deployment in Azure to fully automate the software delivery process, including the build and release processes. By the end of this book, you’ll be able to perform application migration assessment and planning, select the right Azure services, and create and implement a new cloud-oriented application using Azure containers and orchestrators.
Table of Contents (20 chapters)
1
Part 1 – Migrating Applications to Azure
6
Part 2 – Building Cloud-Oriented Applications Using Patterns and Technologies in Azure
10
Part 3 – PaaS versus CaaS to Deploy Containers in Azure
14
Part 4 – Ensuring Continuous Integration and Continuous Deployment on Azure
17
Assessments

Scaling apps in Azure App Service

Autoscaling allows the system to adjust the resources needed to meet the needs of different users while controlling the costs associated with those resources. Autoscaling is available for many Azure services, including web applications. Autoscaling requires the configuration of autoscaling rules that specify the conditions under which resources are added or removed.

When we run an application in a production environment, the first thing to think about is scalability. We need to understand the difference between scaling up vertically and scaling out horizontally.

If we run a virtual machine using the Standard_A1_v2 App Service plan (which means that we have 1 CPU core and 2 GB of memory and over time, the application demands more resources), we can easily just go to the properties of that virtual machine or make an API call to make the virtual machine bigger. We can change it to a different size, for example, changing to the Standard_A8m_v2 App...