Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use Google Cloud CDN with App Engine Standard environment?

I see no way to connect my app engine backends with Cloud CDN. Seems like it's only available when using Compute Engine directly.

like image 420
Cesar Varela Avatar asked Jun 12 '19 21:06

Cesar Varela


People also ask

Which programming environment is used for Google App Engine?

Google App Engine provides four possible runtime environments for applications, one for each of four programming languages: Java, Python, PHP, and Go. The environment you choose depends on the language and related technologies you want to use for developing the application.

Is Google App Engine and Google Cloud same?

Google App Engine and Google Cloud Platform are primarily classified as "Platform as a Service" and "Cloud Hosting" tools respectively. Snapchat, Accenture, and Movielala are some of the popular companies that use Google App Engine, whereas Google Cloud Platform is used by Sentry, WePay, and BetterCloud.

Does Google Cloud have CDN?

Cloud CDN (Content Delivery Network) uses Google's global edge network to serve content closer to users, which accelerates your websites and applications. Cloud CDN works with the global external HTTP(S) load balancer or the global external HTTP(S) load balancer (classic) to deliver content to your users.


2 Answers

No, that is not currently possible. Currently, Google Cloud CDN can be used only to serve content that originates from Cloud Storage buckets, Compute Engine instance groups, and Compute Engine network endpoint groups. I agree that it would make sense to support App Engine Standard, too!

like image 129
elving Avatar answered Nov 02 '22 03:11

elving


Update

Currently in beta is Serverless NEGs (Network Endpoint Groups) which will allow you to use App Engine behind a HTTP(S) Load balancer and give you all the features provided with that including CDN

Original

Yes, App Engine will serve content via Google Cloud CDN as long as a cacheable response is returned.

Try setting the Cache-Control header to something like max-age=86400, public and ensuring a Set-Cookie header is not sent with the response

like image 20
Craig Avatar answered Nov 02 '22 04:11

Craig