To build a scalable custom adapter, the Microsoft WCF LOB Adapter SDK is the preferred alternative to the older BizTalk Adapter Framework. This SDK surfaces line-of-business (LOB) system connectivity as a standard WCF binding, meaning your adapter can scale across BizTalk Server, SQL Server Integration Services (SSIS), or any custom .NET application. Core Architecture Components
Creating an adapter requires implementing several crucial abstract classes provided by the SDK:
Microsoft.ServiceModel.Channels.Common.Adapter: The central management engine controlling the lifecycle, features, and default limits of the adapter.
Microsoft.ServiceModel.Channels.Common.AdapterBinding: Exposes configuration parameters and transport settings to the standard WCF configuration pipeline.
IConnection and IConnectionFactory: Manages the life cycle, authentication, and communication pathways to the underlying system.
Handlers (IReadHandler, IOutboundHandler, IInboundHandler): Implements actual message-exchange patterns for moving data into or out of the target system. Best Practices for Scalability 1. Implement Proper Connection Pooling
Network connections to monolithic databases, ERPs, or CRMs are highly expensive to spin up and tear down.
Map your code to leverage Microsoft.ServiceModel.Channels.Common.ConnectionPoolSettings.
Manually expose properties like MaxConnectionsPerPool and IdleTimeout inside your adapter configuration so hosting environments can regulate them under heavy load. 2. Optimize Metadata and Caching
Because the SDK parses structural data dynamically for tools like the Visual Studio Add-In, processing metadata can quickly choke performance. BizTalk Server Tip #29: Develop adapter using WCF
Leave a Reply