Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2 Benefits may be not applicable for this plugin? #274

Closed
m444estro opened this issue Jul 19, 2018 · 4 comments
Closed

#2 Benefits may be not applicable for this plugin? #274

m444estro opened this issue Jul 19, 2018 · 4 comments

Comments

@m444estro
Copy link

In your readme text for benefits #2:
"Google Cloud Storage is geo-redundant, meaning your media is delivered by the closest server - reducing latency and improving page speed."

But this is only for multi regional storage option.

The statement is correct but I think it's not applicable or rather misleading for this plugin. Because this suggest people to opt for "multi regional" cloud storage option which is not utilized by this plugin.

If I understand correctly how your plugin work (especially in stateless mode), wp-content/uploads = a folder in google cloud storage.

Say your webserver is in us-west1. No matter where your visitors are, it will always be a us-west1 box connecting/requesting to the cloud storage. Hence, you should have same region cloud storage regardless.

Meaning people should opt "regional" cloud storage instead of "multi regional". This will reduce latency and cost.

Please correct me if my understanding is wrong.

@ewsopp
Copy link
Member

ewsopp commented Jul 19, 2018

WP-Stateless configures the bucket to have a Multi-Regional Storage Class. Details about the multi-regional storage class can be found at https://cloud.google.com/storage/docs/storage-classes#multi-regional

Google will proxy the user to the closest storage location on image request. They handle all the technical details here.

@m444estro
Copy link
Author

Apologies, I didn't know the plugin is set to opt MR storage regardless. Will there be option for regional storage in the future?

If I understand correctly, the "image" will always be requested by a wordpress server in X region. Hence, Multi Regional option doesn't help to reduce latency/improve page speed.

The only part of "geo-redundant" that benefit this plugin is that if disaster happen, data can be recovered from other regions.

*If it happens to a local region storage, it's gone, unless one has backup plan e.g. data are downloaded to offline disk routinely.

@ewsopp
Copy link
Member

ewsopp commented Jul 19, 2018

Will there be option for regional storage in the future?

Maybe

If I understand correctly, the "image" will always be requested by a wordpress server in X region. Hence, Multi Regional option doesn't help to reduce latency/improve page speed.

The image is requested by the user's web browser. Not sure how WordPress fits in here...

The only part of "geo-redundant" that benefit this plugin is that if disaster happen, data can be recovered from other regions.

That's not how it works. Every file has a URL and when accessing that URL, Google determines where to load that file from based on many details - including where the requestor (the user loading the web page) is located.

@m444estro
Copy link
Author

I have been misunderstanding completely.

So, basically, it's like an embedded youtube video. Directly to youtube, not/barely using the resources of the site owner's webserver.

That's awesome! Thanks a lot

@ewsopp ewsopp closed this as completed Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants