What is Scaling?
Scaling in Web Applications world refers to adaptability to changed load and traffic. Availability and Performance are the most important aspects of any Web Application. Hence, any Web App should be able to adapt to the changed amount of workload and traffic that it gets.When we deploy our web apps to azure, it is called an instance. It is allocated certain amount of hardware resources & servers depending upon your App Service Plan.
There are basically two kinds of scaling that is performed on a web application:
- SCALE OUT (Horizontal)
- Scale Out refers to increasing the number of instances for your web application. To scale out a web app, you increase the number of virtual machine instances on which your web app is running.
- SCALE UP (Vertical)
- Scale Up refers to increasing the resource capacity, such as RAM and CPU cores, of the virtual machine on which your web app is running.
Why Scaling?
- Pages load slowly,
- Network connections start timing out, and
- Your servers are starting to creak under heavy load.
When to Scale Up and When to Scale Out?
You typically choose to SCALE UP when any single request demands more memory and processing power to complete.You typically SCALE OUT when any single request requires less memory and processing power to complete, but the number of incoming requests become too much to be handled by a single server.
How to configure Scaling?
To Scale Up:
- Go to App Services in the Azure Portal
- Select App Service
- Go to Settings
- Select Scale Up (App Service Plan)
- Select from the available Plans based on Number of Cores, RAM, Storage, Number of Instances and Backup Frequency.
To Scale Out:
- Go to App Services in the Azure Portal
- Select App Service
- Go to Settings
- Select Scale Out (App Service Plan)
- You can Scale Out the app service based on Instance Count, CPU Percentage, Schedule & Performance Rules
Benefits of Scaling?
- Address bottlenecks in your web app faster
- No Code required
- Web app doesn’t need to be re-deployed.
- Web app can handle more load and therefore service more user requests.
Thank you.Well it was nice post and very helpful information on
ReplyDeleteAzure Online Course India