Wf4.0 practice (20): Windows Server appfabric Introduction

Source: Internet
Author: User

Windows Server appfabric server system is a private cloud computing system. As a key product for Microsoft to enter the private cloud market in the future, it allows users to create and maintain their own cloud computing system architecture.
This articleArticleWe will give a brief introduction to Microsoft's server system Windows Server appfabric, and then provide an instance to host the WCF to Windows Server appfabric.

Windows Server appfabric consists of two parts:

Appfabric caching services

Appfabric caching services was originally named "velocity ". It can speed up frequent access to information. A major component of appfabric caching services is the cache client ). For example, the Asp.net page can access a cache cluster composed of many cache servers ). Each cache server runs an appfabric caching services instance to maintain some cached data. Each client cache can also maintain its own local cache. As shown in:

When the client obtains some data for the first time, such as ASP. NET ApplicationsProgramThe user provides information or information read from the database, it can use the appfabric caching services client class library to store a unique name and the information in the cache cluster ). For the client, all the cache servers in the cache cluster are a single logical storage. The client neither knows nor cares which physical Server caches the data. You can store data in your local cache. When the client needs to access the same data item again, the name of the data item is required. It checks the local cache first. If this data item is found, the cached value is used directly. If the data item is not in the local cache, it will be searched in the cache group. If this data item is found here, the client uses the cached value from the group. For the client, all of this is transparent. It only requires the desired data item and appfabric caching services to implement all other functions. If the data project is neither locally cached nor found in the cache cluster, the customer needs to search elsewhere, such as the application database.

Appfabric caching services is a simple introduction here. It can be simply understood as a distributed cache system. The following describes appfabric hosting services and an example of how to host WCF to Windows Server appfabric.

Appfabric hosting services:It allows you to conveniently run and manage WCF services, especially those created by WF service.

The Windows Server appfabric-hosted WF service will be introduced in the next article. Below I will implement a simple demo of hosting WCF to Windows Server appfabric step by step.

My computer software conditions and installation steps:

1. Windows 7

2. IIS 7

3. sqlserver 2008

4. Windows Server appfabric RC

5. Web Deployment Tool

6. Visual Studio 2010

Step 1: Create an Asp.net application in IIS and select HTTP, for example:

Step 2: Add a WCF Service to this Asp.net application. For example:

Step 3: Enter http: // localhost/website/service. SVC in your browser. The result will be as follows:

Step 4: test the WCF Service, open Visual Studio 2010 command prompt, and run wcftestclient. Enter the following command:

C: \> wcftestclient.exe

Call the dowork () function.

Step 5: View and manage the WCF Service on Windows Server appfabric:

Expand IIS and select the created website. For example:

Click service;

Switch to monitoring statistics:

I made a total of four calls to this WCF Service. As shown in.

Click the endpoint to view the WCF endpoint, as shown in:

Select the appfabirc dashboard:

View the call history:

Summary:

This article briefly introduces Windows Server appfabric. Describes appfabric caching services. One-step implementation of a demo that hosts the WCF Service to appfabric caching services. The next article describes how to manage a WF service with complex business logic in Windows Server appfabric.

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.