本文介绍了如何自己命名一个serveURL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个存储在Google-CS存储桶中的图像文件中的serveURL,由我自己命名



I想自己命名serveURL。我有一个应该定义serveURL名称的单独的微服务。在这种情况下,我不必从Google-AE到微服务的往返,因为微服务处理授权。



有没有一种方法可以定义一个serveURL名称显式?

解决方案

不要使用serveURL。直接获取图片:

  https://storage.googleapis.com/myBucket/avatar.png 
https:/ https://storage.googleapis.com/myBucket/12345_avatar >

或用于存储图像的任何其他模式。 然后您没有多余的往返行程。


I want a servingURL out of a image-file stored in a Google-CS bucket, which is named by myself:

I want to name the servingURL myself. I have a seperate microservice which should define the name of the servingURL. In that case I don't have to make a roundtrip from Google-AE to my microservice since the microservice handles the authorization.

Is there a way to define a servingURL name explicit?

解决方案

Don't use a servingURL. Get images directly:

https://storage.googleapis.com/myBucket/avatar.png
https://storage.googleapis.com/myBucket/12345_avatar.png
https://storage.googleapis.com/myBucket/12345/avatar.png

or any other pattern that you use for storing your images.

Then you have no extra roundtrips.

这篇关于如何自己命名一个serveURL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-13 19:38