In This Article
- The Hybrid Reality: Why Most Enterprises Operate Across Environments
- Connectivity Foundation: VPN, ExpressRoute, and Private Link
- 4 Hybrid Integration Patterns
- Pattern 1: Data Synchronization — On-Prem Database to Cloud
- Pattern 2: API Bridge — Cloud Applications Calling On-Prem Services
- Pattern 3: Event Bridge — On-Prem Events to Cloud Processing
- Pattern 4: Identity Bridge — Single Sign-On Across Environments
- Latency Management: When Milliseconds Matter
- Go Deeper
The Hybrid Reality: Why Most Enterprises Operate Across Environments
A manufacturing company migrated 60% of workloads to Azure. The remaining 40% stays on-premises: the MES (Manufacturing Execution System) requires sub-10ms latency to PLCs on the factory floor — cloud round-trip adds 20-50ms. The mainframe running the core insurance policy system has a 5-year modernization timeline — it's not moving to cloud this decade. The SCADA system for the power plant is air-gapped by regulation. These systems aren't on-premises because the company is "behind on cloud" — they're on-premises because that's where they perform best or where regulations require them.
Hybrid integration is not a transitional state — for many enterprises, it's the permanent state. The integration architecture must treat on-premises systems as first-class participants in the cloud architecture, not as legacy exceptions being grudgingly accommodated. Data flows bidirectionally, APIs are called in both directions, events propagate across environments, and identity works universally. The system integration challenge: making this work reliably despite the fundamental differences between on-premises networking (low-latency, high-bandwidth, private) and cloud networking (higher-latency, variable-bandwidth, shared).
Connectivity Foundation: VPN, ExpressRoute, and Private Link
| Option | Bandwidth | Latency | Cost | Best For |
|---|---|---|---|---|
| Site-to-Site VPN | Up to 10 Gbps (aggregate) | Variable (internet path) | Low ($100-500/month) | Dev/test, low-bandwidth, backup connectivity |
| ExpressRoute | 50 Mbps - 100 Gbps | Predictable (dedicated circuit) | High ($200-10,000+/month) | Production, high-bandwidth, latency-sensitive |
| ExpressRoute + Private Peering | Same as ExpressRoute | Lowest (private circuit, no internet) | Highest | Regulated data, maximum security |
ExpressRoute for production hybrid: ExpressRoute provides a dedicated, private connection between on-premises and Azure — traffic doesn't traverse the public internet. Benefits: predictable latency (consistent 5-15ms instead of variable 20-100ms over VPN), higher bandwidth (up to 100 Gbps for large data transfers), SLA-backed availability (99.95% with redundant circuits), and private connectivity (data doesn't touch the internet — critical for regulated industries). For production hybrid architectures, ExpressRoute is the standard. VPN serves as backup connectivity or for non-production environments.
DNS resolution across environments: On-premises applications resolve cloud resources by name (not IP). Cloud applications resolve on-premises services by name. Azure Private DNS Zones and conditional DNS forwarding create a unified namespace: api.company.internal resolves to the cloud endpoint for cloud applications and to the on-premises endpoint for on-premises applications — same name, environment-appropriate resolution.
4 Hybrid Integration Patterns
Pattern 1: Data Synchronization — On-Prem Database to Cloud
The most common hybrid pattern: on-premises transaction databases feed cloud analytics platforms. The ERP (on-premises SQL Server) generates transactions. The analytics platform (Fabric lakehouse) needs that data for dashboards and ML. Synchronization options:
Azure Data Factory self-hosted integration runtime: An agent installed on-premises connects to local databases and copies data to Azure through the ExpressRoute connection. Supports scheduled and CDC-based replication. The agent runs on a VM in the on-premises datacenter, authenticates to Data Factory using managed identity, and transfers data through the private connection. No data traverses the public internet.
SQL Server replication to Azure SQL: For SQL Server specifically, transactional replication pushes changes from on-premises SQL Server to Azure SQL Managed Instance in near-real-time. The managed instance serves as the cloud copy of the on-premises database — applications in Azure read from the managed instance instead of reaching back to on-premises.
Cloud data migration with CDC: Debezium CDC on the on-premises database captures changes and publishes to an event stream (Azure Event Hubs). Cloud consumers process the change events for near-real-time analytics, cache synchronization, and search index updates. This pattern decouples the cloud from the on-premises database — the cloud never queries on-premises directly.
Pattern 2: API Bridge — Cloud Applications Calling On-Prem Services
Cloud applications need data from on-premises systems: the cloud customer portal queries the on-premises ERP for order status. The cloud analytics application calls the on-premises HR system for employee data. The integration challenge: the on-premises API isn't internet-accessible (by design), and cloud applications can't directly reach on-premises networks.
Azure API Management with self-hosted gateway: API Management deploys a self-hosted gateway on-premises (a container running in the datacenter). The gateway connects to on-premises APIs locally (low-latency) and to the cloud API Management control plane through ExpressRoute. Cloud applications call the API Management endpoint in Azure; API Management routes to the self-hosted gateway; the gateway calls the on-premises API. The on-premises API never touches the internet. API Management provides: authentication (cloud apps authenticate to API Management, not directly to on-premises), rate limiting (protect on-premises systems from cloud-scale traffic), and monitoring (centralized API analytics across cloud and on-premises APIs).
Azure Relay: For simpler scenarios, Azure Relay creates a bidirectional communication channel between on-premises and cloud without VPN or ExpressRoute. The on-premises listener connects outbound to Azure Relay (no inbound firewall rules needed). Cloud applications send messages to the relay endpoint. The relay forwards to the on-premises listener. Simple, no infrastructure changes required — but limited to supported protocols and not suitable for high-throughput scenarios.
Pattern 3: Event Bridge — On-Prem Events to Cloud Processing
On-premises systems generate business events (order placed, shipment dispatched, inventory updated) that cloud systems need to process. The event bridge publishes on-premises events to a cloud event bus for cloud consumers.
Implementation: On-premises application → publishes events to a local message broker (RabbitMQ, Azure Service Bus on-premises gateway) → bridge agent forwards events to Azure Service Bus or Event Hubs through ExpressRoute → cloud consumers subscribe and process. The bridge agent handles: event transformation (on-premises format to cloud schema), buffering (queue events locally if the cloud connection is temporarily unavailable), and filtering (forward only events that cloud consumers need — not all on-premises system chatter).
This pattern enables: real-time cloud dashboards fed by on-premises transactions, cloud ML models scoring on-premises events, and cloud workflow automation triggered by on-premises business events — all without the on-premises system knowing or caring about cloud consumers.
Pattern 4: Identity Bridge — Single Sign-On Across Environments
Users should authenticate once and access both on-premises and cloud applications. Entra ID Connect synchronizes on-premises Active Directory to Entra ID, creating hybrid identity. Users sign in with their on-premises AD credentials, which Entra ID validates for cloud resources. Conditional Access policies apply consistently: MFA required for cloud access, device compliance checked regardless of whether the application is on-premises or cloud. The identity bridge is the foundation for unified hybrid user experience — without it, users maintain separate credentials for on-premises and cloud, leading to password fatigue and security risk.
Latency Management: When Milliseconds Matter
Hybrid architecture introduces network latency that doesn't exist in pure on-premises or pure cloud. An API call that takes 1ms on the local network takes 10-30ms through ExpressRoute. For most applications, this is acceptable. For latency-sensitive applications (real-time trading, manufacturing control, gaming), this matters.
Caching strategy: Cache frequently accessed on-premises data in Azure Redis Cache. The cloud application reads from cache (sub-millisecond) instead of calling on-premises (10-30ms). The cache refreshes on a schedule or through event-driven invalidation (on-premises system publishes "data changed" → cache refreshes). Caching reduces on-premises API traffic by 70-90% while providing sub-millisecond cloud access to on-premises data.
Read replica strategy: Replicate on-premises databases to Azure SQL or Cosmos DB. Cloud applications read from the cloud replica (local latency) while the on-premises database remains the write master. Replication lag (seconds to minutes) is acceptable for most analytical and read-heavy workloads.
Edge processing: For sub-10ms requirements, process at the edge — Azure IoT Edge or Azure Stack HCI runs cloud services on-premises hardware. The processing happens locally (microsecond latency); results sync to the cloud asynchronously. Manufacturing, IoT, and real-time control workloads use edge processing to meet latency requirements while maintaining cloud integration for analytics and management.
Monitoring Hybrid Integration Health
Hybrid integration monitoring must cover both environments and the connection between them. Three monitoring dimensions: connectivity health (is the ExpressRoute/VPN up? What's the current latency and bandwidth utilization? Is there packet loss?), data freshness (is the cloud replica current? How many minutes behind is the latest synchronized record? Is CDC lag increasing?), and integration throughput (are messages flowing at expected volume between environments? Are API calls from cloud to on-premises succeeding within latency SLA?). Azure Network Watcher monitors connectivity. Azure Monitor tracks data freshness via pipeline telemetry. Custom dashboards show the combined health across environments. Alert on: connectivity loss (immediate — affects all hybrid integration), freshness degradation (15+ minutes behind SLA — investigate cause), and throughput drop (50%+ below baseline — source system issue or integration failure).
Disaster Recovery for Hybrid Environments
Hybrid DR is more complex than single-environment DR because failure modes span environments. Scenarios to plan for: on-premises datacenter failure (cloud workloads continue; on-premises-dependent integrations fail — failover to cloud-based replicas or degraded operation), cloud region failure (on-premises workloads continue; cloud-dependent integrations fail — failover to secondary Azure region), and connectivity failure (both environments operational but disconnected — each operates independently with data reconciliation when connectivity restores). Each scenario requires: defined recovery procedures, tested failover automation, and reconciliation processes for data that diverged during the failure window.
The Xylity Approach
We design hybrid integration with the 4-pattern architecture — data synchronization for analytics, API bridges for service communication, event bridges for reactive processing, and identity bridges for unified access. Our Azure engineers and cloud architects implement the connectivity foundation (ExpressRoute, DNS, Private Link) and integration patterns that make hybrid environments feel like a single platform to users and applications.
Go Deeper
Continue building your understanding with these related resources from our consulting practice.
Connect On-Premises and Cloud — Reliably
Four patterns — data sync, API bridge, event bridge, identity bridge. Hybrid integration architecture that makes multi-environment feel like one.
Start Your Hybrid Integration →