Private Service Connect (original) (raw)

This document provides an overview of Private Service Connect.

Private Service Connect is a capability of Google Cloud networking that allows consumers to access managed services privately from inside their VPC network. Similarly, it allows managed service_producers_ to host these services in their own separate VPC networks and offer a private connection to their consumers. For example, when you use Private Service Connect to access Cloud SQL, you are the service consumer, and Google is the service producer.

With Private Service Connect, consumers can use their own internal IP addresses to access services without leaving their VPC networks. Traffic remains entirely within Google Cloud. Private Service Connect provides service-oriented access between consumers and producers with granular control over how services are accessed.

Private Service Connect lets you send traffic to endpoints and backends that forward the traffic to managed services, including Google APIs and published services. Private Service Connect interfaces let managed services initiate connections to consumer VPC networks.

Choosing a Private Service Connect feature

The following table summarizes which Private Service Connect features to use for different use cases.

Use case Private Service Connect feature
Consume services Endpoints provide layer 4 connectivity to services. If you need load balancer features, such as custom URLs or advanced traffic management, use backends.
Produce services Published services let consumers send requests to your service. If you need to initiate connections to consumers, useinterfaces.

Private Service Connect types

Private Service Connect is available in different types that provide different capabilities and modes of communication.

Service producers publish their applications to consumers by creating Private Service Connect services. Service consumers access those Private Service Connect services directly through one of these Private Service Connect types:

Service producers can initiate connections to service consumers by usingPrivate Service Connect interfaces. Private Service Connect interfaces provide bidirectional communication and can be used in the same VPC network as endpoints and backends.

Endpoints

Private Service Connect endpoints are internal IP addresses in a consumer VPC network that can be directly accessed by clients in that network. Endpoints are created by deploying a forwarding rulethat references a service attachment, a bundle of Google APIs, or a single regional API.

The following diagram shows a Private Service Connect endpoint that targets a published service that is running in a separate VPC network and organization. Private Service Connect endpoints and published services let two independent companies communicate with each other by using internal IP addresses. For more information, see About accessing published services through endpoints.

Private Service Connect lets you send traffic to endpoints that forward the traffic to published services in another VPC network.

Similarly, a Private Service Connect endpoint can be used to access Google APIs such as Cloud Storage or BigQuery. This functionality is similar to Private Google Access, except that you can use your own internal IP addresses for endpoints. Private Service Connect lets you more directly control routing and create as many endpoints as necessary for your network. For more information, see About accessing Google APIs through endpoints.

Private Service Connect lets you send traffic to endpoints that forward the traffic to Google APIs.

Backends

Private Service Connect backends let Google Cloud load balancers send traffic through Private Service Connect to reach published services or Google APIs. The backends are deployed through Private Service Connect network endpoint groups (NEGs)that reference a producer service attachment or a supported Google API. Placing a load balancer in front of a managed service provides the consumer with more visibility and control than is possible through a Private Service Connect endpoint. Backends let you create configurations such as the following:

The following diagram shows an internal Application Load Balancer deployed with Private Service Connect backends that reference a published service. There are two load balancers in the configuration:

Private Service Connect lets you send traffic to backends that forward the traffic to published services.

Similarly to Private Service Connect endpoints, backends also support targeting Google APIs. The following diagram shows an internal Application Load Balancer that targets a Cloud Storage bucket and terminates traffic by using a customer-owned domain.

Private Service Connect lets you send traffic to backends that forward the traffic to a regional Google API.

Interfaces

A Private Service Connect interface is a special type ofnetwork interfacethat refers to a network attachment.

A service producer can create a Private Service Connect interface and request a connection to a network attachment. If the service consumer accepts the connection, Google Cloud allocates the interface an IP address from a subnet in the consumer VPC network that's specified by the network attachment. The VM of the Private Service Connect interface has a second standard network interface that connects to the producer's VPC network.

A connection between a Private Service Connect interface and a network attachment is similar to the connection between a Private Service Connect endpointand aservice attachment, but it has two key differences:

Private Service Connect interfaces let service producers initiate connections to service consumers.

Private Service Connect managed services

Managed services are services that are owned and managed by someone other than the service consumer. Private Service Connect can be used to access managed services that are owned by Google, third-party software as a service (SaaS) companies, or other teams within the consumer's own company. Both published services and Google APIs can be targets of Private Service Connect.

Private Service Connect supports access to the following types of managed services:

Published services

Published services are VPC-hosted services that are deployed in the producer's VPC network and are accessed from the consumer's VPC network. Publishing a service lets the service producer own and control the deployment of the service in their own VPC network. Published services can include the following:

Service attachments

Service attachmentsare resources that are used to create Private Service Connect published services.

Service attachments can be accessed by usingendpoints orbackends. Multiple backends or endpoints can connect to the same service attachment, which lets multiple VPC networks or multiple consumers access the same service instance.

A service attachment targets a producer load balancer and lets clients in a consumer VPC network access the load balancer. The service attachment configuration defines the following:

Google APIs

Using Private Service Connect to access Google APIs is an alternative to using Private Google Access or the public domain names for Google APIs. In this case, the producer is Google.

Google APIs can be accessed by using endpoints or backends.

Using Private Service Connect lets you do the following:

Private Service Connect characteristics

Private Service Connect provides private connectivity that has the following characteristics:

To learn more about the internal design of Private Service Connect, seePrivate Service Connect architecture and performance.

What's next