Use Windows Server appfabric

Source: Internet
Author: User

Windows Server appfabric is an integrated technology that allows you to easily generate, expand, and manage Web applications running on IIS.ProgramAnd composite applications. Windows Server appfabric is applicable to applications generated using ASP. NET, Windows Communication Foundation (WCF), and Windows Workflow Foundation (WF.

It provides new functions for you to easily generate and manage a composite application, including enhanced design and development tools in Visual Studio, successful and powerful composite applications can be integrated with IIS manager and Windows powershell to manage and monitor application cache in service and workflow distributed memory, improving application performance.

With Windows Server appfabric, developers can generate their next-generation compound applications, which can be managed and managed by administrators. Also integratedCodeThe technology named "Dublin" and the code named "velocity" pre-release.

1. Install appfabric from

Http://www.microsoft.com/downloads/zh-cn/details.aspx? Displaylang = ZH-CN & familyid = 467e5aa5-c25b-4c80-a6d2-9f8fb0f337d2


 

2. Set up monitoring

 
3. config monitoring DB

 
4.


5.

6. Set up caching Service

7.


8. After configuration, you also need to use the powersehll appfabric Cache Management Tool

Use-cachecluster

Grant-cacheallowedclientaccount domain \ Username

New-Cache "cachename"

Start-cachecluster

9. Code:

Datacacheserverendpoint [] servers = new datacacheserverendpoint [1];
Servers [0] = new datacacheserverendpoint ("hostname", 22233 );

// Setup the datachefactory configuration.
Datacachefactoryconfiguration factoryconfig = new datacachefactoryconfiguration ();
Factoryconfig. servers = servers;

// Create a configured datacachefactory object.
Datachefactory mycachefactory = new datacachefactory (factoryconfig );

// get a cache client for the cache "namedcache1 ".
datacache mydefaultcache = mycachefactory. getcache ("cachename");
mydefaultcache. add ("TT", "vvvv");
V = mydefaultcache. get ("TT");

Related Article

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.