concept url in category cloud

appears as: URL, URLs
Google Cloud Platform in Action

This is an excerpt from Manning's book Google Cloud Platform in Action.

This transaction could take on the order of hundreds of milliseconds, which might not seem like a lot, but imagine you start requesting lots of photos on a single page. Those hundreds of milliseconds start adding up. What can you do about this? Most of you might already know the answer is edge caching, or relying on a content distribution network. The idea of these services is that you give them copies of your data (in this case, the photos), and they store those copies in lots of different geographical locations. Then, instead of sending a URL to the image on your single server, you send a URL pointing to this content distribution provider, and it returns the photo using the closest available server. So where does cloud come in?

Table 8.4. Parameters for signing a URL with gsutil

Parameter

Flag

Meaning

Example

Method -m The HTTP method for your request GET
Duration -d How long until the signature expires 1h (one hour)
Content type -d The content type of the data involved (used only when uploading) image/png
Listing 8.10. gsutil command to sign a URL
$ gsutil signurl -m GET -d 30m key.json gs://my-example-bucket/private.txt
URL     HTTP Method     Expiration      Signed URL
gs://my-example-bucket/private.txt    GET     2016-06-21 07:07:35
https://storage.googleapis.com/my-example-
bucket/private.txt?GoogleAccessId=gcs-signer@your-project-
id.iam.gserviceaccount.com&Expires=1466507255&Signature=
 ZBufnbBAQOz1oS8ethq%2B5l9C7YmVHVbNM%2F%2B43z9XDcsTgpWoC
 bAMmJ2ZhugI%2FZWE665mxD%2BJL%2BJzVSy7BAD7qFWTok0vDn5a0
 sq%2Be78nCJmgE0lDTERQpnXSvbc0htOyVlFr8p3StKU0ST1wKoNIceh
 fRXWD45fEMMFmchPhkI8M8ASwaI%2FVNZOXp5HXtZvZacO47NTClB5k9
 uKBLlMEg65RAbBTt5huHRGO6XkYgnyKDY87rs18HSEL4dMauUZpaYC4Z
 Pb%2FSBpWAMOneaXpTHlh4cKXXNlrQ03MUf5w3sKKJBsUWBl0xoAsf3H
 pdnnrFjW5sUZUQu1RRTqHyztc4Q%3D%3D