Describe a Windows Communication Foundation (WCF) service project’s architecture by documenting it in four passes: first the boundaries and contracts (what clients can call and what data crosses the wire), then the internal layering (service, business, data access), then the runtime hosting and configuration model (endpoints, bindings, behaviors, instance management), and finally the cross-cutting concerns and quality attributes (security, reliability, transactions, scalability). The key condition is that WCF lets the same service logic be exposed through multiple endpoints, so an accurate description must separate what the service does from how it is hosted and configured. If you write only a class diagram, you’ll miss the part of the architecture that actually determines behavior in production.

This guide is written for the common case: a .NET Framework WCF service project, typically a .svc file plus web.config/app.config, possibly split into interface, implementation, and data contracts across assemblies. The principles also apply to WCF services ported to .NET (via CoreWCF or a rewrite), though some specifics differ. Where a detail depends on your installed version or configuration, I’ll flag what you need to check in the project itself rather than guess.

Start With the Contract Boundary, Not the Folder Tree

The most common mistake in describing a WCF project is starting from the Visual Studio solution folders. Folders are an implementation convenience; the architecture that matters begins at the service contract. WCF is contract-first in spirit even when you code-first: the [ServiceContract] interface defines the operations, [OperationContract] marks the callable methods, and [DataContract]/[DataMember] define the serialized payloads. Those attributes, plus the binding, determine the actual wire shape.

So the first paragraph of your architecture description should answer: who calls this service, over what transport, and with what message shape? For example: “OrderService exposes seven operations over a basicHttpBinding endpoint for external partners using SOAP 1.1, and the same contract over netTcpBinding for the internal warehouse application.” That single sentence communicates more architecture than a page of class listings, because it ties the contract to two different hosting decisions.

Name the contract assemblies explicitly. A typical layout separates Company.OrderService.Contracts (interfaces and data contracts, no logic) from Company.OrderService.Implementation (the service class) and often Company.OrderService.Data (entities and repositories). That separation isn’t cosmetic: it lets clients reference only the contract assembly without pulling in server-side dependencies, and it clarifies which types are public API versus internal detail. When you describe the project, mark the contract boundary clearly so readers know what’s stable and versioned versus what’s free to change.

Map the Internal Layers and What Each One Owns

Inside the implementation, describe layers by responsibility, not by project count. A workable description covers four:

The service layer is the WCF-facing class implementing the contract. Its job is translation and orchestration: validate incoming parameters, map data contracts to domain objects, call business logic, and map results back. It should be thin. If your service methods contain business rules or SQL, say so honestly in the description and note it as a known architectural debt, because that shapes everything downstream.

The business layer holds rules, workflows, and validation that don’t depend on WCF. This is where you describe transactions, calculations, and policy. It should be callable without a service host, which is also how you test it.

The data access layer wraps persistence: repositories, Entity Framework contexts, or ADO.NET calls. Describe whether it returns domain objects or data contracts, and where mapping happens. Mapping in the wrong place is a frequent source of coupling.

The infrastructure or cross-cutting layer covers logging, exception handling, caching, and configuration access. In WCF projects this often takes the form of behaviors and inspectors rather than a separate assembly, which is worth calling out.

Describe the dependency direction: service depends on business, business depends on data access abstractions, and contracts depend on nothing. If the project violates this, note it. An architecture description that only lists ideal layers without acknowledging the actual dependency graph is marketing, not documentation.

Explain the Hosting and Endpoint Model Precisely

This is where WCF descriptions most often go vague, and where precision pays off. WCF separates the service from its endpoints, and an endpoint is the triple of address, binding, and contract (the “ABC” mnemonic). Your description should enumerate each configured endpoint and state all three.

A worked example makes this concrete. Suppose web.config contains two endpoints for IOrderService:

Endpoint A: address "" (relative to the .svc file), basicHttpBinding, contract IOrderService, for external SOAP clients. Endpoint B: address net.tcp://orders:8080/OrderService, netTcpBinding with transport security, contract IOrderService, for internal clients.

Describe each in a small table or a tight paragraph. Then explain the hosting: is this an IIS-hosted .svc using ServiceHost implicitly through ServiceHostFactory, a Windows Service using ServiceHost directly, or self-hosted in a console app? Each choice affects lifecycle, recycling, and how configuration is loaded. IIS-hosted services recycle on app pool settings; a Windows Service host lives until stopped. That difference changes your reliability story, so it belongs in the architecture description.

Name the serviceHostingEnvironment settings if present (multiple site bindings enabled, ASP.NET compatibility mode). ASP.NET compatibility mode, when on, lets the service use HttpContext.Current, session state, and ASP.NET pipeline features, but it constrains the service to HTTP and adds overhead. Stating whether it’s enabled tells a reader a lot about the intended hosting model.

Cover Instance Management and Concurrency as First-Class Architecture

WCF’s instancing and concurrency modes are architectural decisions with visible consequences, and many architecture documents skip them. Describe the [ServiceBehavior] settings: InstanceContextMode (PerCall, PerSession, Single, or Shareable) and ConcurrencyMode (Single, Multiple, Reentrant). Then explain the effect.

PerCall creates a new service instance per call, which suits stateless request/response services and scales cleanly. PerSession keeps an instance alive across a session, which requires a sessionful binding like netTcpBinding or wsHttpBinding with sessions, and needs explicit session teardown thinking. Single shares one instance across all calls, which couples scalability to the concurrency mode. If the service is Single with ConcurrencyMode Single, every call serializes through one instance—fine for a low-volume coordinator, a bottleneck for anything busy. Say which mode you use and why, and note the binding constraints: not every binding supports sessions, so the instancing choice and binding choice constrain each other.

Throttling belongs here too. serviceThrottling settings (maxConcurrentCalls, maxConcurrentSessions, maxConcurrentInstances) cap resource use. If they’re configured, report the values and the reasoning; if they’re left at defaults, say so, because defaults may not match your load assumptions.

Document the Cross-Cutting Concerns Where They Actually Live

Security, reliability, and transactions in WCF are usually configured declaratively, so describe them at the binding and behavior level rather than as abstract goals.

For security, state the security mode on each binding (None, Transport, Message, TransportWithMessageCredential, or Mixed) and the client credential type (Windows, UserName, Certificate, IssuedToken). Then state what that means: transport security protects the channel hop-by-hop, message security protects end-to-end and survives intermediaries. If a service uses basicHttpBinding with security mode="Transport" over HTTPS, say that plainly; if it uses wsHttpBinding with message security and Windows credentials, say that too, along with the implication for client configuration.

For reliability, report whether reliableSession is enabled and the ordered setting, and note the binding support constraint: netTcpBinding and wsHttpBinding support reliable sessions, basicHttpBinding does not. For transactions, describe transactionFlow and the TransactionScope usage in the business layer, and be explicit that transaction flow across service boundaries requires a binding and behavior combination that supports it.

For diagnostics, name the system.diagnostics trace sources, the message logging policy, and whether includeExceptionDetailInFaults is on (and in which environments). That last flag is a security-relevant switch, so an architecture description should state its value per environment, not just once.

Describe Fault Handling and the Error Contract

An architecture description that ignores faults is incomplete, because fault behavior is part of the API contract clients must code against. Explain whether the service throws FaultException with typed fault contracts, uses FaultContract attributes on operations, or lets unhandled exceptions surface as generic faults. Then describe the mapping: which business exceptions become which faults, and what the client is expected to do with each.

Include the concrete detail of whether includeExceptionDetailInFaults differs by environment, since that changes what clients see in development versus production. If the project uses IErrorHandler to log and translate exceptions centrally, name it and describe its position in the pipeline. That’s architecture, not implementation trivia: it determines whether fault behavior is consistent across operations or scattered per method.

Produce a Diagram Set That Matches the Descriptions

Words alone rarely suffice, but the right diagrams are fewer than people expect. Three views cover most WCF project descriptions.

A context diagram shows the service as a box with its callers and downstream dependencies: partner systems, internal consumers, databases, message queues, and any upstream services. Label the protocols on each arrow. This answers “what talks to what, and how.”

A component or layer diagram shows contracts, service implementation, business layer, data access, and infrastructure, with dependency arrows. Keep it to one diagram; if it needs three, the layering is probably unclear.

A deployment diagram shows hosts, endpoints, addresses, and security boundaries: which machine or app pool hosts the service, which ports are open, where TLS terminates, and where the database sits relative to the trust boundary. For WCF specifically, annotate each endpoint with its binding and security mode, because the deployment view is where binding choices become visible in network terms.

Sequence diagrams are useful only for a handful of critical flows, such as authentication or a transaction that spans services. Pick two or three and skip the rest; a full set of sequence diagrams for every operation is maintenance debt.

A Repeatable Method for Writing the Description

If you need to produce the description rather than just read one, use this ordered procedure. The prerequisite is access to the solution, the configuration files, and a working deployment (or at least documented deployment settings).

1: Inventory the contracts. List every [ServiceContract] interface, its operations, and its data contracts. Note which assembly each lives in. Expected result: a flat list of the public API surface. Check success by confirming every endpoint’s contract maps to a listed interface.

2: Inventory the endpoints. Read system.serviceModel in the configuration and list address, binding, and contract for each. Expected result: one row per configured endpoint. Check that the count matches the deployed service’s ?wsdl output or the service metadata if mex is enabled.

3: Trace one representative call end to end. Pick a read operation and a write operation, and follow the path from service method through business layer to data access and back. Expected result: a short narrative per flow. This is where you catch layers that are skipped or bypassed.

4: Record the behavioral settings. Capture instancing mode, concurrency mode, throttling, security mode and credentials, reliable session, transaction flow, and exception-detail flags per environment. Expected result: a settings table.

5: Identify cross-cutting implementations. Find the IErrorHandler, IDispatchMessageInspector, logging, and authentication implementations and note where they’re wired in (behaviors in config versus attributes in code). Expected result: a short list mapping each concern to its mechanism.

6: Build the three diagrams from steps 1–5, not from memory. Expected result: context, component, and deployment views consistent with the inventories. Check success by having someone who didn’t write it trace an endpoint from the diagram to the config.

The stop condition: if you can’t reconcile the configured endpoints with the deployed metadata, or you find behavior configured in code that contradicts the configuration files, stop and resolve that discrepancy before publishing the description. A document that describes the intended configuration rather than the actual one is worse than no document, because it will be trusted.

Common Failures and What They Signal

A few patterns recur in WCF architecture descriptions and each points to something real.

Describing only the code and never the configuration produces a document that can’t explain why the service behaves differently in test and production. The fix is to treat web.config/app.config system.serviceModel as a primary source.

Listing endpoints without stating security mode and credentials hides the most consequential architectural fact about an externally exposed service. Add them.

Omitting instancing and throttling leaves scalability claims unsupported. If you write “the service scales horizontally,” the instancing mode and any session affinity requirements must be on the page to back that up.

Treating the WCF layer as the architecture ignores the business and data layers, which is where most complexity and most defects live. Describe them.

Frequently Asked Questions

Does a WCF architecture description need to cover both the service and the client configuration? Only enough to describe the contract between them. The client’s binding must match the service’s binding family and security requirements, so state the required client configuration at the level of binding type and security mode. Full client application architecture usually belongs in a separate document.

How do I describe a WCF service that has been moved to .NET using CoreWCF? Describe it the same way for contracts, layering, and endpoint intent, but verify each configuration feature you rely on, since CoreWCF supports a subset of WCF’s bindings and behaviors, and hosting is typically ASP.NET Core middleware rather than IIS .svc activation. State the target framework and the CoreWCF version you checked against, because feature support depends on the version.

Where should DataContract types be documented—with the service or with the client-facing API? With the contract, because they are the contract’s payload. Document versioning intent there too: which members are optional, which are additive-only, and whether the service tolerates unknown members. That information is what lets clients evolve independently.

Is mex (metadata exchange) part of the architecture or just tooling? It’s both. If mex is enabled, say so and say whether it’s exposed in production, because metadata exposure is a security consideration. If it’s disabled, describe how clients obtain the contract instead, such as a shared contract assembly or a published WSDL artifact.