Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Egress pricing with: Cloud Run, Spanner, Global Load Balancer with NEG, Cloud CDN and CDN Interconne

Domain hosted on Cloudflare and it uses Global Application Load Balancer's IPV4 IP address from GCP as the origin server for A name record on Cloudflare. SSL provided by Cloudflare.

My setup for a web app:

1. Single region Spanner instance in us-west-1

2. Cloud Run service that serves web content in same region

3. Global Application Load Balancer(for future proofing - so my Cloud Run services can be in different regions than Spanner)

4. Same Cloud Run service talks to Spanner database and gets data and generates a dynamic page

5. Returns generated page HTML through Cloud CDN and it gets back to Cloudflare

Now in this setup:
1. Am I charged for Spanner egress to Cloud Run?
2. Am I charged using CDN Interconnect discounted egress?
3. What happens if I don't use the Cloud CDN. Is Global Application Load Balancer egress considered as part of compute engine? Because only Compute Engine egress is discounted as part of CDN Interconnect.
4. Is Cloud Run egress discounted for CDN Interconnect?

I have to decide an architecture for this dynamic website application that saves me on egress.

Can someone please help me with different egress costs in this setup?

2 1 638
1 REPLY 1

Hello @changcp,

Welcome to Google Cloud Community!

To answer your questions:

  1. You can refer to the Spanner pricing to see how spanner charges your usage
  2. Based on CDN Interconnect pricingEgress traffic rates apply only to data leaving Compute Engine or Cloud Storage. Egress charges for CDN Interconnect appear on the invoice as Compute Engine Network Egress via Carrier Peering Network.
  3. Check VM-to-Google service. Data transfer from Compute Engine and GKE to Cloud CDN and Media CDN is free.  
  4. Same as number 2, Egress traffic rates apply only to data leaving Compute Engine or Cloud Storage

I also suggest that you contact Cloud Billing Support to help you with your question. All Google Cloud accounts get free billing and payments support. Hope it helps, thank you!