Book Image

Applied Architecture Patterns on the Microsoft Platform

Book Image

Applied Architecture Patterns on the Microsoft Platform

Overview of this book

Every day, architects and developers are asked to solve specific business problems in the most efficient way possible using a broad range of technologies. Packed with real-world examples of how to use the latest Microsoft technologies, this book tackles over a dozen specific use case patterns and provides an applied implementation with supporting code downloads for every chapter. In this book, we guide you through thirteen architectural patterns and provide detailed code samples for the following technologies: Windows Server AppFabric, Windows Azure Platform AppFabric, SQL Server (including Integration Services, Service Broker, and StreamInsight), BizTalk Server, Windows Communication Foundation (WCF), and Windows Workflow Foundation (WF). This book brings together – and simplifies – the information and methodology you need to make the right architectural decisions and use a broad range of the Microsoft platform to meet your requirements. Throughout the book, we will follow a consistent architectural decision framework which considers key business, organizational, and technology factors. The book is broken up into four sections. First, we define the techniques and methodologies used to make architectural decisions throughout the book. In Part I, we provide a set of primers designed to get you up to speed with each of the technologies demonstrated in the book. Part II looks at messaging patterns and includes use cases which highlight content-based routing, workflow, publish/subscribe, and distributed messaging. Part III digs into data processing patterns and looks at bulk data processing, complex events, multi-master synchronization, and more. Finally, Part IV covers performance-related patterns including low latency, failover to the cloud, and reference data caching.
Table of Contents (26 chapters)
Applied Architecture Patterns on the Microsoft Platform
Credits
Foreword
About the Authors
About the Reviewer
Preface

Example solution


To get you up and running with workflow services, let's set up a simple example. This will be a Windows Workflow that is exposed as a WCF service. This example will use Visual Studio to host the workflow and expose WCF endpoints. The service will accept a simple string and return an updated string.

  1. 1. Create the new project inside Visual Studio 2010.

    • Go to File | New Project.

    • Select Workflow on the tab on the right under Visual C#.

    • Select the WCF Workflow Service Application project type.

    • Name it to IntroToWFService.

    • Click on OK.

  1. 2. Create local variables to store the inbound text and set the outbound text of the service.

    • Click on the Sequence shape to ensure it is the active window.

    • Click on the Variables tab on the bottom left.

    • Add a variable named InternalInputText of type String to store the original inbound text.

    • Add a variable named InternalOutputText of type String to create the response string to be returned from the service.

  1. 3. Define the Request and Response Contract because...