App Engine作为iOS后端

huangapple go评论70阅读模式
英文:

App Engine as iOS Backend

问题

我对后端开发还比较新手,而且Google Cloud似乎是为iOS应用程序托管Golang API的一个不错的选择。

最近,应用程序要求在仅支持IPv6的环境中可访问,我想知道Google Cloud App Engine是否可以提供这样的功能。

提前感谢!

英文:

I'm quite new to backend dev, and Google cloud seemed like a good option for hosting a Golang API for an iOS app.

Recently app started requiring that the app should be accessible in a IPv6 only environment, and I was wondering if Google Cloud App Engine can provide me with that.

Thanks in advance!

答案1

得分: 1

是的,2010年的一篇博客文章中,GAE团队表示:

> Google通过IPv6计划允许具有良好连接性的ISP请求访问大多数Google服务的IPv6。大约一周后,我们将把Google App Engine和appspot.com域名添加到该计划中。这意味着所有的App Engine应用将对参与该计划的任何人都可以通过IPv6访问!

> 对于大多数人来说,这不需要对你的代码做任何更改。如果你的App Engine代码在Python中读取os.environ["REMOTE_ADDR"],或者在Java中使用HttpServletRequest.getRemoteAddr(),请注意这个值可能是一个IPv4地址,如"192.0.2.1",或者是一个IPv6地址,如"2001:db8::1"。现在是时候验证你的代码是否对IPv4做出了任何特定的假设,以便你的IPv6准备就绪的用户能够无缝过渡。

英文:

Yes, a blog post in 2010 the GAE team stated

>
The Google over IPv6 program allows ISPs with good connectivity to request IPv6 access for most Google services. In about a week, we'll be adding Google App Engine and the appspot.com domain to this program. This means that all App Engine apps will become accessible over IPv6 to anyone participating in the program!

> For most people, this won't require any changes to your code at all. If your App Engine code reads os.environ["REMOTE_ADDR"] in Python, or HttpServletRequest.getRemoteAddr() in Java, be aware that this value may be an IPv4 address, like "192.0.2.1", or an IPv6 address, like "2001:db8::1". Now is the time to verify that your code doesn't make any IPv4-specific assumptions, so that your IPv6-ready users will have a seamless transition.

huangapple
  • 本文由 发表于 2017年1月17日 07:56:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/41686932.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定