Menu
AWS Architecture Blog·November 19, 2026

Pattern-Driven Integration Platform on AWS

This article details how Country Road Group (CRG) migrated from legacy middleware to a modern, pattern-driven integration solution on AWS. The Strategic Integration Platform (SIP) leverages cloud-native services, infrastructure-as-code, and a multi-lane service bus architecture to handle diverse integration patterns, reduce operational overhead, and improve agility. The solution emphasizes a declarative approach to integration, leveraging reusable AWS CDK constructs for common enterprise integration patterns.

Read original on AWS Architecture Blog

The Challenge with Traditional Middleware

Many organizations face significant costs and operational challenges with traditional enterprise integration middleware like BizTalk or MuleSoft. These systems, while solving early integration problems, often lead to tight coupling, high licensing fees, increasing maintenance burden, and difficulty finding skilled talent. Country Road Group (CRG) experienced this with their BizTalk Server deployment, which was nearing end-of-support and incurring escalating costs.

Introducing the Strategic Integration Platform (SIP)

CRG built the Strategic Integration Platform (SIP) to address legacy debt, tool sprawl, low development velocity, and security/resiliency risks. SIP adopts a "Compose on Cloud-Native" strategy, combining AWS serverless compute (Lambda, Step Functions, EventBridge) with Apache Camel on Amazon ECS Fargate for more complex or long-running flows. A key aspect is the declarative, pattern-led approach, where teams declare the integration pattern, and pre-built Terraform modules provision the necessary infrastructure, significantly accelerating new integrations.

SIP's Three-Layer Architecture

  1. Pattern Layer: Defines each interface as a composition of standard integration patterns (e.g., publish-subscribe, content-based routing). Business-specific logic resides here, often implemented with Lambda handlers and orchestrated by Step Functions.
  2. AWS Service Layer: This layer provisions infrastructure using AWS managed services, all defined in Terraform. Key services include API Gateway, Lambda, Step Functions, EventBridge, SQS, SNS, S3, AWS Transfer Family, ECS Fargate, and DynamoDB.
  3. Source and Target Connectivity Layer: Handles integration with diverse endpoints, including on-premises systems, legacy applications (Oracle RMS, Manhattan WMS), cloud platforms (Salesforce, eStar), and B2B partner portals.
💡

Pull-based Integration

SIP primarily uses a pull-based integration model, where the platform retrieves data from source systems on its own schedule. This allows the consumer to control the processing rate, preventing source systems from overwhelming the integration platform with unbounded pushes. For sources that can only push (e.g., SaaS webhooks), SIP accepts the push into a queue and processes it at its own pace, maintaining the same principle of consumer control.

Multi-Lane Service Bus for Diverse Traffic

The SIP architecture incorporates a four-lane, pattern-led service bus, each designed for specific traffic characteristics and processing durations:

  • MFT/Batch Lane: For file-based ingestion (e.g., SFTP via AWS Transfer Family, S3 archival, Lambda parsing).
  • API/Real-Time Lane: For synchronous REST requests via API Gateway, orchestrated by Step Functions. Routes to Lambda for short jobs or ECS Fargate for long-running/stateful flows.
  • JDBC/Data Aggregator Lane: For direct database connectivity and bulk extractions, using Lambda/AppFlow for lightweight aggregation or ECS Fargate for heavier workloads.
  • Event/Message Lane: For asynchronous flows, using API Gateway for external events, EventBridge for internal events, SNS for fan-out, and SQS for buffered consumption.

Key Design Decisions and Principles

  • Lambda-first, ECS as fallback: Prioritizes serverless functions for short, stateless processing, leveraging ECS Fargate for longer-running or stateful tasks.
  • Reproducible Infrastructure: All AWS resources are defined as Infrastructure-as-Code (Terraform), ensuring environments can be rebuilt consistently and preventing configuration drift.
  • Amazon EventBridge as Canonical Event Bus: Centralizes inter-pattern communication, enabling content-based routing, event replay, and seamless integration with other AWS services.
  • Unified Error Management System (EMS): A custom system built on Spring Boot/Lambda with a Next.js frontend on Amplify provides centralized error handling. It routes failed transactions to SQS DLQs, captures metadata in DynamoDB, and stores payloads in S3. EMS enables L1/L2 operators to inspect, modify, and resubmit failed transactions idempotently, reducing developer involvement in error recovery.
  • Five-layer Security: Incorporates IAM RBAC, AWS WAF with VPC isolation, data classification, TLS 1.2+ in transit with KMS encryption at rest, and structured audit logging.
AWSIntegration PatternsServerlessInfrastructure as CodeEvent-Driven ArchitectureMiddleware ReplacementAPI GatewayError Handling

Comments

Loading comments...