Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firebase 我如何租用和使用自己的服务器来实现云功能?_Firebase_Google Cloud Platform_Google Cloud Firestore_Google Cloud Functions - Fatal编程技术网

Firebase 我如何租用和使用自己的服务器来实现云功能?

Firebase 我如何租用和使用自己的服务器来实现云功能?,firebase,google-cloud-platform,google-cloud-firestore,google-cloud-functions,Firebase,Google Cloud Platform,Google Cloud Firestore,Google Cloud Functions,我想使用我自己的服务器来实现云功能,而不是依赖谷歌来消除功能的冷启动,我该如何做到这一点呢?firebaser 目前没有在自己的服务器上运行云功能的本机方法。您可以运行Firebase emulator suite来模拟功能,但这些功能尚未准备好用于生产 更常见的方法是使用Express之类的工具设置自己的服务器。但你不会得到云功能提供的其他触发类型,因为这些触发类型目前只在谷歌的基础设施中可用,你还必须自己考虑负载的扩展。如果你运行自己的服务器,为什么要使用云功能?@GrantSingleto

我想使用我自己的服务器来实现云功能,而不是依赖谷歌来消除功能的冷启动,我该如何做到这一点呢?

firebaser

目前没有在自己的服务器上运行云功能的本机方法。您可以运行Firebase emulator suite来模拟功能,但这些功能尚未准备好用于生产


更常见的方法是使用Express之类的工具设置自己的服务器。但你不会得到云功能提供的其他触发类型,因为这些触发类型目前只在谷歌的基础设施中可用,你还必须自己考虑负载的扩展。

如果你运行自己的服务器,为什么要使用云功能?@GrantSingleton OP已经在他们的问题中提到:“消除功能的冷启动“有一些开源产品,如ApacheOpenWisk和openfaas,这样您就可以构建自己的功能/Lambda类型的服务。复制谷歌云功能将被删除,所有功能都不受支持。然而,说你想减少启动时间并成为一个云函数是一种反模式。有一个,你就有另一个。否则,它不是一项功能,而是更大的计划/服务基础设施的一部分。