DEV Community

Cover image for Interview Question: How does Apigee Hybrid communicate with Google Cloud services?
realNameHidden
realNameHidden

Posted on Edited on

Interview Question: How does Apigee Hybrid communicate with Google Cloud services?

Answer:

Apigee Hybrid communicates with Google Cloud services through secure connections using different runtime components. Its architecture is divided into two parts: the Management Plane, which is hosted by Google Cloud, and the Runtime Plane, which runs inside the customer's Kubernetes environment.

There are several components responsible for communication:

1. Synchronizer: It periodically polls the Management Plane and downloads API proxy configurations, Shared Flows, environment configurations, and other runtime information. It makes this configuration available to Message Processors.

2. Apigee Connect: It establishes secure outbound communication between the Google Cloud Management Plane and MART in the Runtime Plane. This allows the Management Plane to communicate with MART without exposing MART directly to the public internet.

3. MART: It handles management API operations involving runtime data, such as KVMs, OAuth data, and API products. It interacts with Cassandra, which stores runtime data.

4. UDCA: It collects analytics and deployment-status information from the Runtime Plane and transfers it to the Unified Analytics Platform in the Management Plane.

5. Logger and Metrics: Logger sends runtime logs to Google Cloud Logging, while Prometheus collects metrics and can export them to Google Cloud Monitoring.

For security, Apigee Hybrid uses service accounts, IAM permissions, OAuth authentication, and TLS-encrypted communication.

One important point is that actual API request processing happens inside the Runtime Plane. Every API request does not travel to the Google Cloud Management Plane.

For example, when a developer deploys a Payment API, the Synchronizer downloads its configuration. When a client sends a payment request, the Message Processor executes the configured policies and routes the request to the backend. Meanwhile, UDCA collects analytics information and sends it to Google Cloud.

This separation allows the Runtime Plane to continue processing existing deployed APIs even when temporary connectivity with the Management Plane is interrupted, provided the runtime and required backend connectivity remain healthy.

Quick revision for interview

Component Responsibility
Synchronizer Downloads configuration
Apigee Connect Secure communication with MART
MART Runtime data management
Cassandra Stores runtime data
UDCA Transfers analytics and deployment status
Logger Sends logs to Cloud Logging
Prometheus Collects metrics

Top comments (0)