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");