[Azure services platform step by step-7th] Do not use Windows azure as a virtual host-understand the Windows azure Service Architecture

Source: Internet
Author: User

Recently, a friend asked me if windows Azure is an ASP. NET application officially provided by Microsoft.ProgramVirtual Host?

His specific understanding is as follows: Windows azure provides ASP. NET application hosting, and "cloud computing" is so close to us, as long as ASP.. NET application deployed on Windows Azure, the previous ASP.. NET application becomes "cloud application!

How can this problem be solved? This understanding is entirely driven by the chaotic. Net VM market in today's society. Windows Azure is the No. 1 service of azure services platform. If you only use it to store your obsolete ASP. NET applications, it is a cool-killing tool and a storm of things.

So how should windows azure be used? Where is it like a general VM? It also begins with the service architecture of Windows azure.

 

Roles (role ):

It is very important to talk about roles first. Without understanding the concept of role in Windows Azure, Microsoft cannot understand the painstaking "Cloud.

Programs deployed on Windows azure assume the following two roles:Web roleAndWorker role.

Web role:As the name implies, it is the role that provides Web Services. Simply put, Web role is ASP. NET applicantion, which is the cloud version of your local ASP. NET application! Supports HTTP/HTTPS and provides the WCF Service.

Worker role:The application that runs in the background. It can access and operate any network resources and data sources in the background. It never appears before the audience (external access interfaces are not open). After receiving commands, it executes them in sequence without complaints (the message queue in the queue service can direct its work ), it is like an unsung and selfless dedication. It can be analogous to a Windows system service. once started, it will always run in the background. Nice, right? This feature is worth your attention. We can see it clearly, but it is not available for general virtual hosts ~ Even Google's cloud platform, Google App Engine, has been updated many times so far, and has never considered running a program on the background for a long time!

This workder role has the concept of "Cloud": it has been quietly running on the cloud, and people on the ground cannot see it, but cannot.

Therefore, "cloud computing" does not mean that you can put "computing" on "Cloud", and completely let "computing" run on "Cloud. It has the following meanings: On the cloud-local servers are not required; on the cloud, the computing workload is high; no matter where it is, A head-up is the cloud-applications on the cloud platform can be used no matter where they are and what devices they are using. Hiding in the cloud-no matter how complicated the computing process is, users on the ground do not need to see it.

 

Role attachment

The Web role and worker role families also joined the Windows azure family. They temporarily include:

    1. Use local storage as cache
    2. Standard event streams logs and warnings
    3. Health Report

Oh, these are also common virtual hosts, right? The "cloud host" feature is very powerful, and the supporting items are very complete!

 

Service Definition)

In the new environment of Windows Azure, programs tend to wonder whether I am a web role or a worker role?

This requires us to help them.

Windows azure uses a file with a suffix of. csdef to define services. Including: Does this service seem to be Web role or worker role? HTTP or HTTPS? Where can I find the local storage family for help? Such information.

 

 

Service configuration)

After receiving a response to career planning, the Web role and worder role gave rise to questions about their careers: What should they do?

This requires service configuration. As the name implies, it is the specific configuration of a specific service. We use files suffixed with. cscfg to save them. It serves as a job similar to the Web. config file in ASP. NET, and the job is heavier.

 

Well, after talking about this, I believe that the reader has a clear understanding of the Windows azure service architecture. Never use Windows azure as a general. Net Virtual Host ~ Microsoft will be hurt once it knows it!

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.