英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论