Pro Windows Server AppFabric

von: Stephen Kaufman, Danny Garber

Apress, 2010

ISBN: 9781430228189 , 336 Seiten

Format: PDF, OL

Kopierschutz: Wasserzeichen

Windows PC,Mac OSX geeignet für alle DRM-fähigen eReader Apple iPad, Android Tablet PC's Online-Lesen für: Windows PC,Mac OSX,Linux

Preis: 56,99 EUR

Mehr zum Inhalt

Pro Windows Server AppFabric


 

Table of Contents

5

About the Authors

17

About the Technical Reviewers

18

Acknowledgments

19

Introduction

21

Chapter Descriptions

21

Source Code

22

CHAPTER 1 Introduction

23

Introducing Windows Server AppFabric

23

Evolution of Distributed Applications

24

Difference Between Components and Services

24

Service Hosting Environment

24

Problems to Be Solved

25

Getting to AppFabric

26

Enough Already! What is AppFabric?

26

Who Is the Target Customer?

27

AppFabric Component Architecture

27

Key Scenarios Addressed by AppFabric

30

Composite Applications

30

Defining a Composite Application

30

Why Deploy Composite Applications?

30

Integration Applications

31

The Roadmap for AppFabric

31

Business Scenario

32

Summary

34

CHAPTER 2 Choosing AppFabric

35

BizTalk as an Integration Server

36

AppFabric as an Application Server

38

AppFabric and BizTalk: Friends or Enemies?

39

When to Choose AppFabric

39

When to Choose BizTalk Server

40

Key Differentiating Points

43

Points of Difference in the Overlap

45

BizTalk Server Adapters

45

Message-Based Correlation

45

Content-Based Routing

46

Long-Running Transaction Support

46

State Management

47

Tracking

47

Using AppFabric and BizTalk Server Together

47

Example 1: BizTalk Server with ESB and AppFabric

48

Example 2: BizTalk Server and AppFabric

49

Example 3: BizTalk Server and AppFabric

49

BizTalk Server or AppFabric

49

Cost Considerations

49

Planning for BizTalk Server vNext and AppFabric

50

Summary

51

CHAPTER 3 Laying the Foundation

52

Reviewing the Methods for Hosting a Service

52

Understanding IIS Architectural Changes

55

IIS 6 Architecture

55

IIS 7 Architecture

57

Installing WAS

58

Installing Activation Components

59

Configuring Site Bindings

62

Managing Protocols for Individual Applications

63

Creating an IIS 7 Application

63

Adding Protocols for an Application

64

Listing the Protocols for an Application

65

Removing Application Protocols

65

Access and Processing Considerations

66

Creating and Connecting to a Service

67

Understanding the .svc File

67

Creating a Service

68

Creating a Client

70

Incorporating Additional Protocols

71

Is WAS the Be All End All?

72

Summary

73

CHAPTER 4 Understanding the Architecture

74

AppFabric Architecture in a Nutshell

74

New Requirements

75

Foundation and Core Services

76

Runtime Components

77

Human Interface Layers

78

Visual Studio Support and Oslo

78

Visual Studio

78

Oslo

79

System Center Operational Management

79

Persistence Services

79

Review of Persistence: WF 3.5 vs. WF 4.0

80

Persistence Components in AppFabric

81

Persistence Components from .NET Framework 4.0

82

Persistence Components Specific to AppFabric

84

Hosting Services

86

Hosting Components from .NET 4.0

86

Hosting Components Specific to AppFabric

88

Monitoring Services

89

Tracking Profiles

90

Tracking Participants

92

Consumption of Tracking Data

93

Other Tracking and Monitoring Features

95

Caching Services

96

AppFabric Cache API

98

AppFabric Caching Services Session Store Provider

99

Stitching It All Together

102

New Service Activation

103

Integrity

104

Exception Handling

105

Suspension

105

Diagnostics

105

Visual Tools and Performance Counters

107

Summary

107

CHAPTER 5 Configuring AppFabric

108

Task 1: Preparing Your Computer for Installation

108

Step 1: Verify Hardware Requirements

109

Step 2: Verify Software Requirements

109

Step 3: Understanding the Impact

111

Security

112

Remote Databases

113

Remote Management

113

Task 2: Install Software Prerequisites

113

Step 1: Install Critical Windows Updates

113

Step 2: Install the Required Hotfixes

114

Step 3: Install the IIS 7.0 Administration Pack

115

Step 4: Install Windows PowerShell v2.0

116

Step 5: Install Microsoft SQL Server 2008 Express

117

Step 6: Install Microsoft Visual Studio 2010

119

Step 7: Install the Web Deployment Tool

120

Step 8: Install AppFabric Caching Services

121

Task 3: Install and Configure AppFabric

122

Step 1: Install AppFabric

123

Step 2: Configure AppFabric

125

Step 3: Start Cache Host Services

132

Step 4: Verifying Successful Installation of AppFabric

133

Summary: What Did I Just Do?

134

CHAPTER 6 Developing WCF Applicationswith AppFabric

135

Incorporating the Business Scenario

135

Architectural Challenges of a Phase I Approach

138

WCF 4.0’s New Default Features

139

Default Endpoints

139

Creating a Default Endpoint

139

How Does It Work?

142

Default Bindings

143

Default Behaviors

144

Standard Endpoints

145

Enabling Dynamic Service Discovery in WCF 4.0

147

Ad Hoc Service Discovery

147

Using Scopes When Discovering Endpoints

151

Service Announcements

153

On the Service Side

154

On the Client Side

155

Managed Service Discovery

157

Summary

163

CHAPTER 7 Developing WF Applications

164

What’s New in WorkFlow 4.0

164

Incorporating the Business Scenario

165

Creating a Workflow

167

Methods for Creation

167

An Example

167

Creating an Activity

168

Gaining Greater Control

170

Creating a Sequence Workflow

170

Passing Data

173

How Data Is Stored

173

An Example—Passing a Dictionary Object

174

Getting the Result

175

Using WCF End Points for Workflows

176

Receive and SendReply Activities

176

Combining WF and WCF Code

177

Consuming an Endpoint

179

Adding Extensions

182

Tracking

182

Persistence

183

Tracking and Tracing Improvements

185

Summary

185

CHAPTER 8 Hosting in AppFabric

186

Deploying the Application to AppFabric

187

Adding a New Application Pool

187

Adding a New Web Site

188

Host Contoso WCF and WF Services

190

Deploying the Contoso WCF Services to AppFabric

191

Migrating to the WCF Service Application Project

192

Deploying a WCF Service Application

196

Making Other Required Modifications

200

Deploying a WF Service

202

Configuring the Contoso Claims Processing application in AppFabric

205

Deploy a Single Workflow Service

205

Configuring the Contoso Claims Processing Workflow Service

207

Adding the net.pipe Protocol

212

Enabling the net.pipe Protocol

214

Running the Application in AppFabric

215

Navigating to the AppFabric Dashboard

215

Invoking the Contoso Claims WCF and WF Services

219

Configuring the AppFabric Host for Troubleshooting

221

Enabling the Troubleshooting Tracking Level

222

Configuring the Action for an Unhandled Exception

223

Summary

224

CHAPTER 9 Deploying AppFabric Applications

225

Understanding the Tool

225

What You Get

225

The Underlying Foundation

226

Exporting an Application

226

Importing an Application

232

Managing and Deploying with PowerShell

236

Enable Execution

236

Review Available Commands

236

Learn to Pipe

238

Create Packages

240

Deploy Packages

242

Configure Application

243

Create Databases

243

Connection String

244

Reconfigure the Web Site

246

Consider Other Tasks

247

Summary

247

CHAPTER 10 Advanced Concepts

248

Content-Based Routing

248

Background and Motivation

248

Implementation

249

Defining Elements

250

Creating Filters and a Routing Table

251

Consuming the Configuration File

252

Dynamic Configuration

258

Error Handling

259

Message Correlation

260

Types of Correlation

260

Scope

261

Embedded Correlation

261

An Example

263

Long-Running Workflows

266

Compensation

268

Summary

270

CHAPTER 11 Monitoring and Tracking

271

Monitoring

271

The AppFabric Dashboard

271

Items that Affect Metric Counts

276

Setting the Monitoring Configuration Parameters

276

Choosing a Health Monitoring Level

277

Enabling Diagnostic Tracing and Message Logging

277

Archiving and Purging

279

The Automatic Method

279

The Manual Method

280

Associate a Destination Archive

280

Set the Archive Database Connection String

280

Purge from Monitoring Database

281

Remove Configuration Information

282

Remove Old Data

282

Tracking

284

Tracking Architecture

284

Tracking Profiles

285

Implementation Through Configuration

285

Implementation Through Code

287

Tracking Participants

288

Creating Your Own Tracking Participant

290

Summary

292

CHAPTER 12 Implementing High Availability

293

Planning for Scale-Out

293

Scaling Your AppFabric Persistence and Monitoring Databases

296

Expanding an AppFabric Server Farm

297

Failover Capabilities in AppFabric

298

Synchronizing AppFabric Servers

298

Prepare your Server Farm

298

Install Web Deployment Tool’s Remote Agent Service

299

View Your AppFabric Hosted Application Dependencies

300

Configure the Destination Server

302

Sync to the Destination Server

302

Backing up Your Server

303

Simulating the Synchronization Process

303

Synchronizing for Real

304

Future Roadmap for AppFabric High Availability

305

BizTalk Server

305

Windows Azure

306

Summary

307

CHAPTER 13 Upgrading to AppFabric

309

Workflows

309

Activities

310

Workflow Host

310

Passing Data

310

Rules

311

Workflow Types

311

Summary

311

Index

313