运行 iOS 应用程序在 Google 云上,即使它不支持 IPv6

How can you run iOS Apps on the Google Cloud even though it lacks support for IPv6

Apple 的新应用商店政策已于 6 月 1 日生效,因此提交到 App Store 的所有应用必须支持纯 IPv6 网络 (https://developer.apple.com/news/?id=05042016a). How is it possible to host an app on Google Cloud Platform that only supports IPv4 (https://cloud.google.com/compute/docs/networking)并且仍然通过了 Apple 的审核流程?

应用程序的服务器端不需要通过 IPv6 访问。大多数纯 IPv6 网络都有 DNS64/NAT64 服务,可以从纯 IPv6 客户端访问纯 IPv4 服务器。

如果您想了解其背后的技术,请查看 RFC 6052, RFC 6146 and RFC 6147

这当然会使您的应用程序依赖于丑陋的转换机制,这将(可能)降低客户的用户体验,因此确保您的服务器可通过 IPv4 和 IPv6 访问将使事情更好地进行。 Facebook and LinkedIn 两项测量均表明,通过 IPv6 移动网络的用户体验更好。性能提升范围从 10% 到 40%,具体取决于移动网络。

看起来这是合理的解决方案:

https://cloud.google.com/compute/docs/load-balancing/ipv6

但在使用此解决方案之前,您应该设置负载平衡

https://cloud.google.com/compute/docs/load-balancing/http/

要设置负载均衡,您需要创建实例组

https://cloud.google.com/compute/docs/instance-groups/