Windows Azure Web Site (15) Transformation of the enterprise website based on Azure Web App

Source: Internet
Author: User

Windows Azure Platform Family of articles Catalog

1. User scenarios:

Company C is the world's largest global chain of restaurants, around the world has 30,000 stores. Its IT system mainly deploys its overseas data centers, or rents other IDC hosting rooms. Because of the connectivity problems of Internet access at home and abroad, or due to insufficient internet bandwidth in the IDC hosting room. The speed at which domestic consumers visit their official websites is very unsatisfactory.

The customer urgently needs a stable and fast platform, which ensures that consumers can quickly access their official website and get the latest information from the company.

2. Architecture Design

  C Company's official website technology platform using popular open source technology. Web server adoption is the Linux operating system, the development language is PHP, the database server is using MySQL.

In overseas data centers, the main issues are as follows:

(1) Both the Web server and the database server are single servers, and a single point of failure occurs

(2) Web server is not load balanced

(3) Web server does not have automatic backup function

(4) MySQL database does not have a highly available design, no database backup function

  

Through the C Company's official website to upgrade, mainly modified the following content:

(1) Rebuild Web server from Linux VM to azure Web app,php code based Web App

(2) Azure Web App enables automatic scale-out capabilities to automatically scale multiple instances to apply peak access requirements. When you visit the trough, you can shrink sideways to save costs

(3) Save static resources such as files, pictures, photos, etc. to azure storage cloud storage

(4) Migrating MySQL VMs to the azure MySQL PAAs platform

3. Customer Benefits

Customer benefits mainly include the following points:

(1) Automatic scale-out and automatic transverse shrinkage

Due to the customer's official website visits are peak and trough period, such as:

  

You can see that traffic will gradually rise after 8 o'clock in the day. And at 23 o'clock in the evening, the traffic will reach a trough.

With the built-in scale-out capabilities of Azure Web app, you can scale out with 3 instances at peak times to address peak business. When you visit the trough, use 2 instances to do lateral shrinkage to save costs.

As shown, load balancing is implemented with 3 instances for the auto-scaling function during peak business hours.

  

It is the auto-shrinking function in the business trough period, with 2 instances to achieve load balancing.

  

(2) Web Code Automatic Backup

Azure Web app has built-in automated backup capabilities that enable full daily backup of PHP code to azure storage cloud storage. This allows the code to be restored directly from Azure storage cloud storage, such as when the PHP code of the official network generates a logic problem, such as:

  

(3) Reduce Web server Internet bandwidth pressure with Azure Storage

The customer's website contains a lot of static resources, such as files, pictures, photos. The general implementation is to include these static resources in the project source code, directly accessed through local calls. However, this requires a better Internet bandwidth level for the Web server.

By saving these static resources to azure storage, you can mitigate the Internet bandwidth pressure on your Web server.

  

As shown, the entire official website of the static content, in the past 7 days generated export traffic is 5.29TB. But because Azure storage access is very fast, the official web page surface open speed is very smooth.

  

Medium, load:1.48s

(4) MySQL PAAs database is highly available

We migrated the MySQL virtual machine to the azure MySQL PaaS. Because MySQL PAAs itself provides the high availability of the database, with the traditional MySQL VM master and slave mode, MySQL PAAs costs less and is more reliable.

(5) MySQL PAAs Database Automatic backup

MySQL PAAs also provides a maximum of 35 days of automatic database backup function. When a database logic problem occurs, you can restore the MySQL database to the previous normal version by using the MySQL PAAs database restore feature.

  

(6) Lower cost

The cost of using Azure Web App Auto Scale-out and MySQL PAAs database for the next Generation Enterprise official website is 90% lower than the cost of the customer's previously deployed data center in overseas.

It also lowers maintenance costs for IT staff while improving the overall usability of the corporate website.

Windows Azure Web Site (15) Transformation of the enterprise website based on Azure Web App

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.