We’re designing a new integration architecture for our cloud-based Pega 8.5 deployment and debating between REST and SOAP connectors for our microservices ecosystem. We have about 30 external services to integrate - mix of modern REST APIs and legacy SOAP services from our ERP system.
The REST advocates on our team argue for performance and cloud-native scalability. The SOAP supporters point to enterprise-grade reliability, built-in security standards, and better handling of complex transactions. We’re particularly concerned about API gateway architecture, monitoring capabilities, and how each approach handles connection pooling in cloud environments.
I know REST is the modern standard, but in practice, does it really scale better in cloud deployments? Has anyone implemented hybrid approaches with both connector types in Integration Hub? What are the real-world performance differences and operational considerations?
The real answer is hybrid. Use REST for your cloud-native microservices and customer-facing APIs where performance matters most. Keep SOAP for legacy ERP integration where you need the formal contract definitions and enterprise security standards. Integration Hub handles both connector types equally well, and you can standardize monitoring through the API gateway regardless of protocol. Don’t force everything into one approach just for architectural purity.
These are great perspectives. What about connector monitoring and observability? One concern with REST is the lack of standardized error handling compared to SOAP faults. How do you handle comprehensive monitoring across hybrid connector types in Integration Hub? Do you use Pega’s built-in monitoring or external APM tools?
Let me share some practical insights from implementing both approaches across multiple cloud deployments:
REST vs SOAP Performance Comparison
In cloud environments, REST demonstrates clear advantages:
- Throughput: REST handles 2-3x more requests per second with the same resources due to stateless nature and lightweight JSON payloads
- Latency: Average 40-50% lower response times (REST ~100-150ms vs SOAP ~250-350ms for similar operations)
- Resource utilization: REST consumes 30% less memory and CPU due to simpler parsing and no XML overhead
- Network efficiency: JSON payloads are typically 25-40% smaller than equivalent SOAP XML
However, SOAP has advantages for specific scenarios:
- Built-in WS-Security standards for enterprise authentication
- WSDL contracts provide strict type safety and validation
- Better support for complex, multi-step transactions requiring formal agreements
- Mature tooling for legacy enterprise system integration
Cloud Scalability Patterns
REST scales more naturally in cloud microservices architectures:
- Stateless design enables easy horizontal scaling
- Works seamlessly with API gateways and service meshes
- Better suited for containerized deployments and auto-scaling
- Simpler load balancing without session affinity requirements
SOAP can scale but requires more careful architecture:
- Session management adds complexity to load balancing
- Larger payload sizes increase network bandwidth requirements
- XML processing is more CPU-intensive, requiring vertical scaling
Legacy System Integration
For your 30-service integration mix, I recommend this hybrid approach:
- REST connectors: Use for all modern cloud-native services, customer-facing APIs, and high-volume transactions
- SOAP connectors: Maintain for legacy ERP integration where SOAP is the only option or where you need formal WS-* standards
- Adapter pattern: Create REST facades for SOAP services where possible to standardize your integration layer
API Gateway Architecture
Implement a unified API gateway strategy regardless of backend protocol:
- Route all Integration Hub connectors through a central API gateway
- Standardize authentication, rate limiting, and monitoring at the gateway level
- Use protocol translation at the gateway to expose SOAP services as REST endpoints where beneficial
- This abstraction layer lets you swap connector types without impacting consumers
Connector Monitoring
For comprehensive observability:
- Use Pega’s Integration Hub monitoring for connector health, transaction success rates, and basic performance metrics
- Implement structured logging with correlation IDs across both REST and SOAP connectors
- Deploy external APM tools for detailed performance profiling and distributed tracing
- Create standardized error response formats for both connector types
- Monitor these key metrics: response time percentiles (p50, p95, p99), error rates, timeout frequencies, and connection pool utilization
Practical Recommendation
For your scenario with 30 services, start with a 70/30 split favoring REST:
- Implement REST connectors for all new integrations and modern APIs
- Keep SOAP only where technically required by the backend service
- Build a thin adapter layer in Integration Hub that normalizes responses from both connector types
- Design your data transforms to be protocol-agnostic
This hybrid approach gives you the performance and scalability of REST while maintaining enterprise reliability where needed. The key is treating the connector type as an implementation detail hidden behind a consistent integration interface.