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!

Andras Bacsai

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! :)

0 Likes
Arsen Ibragimov Author

@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?

0 Likes
Andras Bacsai

@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.

0 Likes
Andras Bacsai

@iamarsenibragimov Or as an alternative to Google Storage & Cloudflare CDN, I would recommend BunnyCDN. :)

0 Likes

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.

0 Likes
Arsen Ibragimov Author

@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

0 Likes
Arsen Ibragimov Author

@nblackburn also another community member suggested Bunny so I definitely have to give it a try. Thank you!

0 Likes

@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.

0 Likes

Please sign in to leave a comment.