Tag Archives: WCF

WCF Duplex Reentrant Services

Introduction

This article illustrates working with Duplex mode in WCF with concurrency set to Reentrant. In general, Duplex is one of the three message exchange patterns (MEPs) which are:

  • One-way
  • Request-Response (synchronous and asynchronous)
  • Duplex

On the other hand, concurrency in WCF services deals with how many concurrent threads can access these services at one time.

A full discussion of MEPs and Concurrency in WCF is not the intent of this article; as a matter of fact, that would be the job of a full book. As such, this article assumes familiarity (but necessarily experience) of the following:

  • WCF programming
  • MEPs in WCF
  • Concurrency modes in WCF
  • Basic concepts of threads

Continue reading

Understanding OData v3 and WCF Data Services 5.x

Table of Contents

  • What is this Article About?
  • What are OData, Atom, and AtomPub?
  • REST vs. SOAP: The Design Decisions
  • First look at OData Queries
    • Keywords
    • Formatting
    • OData Clients
  • Working with OData via WCF Data Services
  • Creating a WCF Data Service with POCOs
  • Behind the Scenes
  • Enabling JSON Format through WCF Message Inspector
  • What about JSON light?
  • JSON Light in WCF Data Services 5.2.0
  • Extending Data Service with Service Operations and Interceptors
  • Metadata, EDM, and CSDL
  • Concurrency Updates with ETAG
  • ┬áResources
  • Continue reading

    Thread Throttling in IIS-hosted WCF (sync vs. async)

    I’m in the midst of a BizTalk project where we’re load testing our solution. Our receive adapters are WCF-based and therefore tuning WCF is a critical aspect of the overall solution performance. I have gone through the same tuning times before in every WCF project. But I always was lazy documenting the information and ended up looking up the bits and pieces time and time again to refresh my memory. Now I decided to document this information in a post for myself and others.

    However, I will not simply write the keys to adjust and leave it there. I will explain the reason we adjust these keys and what they really mean. So bear with me and follow along.

    Continue reading