How to name a servingURL myself?(如何自己命名servingURL?)
问题描述
我想从存储在 Google-CS 存储桶中的图像文件中获取服务 URL,该存储桶由我自己命名:
I want a servingURL out of a image-file stored in a Google-CS bucket, which is named by myself:
我想自己命名服务 URL.我有一个单独的微服务,它应该定义服务 URL 的名称.在这种情况下,我不必从 Google-AE 到我的微服务进行往返,因为微服务会处理授权.
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.
有没有办法明确定义服务 URL 名称?
Is there a way to define a servingURL name explicit?
推荐答案
不要使用servingURL.直接获取图片:
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.
这篇关于如何自己命名servingURL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何自己命名servingURL?
基础教程推荐
- Struts2 URL 无法访问 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 修改 void 函数的输入参数,然后读取 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
