Universal bucket in Google Cloud Platform for content, which would determine the user's location and serve content from the closest server?
I use Google Cloud bucket to store 10-second videos and photos that I use in the application. Thousands of users use the application every day, and I want to use a CDN to ensure that the content of the application is delivered to users with minimum delays and maximum speed.
At the moment, I have only found an opportunity to create a bucket within one region to choose from: the USA, Europe, and Asia. How to create a universal bucket in Google Cloud Platform for storing application content, which would determine the user's location and serve content from the server closest to the user?
Thank you!
There is no way to do it. You can only have the "multi-region" bucket - the one you already found, I think - which is based on a geographical continent (multiple data centers), not a specific data center.
IMO, you should try Cloudflare on top of your bucket.
I hope it helps you! :)
@andrasbacsai thanks for the response. I have to link my custom domain name like cdn.octazone.app to Google bucket first and then link use it on Cloud Flare? Am I right?
@iamarsenibragimov You should have a CNAME DNS entry like in Cloudflare:
cdn.octazone.app -> c.storage.googleapis.com
Then have a bucket called cdn.octazon.app
, and that's all.
Not sure if it can be done without managing DNS entries in Cloudflare. Otherwise, I would suggest to try Google CDN - I have no experience with that one.
@iamarsenibragimov Or as an alternative to Google Storage & Cloudflare CDN, I would recommend BunnyCDN. :)
As you allude to, you would serve the content through a CDN to get the desired effect. If you are looking for an all-in-one solution then i can recommend Digital Ocean Spaces or Bunny.
For just the CDN, give Cloudflare a try.
@nblackburn I asked their community and the answer is
Cloudflare isn’t that type of CDN and doesn’t have distributed file storage (or any file storage, actually).
https://community.cloudflare.com/t/content-storage-which-would-determine-the-users-location-and-serve-content-from-the-closest-server/237587/2
@nblackburn also another community member suggested Bunny so I definitely have to give it a try. Thank you!
@iamarsenibragimov No it's not a object store which is why i separated it from the other suggestions but what you can do is proxy requests though it and have them cached like that.
They also have offer a video streaming service: https://www.cloudflare.com/en-gb/products/cloudflare-stream.
Please sign in to leave a comment.