📜 ⬆️ ⬇️

Classic hosting model vs Windows Azure

Classic hosting model vs Windows Azure


On Habré I recently, but already managed to notice a lot of interesting material and articles. Including from Andrei Cojocaru korjik . Andrew many times laid out information on calculating the cost of hosting, conducted research on this topic for AWS and compared it with other solutions. I wondered what would happen if you look not only at AWS, but for example, at Windows Azure. I did a little research, made some conclusions and will be happy to discuss them in the comments. And the conclusion is simple: prices are about the same for everyone. The choice comes down mainly to the preferences of a particular customer, as well as to the ease of use of a particular solution for a particular technological stack.
Let's start.

Purpose of the study


The article compares the classic model of application hosting with hosting in Windows Azure. The advantages and disadvantages of each solution and the selected platforms are disclosed in accordance with functional and non-functional requirements. It compares the maximum number of options provided by both providers that fit the intended architecture.


Requirements


Let's define requirements on the example of quite real requests from one of the customers.
')

Functional



Non-functional requirements




Considered platforms




Decision analysis


First, it is interesting to look at the comparison of prices for different solutions, depending on the requested solutions:
-Classic Web HostingDedicated Web HostingWindows Azure Virtual MachinesWindows Azure Cloud Services
Database:200 MB for one database enabled$ 259.99 / month Storage Size Limit$ 225.80 / month for 1x150 GB DB + $ 14.25 / month / 150 GB (data)$ 225.80 / month for 1x150 GB DB
SQL Server license:EnabledEnabled$ 898Enabled
Reporting:EnabledEnabledEnabledEnabled; $ 0.88 / hour for SQL Azure
Statistics:-EnabledEnabledEnabled; Azure not supported
Backup:Enabled$ 49.99 / monthEnabledEnabled
Storage capacity:Not limitedNot limited$ 55.80 / month / 600 GB$ 55.8 / month / 600 GB
Traffic:Not limitedNot limited$ 122.28 / month / 1TB$ 122.28 / month / 1TB
Active Directory integration:-Is free$ 19.90 for 1 million transactions$ 19.90 for 1 million transactions
Base price:$ 12.74 / month$ 169.99 / month$ 115.20 / month$ 172.80 / month

Deployment Scenarios


Classic web hosting


SQL Server and the application are on the same machine, thereby ensuring that there are no delays between queries to the database. There are also no limits on the number of databases for the application. Web hosting provides unlimited bandwidth and data storage. The upgrade of the operating systems and the configuration process are automated. No need to purchase a SQL Server license.

However, there are many limitations and issues with using the classic web hosting model:


Total cost of the solution


Using only a standard hosting plan will cost $ 12.74 / month. Accordingly, after 6 months of use, the price will be $ 76.44 . (prices and amounts are approximate, but quite true).

Conclusion


It is not recommended to use the classic web hosting model for such an application. Deploying the application in such conditions will often have to communicate with the technical support of the provider, and not always receive a response quickly. Due to the use of shared resources in the system, it is impossible to accurately predict the future performance of the application. Installing Active Directory, Analytical Services, Push alerts can cause problems, if at all possible.

Dedicated web hosting


Such a scenario is not as cheap as the one discussed above, but it has certain advantages over it. The application needs a push notification service, and this model allows you to install any application for this (ZeroMQ, RabbitMQ, others). SQL Server is also located along with the main application. Required queue and alert services are supported. The size of the database is limited only by the size of the disk space. Since There is no common resource pool (CPU, memory), you can predict the performance of servers and applications. Using Active Directory transactions, alerts and queues for free, because This enters the normal server-client traffic. Prepaid traffic volume - 1 TB.

However, the following problems occur:

Total cost of the solution


The total cost of such a solution, including a standard hosting plan, database and backup function, for 6 months of use will be: $ 2,899.82

Conclusion


It is possible to use this solution for hosting a specific application. Any necessary software can be independently installed additionally. SQL Server is included in the cost of hosting. However, it is difficult to automate the process of the application and the system as a whole. Using SQL Server on a separate machine will also entail additional material costs.

Windows Azure Virtual Machines


This solution is a good option because allows you to scale the application. This can be done both manually and automatically. Queues and alerts are enabled when using the Service Bus. You can use a separate machine for hosting SQL Server to improve its performance, or place the database on one of the applications used, thereby reducing the cost. Two models of disk space usage are also available: REST space and Virtual Machine disks. Backup is built. You can use the authentication mechanism provided by Windows Server Active Directory. A huge advantage: if the need arises, you can easily migrate to another cloud solution.

Problems:

Total cost of the solution


The cost of the solution “Virtual Machine + SQL Server”, including 600 GB of disk space, 1 TB of traffic, integration with Active Directory, backup, license for SQL Server for 6 months, will be $ 2,862.58

The same solution, but using SQL Azure will cost $ 3233.88 . The option of using SQL Server turned out cheaper, because license fee ($ 898) is one-time.

Conclusion


It is recommended to use such a solution for this particular application. Simply scale the application and connect the necessary third-party applications yourself. The main problem with this solution is the price (compared to previous versions), including the license for SQL Server. Also, the process of updating and configuring virtual machines is not automated. A full SQL Server allows you to use Reporting Services and Analytical Services.

Windows Azure Cloud Services


This method is almost the same as the previous one. The main difference is in the maintenance process. No need to install system updates or SQL Server. Active Directory Federation Services can be used for authentication, but it is better to configure Active Directory separately on SQL Server, thereby obtaining the full functionality of one and the other. Deployment is fully automated directly from Visual Studio, eliminating the need to prepare images.

Disadvantages:

Total cost of the solution


The cost of the solution "Cloud Service + SQL Server", including 600 GB of disk space, 1 TB of traffic, integration with Active Directory, Backup, license for SQL Server for 6 months, will be $ 3,579.48 .

Conclusion


It is possible and well to use this solution, even despite its high price. If necessary, you can use a separate machine with SQL Server. The administration process is entrusted to the provider. This method allows you to focus on developing the application, because Most configuration processes are automated, and the application is published directly from Visual Studio.

General conclusion


The best way to host and host an application is Windows Azure Virtual Machines + SQL Server. To implement the mechanism of push-notifications, you can use any tools from both third-party manufacturers (for example, RabbitMQ, ZeroMQ, others), and Microsoft (Service Bus). Purchase of a license for SQL Server is one-time, and the size of the database is limited only by the size of the storage account. Also, dedicated SQL Server will allow full use of Reporting Services and Analytical Services. However, the process of configuring and maintaining the infrastructure may incur additional staff costs.

Source: https://habr.com/ru/post/163229/


All Articles