Overview of Azure Compute - Part 1
1. Overview of Azure Compute - Part 1
In this video, we’ll explore Azure’s core compute capabilities in more depth.2. Serverless vs. Stateless
Before we go any further, let’s clarify two concepts - serverless and stateless. Serverless computing isn’t about the absence of servers but instead about abstracting the infrastructure. This enables developers to focus on code while resources are auto-scaled as needed. Stateless computing, conversely, means that it does not retain any data and, therefore, won’t recall any past interactions. This means that every request is treated as new, which ensures efficiency but can lack continuity. Think of it like a vending machine; the purchase you make is entirely independent of the purchase of the previous and future user.3. What is Compute?
Now, what do we mean when we say Compute? Within Azure, compute refers to the hosting model for the resources that your application runs on. We’ll focus on the three core Compute offerings: Virtual Machines, Azure App Service, and Azure Functions.4. Virtual Machines
Virtual machines provide on-demand, scalable, and customizable computing power. It’s like having all the power and functions of a physical server within a virtualized environment. The flexibility means you can easily create and delete digital versions of physical computers. You might only need one computer or more than one - you can easily upscale and downscale as needed.5. Virtual Machines
Virtual machines offer complete control over the operating system and its applications. It is ideal if you need complete control of the OS or a specific software version like a specific Python release.6. Virtual Machines
With Azure, there are various OS options, including Windows and Linux. They provide a recognizable environment for your applications but are customized to suit your performance needs.7. Virtual Machines
One example of how you may use a virtual machine is that you may have an application for traffic optimization in smart cities that requires specific software versions. You can easily create a virtual machine to manage this and isolate it from other applications needing newer software versions.8. App Service
Azure App Service is a solution that supports web application and mobile development. It enables you to easily build, deploy, and scale your applications and APIs on your terms. This enables developers to focus on writing code and building applications while Azure takes care of the underlying infrastructure. It supports multiple languages and frameworks. Azure App Service utilizes continuous integration and deployment by connecting to tools such as Github, Bitbucket, and Azure repositories. This enables developers to work on the latest updates and work within different branches to manage their code easily.9. Functions
Azure Functions is a serverless compute service that allows for event-driven code to be executed without the hassles of managing infrastructure. Imagine intelligent traffic lights in the city; these will adapt and change based on certain triggers, such as the number of cars in traffic and pedestrian needs like crossing a junction. Similarly, with Azure Functions, you can trigger code based on changing events such as HTTP requests, database changes, or any event you are specifically targeting. It can then auto-scale to demand and maintain the application's responsiveness.10. Summary
Azure Compute offers scalable resources tailored to demand, making it cost-effective with a pay-as-you-go model, especially for sporadic workloads. With many fully managed services, Microsoft oversees the infrastructure, updates, and patching, enabling you to concentrate on application development instead of hardware management.11. Let's Practice
Let's dive into some exercises and check what you have learned.Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.