Workaround to make CDN working on App Engine Flex
What is a CDN?
CDN = Content Delivery Network
A content delivery network or content distribution network (CDN) is a server setup which allows for faster, more efficient delivery of your media files. It does this by maintaining copies of your media at different points of presence (POPs) along a global network to ensure quick client access and the fastest delivery possible. What you don’t want is for your users to have to wait long periods of time while your photos or videos are downloaded.
Why do you need a CDN?
Web users today are demanding faster, higher-quality services from their media hosting companies. The explosion of broadband and the high demand for rich-media content and applications makes quick access and delivery a top priority.
Let’s start 🎉
Currently App Engine Flex does not support CDN. But with this workaround it’s possible. 😎
- Create a new Backend Service in a Load Balacner
2. Point that at your CCS Bucket
3. Configure SSL and Host
You need to configure your Host and add your SSL certificate. It’s really easy to do that.
4. Point the url from the backend in your application code.
Don’t forget to add a A Record by accessing your domain providers dashboard or settings.
Know you can serve your files with your configured CDN. This will boost your service 🚀
Im using GCP for one year now and I’m really in love with this product.
Get $300 Credits for GCP here (12 Month 😍)