This topic describes network solutions for various scenarios, including public internet access, cross-VPC communication, and hybrid cloud connections.
Select a region and zone
Before purchasing and using Realtime Compute for Apache Flink, understand the following basic concepts.
-
Region
A region is a geographical area where Alibaba Cloud data centers are located, typically named after the city where they reside. For example, the China (Hangzhou) region indicates data centers in the city of Hangzhou. The closer your resources are deployed to your business data, the lower the network latency and the faster the access.
-
Zone
A zone is a physical data center with independent power and network infrastructure within a single region. A region typically contains multiple zones, and zones in different regions are completely isolated. When you deploy workloads, you can choose to deploy them across zones. Because zones have independent power and network infrastructure, this approach significantly improves service reliability, provides disaster recovery redundancy across data centers in the same city, and ensures high availability.
Select the optimal region and zone for your services based on the location of your business data. This choice ensures high availability and stability for your data while reducing data transfer latency.
Network options
Select a network solution based on your data's network environment.
|
Data source |
Use cases |
|
Choose this option to access external data sources over a public IP address. This is required if the data source does not support private communication or is not in a VPC. |
|
|
This option enables private communication between two VPCs, which can be in the same or different accounts and regions. |
|
|
Choose this option to connect services from other cloud providers or your on-premises data centers, creating a multi-cloud or hybrid environment. |
Public data sources
Public internet access has less predictable latency than private networks. If your workload requires low latency and stable connectivity, prioritize private network access.
Alibaba Cloud NAT Gateway connects a VPC to the public internet, allowing Realtime Compute for Apache Flink to access public data sources.
Cross-VPC services
If the other services are still in the early planning stage or can be replaced, deploy them in the same VPC as Realtime Compute for Apache Flink. Alternatively, recreate your Flink workspace in the same VPC as the other services.
The following methods are commonly used for cross-VPC network connections:
-
VPC Peering Connection: A VPC Peering Connection connects two VPCs, which can be in different accounts or regions. This enables them to communicate directly by using private IP addresses as if they were in the same network.
-
Transit Router: A Transit Router connects and forwards traffic among network instances in the same region or across regions. When you attach network instances like VPCs to it, routes synchronize automatically. It supports both intra-region and cross-region connections.
-
PrivateLink: PrivateLink enables service access across VPCs through a secure, private channel. This avoids exposure to the public internet (for example, from data leakage and DDoS attacks), simplifies the network architecture, and improves access efficiency and reliability.
|
Item |
VPC Peering Connection |
Transit Router |
PrivateLink |
|
Connection method |
Point-to-point connection between two VPCs |
VPCs connect to a Transit Router via network connections |
Directional connection between VPCs based on an endpoint service |
|
Route propagation |
Not supported |
Supported |
Not supported |
|
Access direction |
Bidirectional |
Bidirectional |
Unidirectional |
|
Cross-account |
Supported |
Supported |
Supported |
|
Cross-region |
Supported |
Supported |
Not supported |
|
Best for |
Connecting a small number of VPCs |
Connecting a large number of VPCs |
Directional access to a service in another VPC |
|
Configuration complexity |
High. Requires establishing a peering connection and configuring routes in both VPCs for each pair. |
Low. Each VPC only needs to be attached to the Transit Router and have a route pointing to the attachment. |
Low. PrivateLink simplifies network configuration by eliminating the need to manage address conflicts or route configurations. |
|
Network latency |
Low |
Medium. Traffic passing through the Transit Router adds an extra hop, which increases latency. |
Low |
|
Cost |
No charge for intra-region connections. For cross-region connections, Cloud Data Transfer (CDT) charges for outbound traffic transfer. |
Fees apply for connections and data processing. Cross-region connections also incur bandwidth plan fees. |
Billing is based on the actual usage of the PrivateLink service, which includes instance fees and data processing fees. |
|
Overlapping CIDR blocks |
Not allowed |
Not allowed |
Allowed |
Example scenario
An enterprise creates VPC1 in the China (Hangzhou) region and VPC2 in the China (Beijing) region. Realtime Compute for Apache Flink is deployed in the China (Hangzhou) region, while an ECS instance for data storage and development is provisioned in the China (Beijing) region.
A VPC Peering Connection is the best solution for this scenario, which requires network communication between different VPCs (potentially across regions) under the same or different Alibaba Cloud accounts.
-
The CIDR blocks of the VPCs and vSwitches at both ends of a peering connection cannot overlap.
For example, two VPCs with CIDR blocks 192.168.0.0/16 and 192.168.0.0/24 cannot communicate even if a VPC Peering Connection is established, because their CIDR blocks overlap.
-
To create a cross-account VPC Peering Connection, ensure that both the requester and acceptor accounts have created VPCs.
-
For detailed instructions, see Use a VPC Peering Connection to enable private communication between VPCs.
Hybrid cloud scenarios
The following products support connecting on-premises data centers and other networks to a VPC, allowing you to quickly build a hybrid cloud.
-
Express Connect: Express Connect uses dedicated physical circuits to connect on-premises data centers, other cloud platforms, and other networks to Alibaba Cloud. Even over long distances, Express Connect provides communication quality comparable to a private network, featuring low latency, low packet loss, and high bandwidth.
-
VPN Gateway: VPN Gateway establishes an encrypted, secure, and reliable connection between your Alibaba Cloud VPC and various other networks, including on-premises data centers, office networks, internet clients, and other cloud platforms.
|
Item |
Express Connect |
VPN Gateway |
|
Quality |
High (dedicated circuit) |
Low (public internet) |
|
Provisioning time |
Long (2 to 3 months) |
Short (available immediately after activation and authentication) |
|
Cost |
High |
Low |
|
Bandwidth |
A single link supports up to 100 Gbps. You can aggregate multiple circuits to achieve Tbps-level bandwidth. |
Limited by the bandwidth of the public IP address. |
|
Use cases |
Cloud migration for enterprises with high network security requirements, such as those in the finance and government sectors. |
Cloud migration for basic services such as enterprise office networks and data storage. |