如何租用和使用自己的服务器来实现云功能? [英] How can I rent and use my own servers for cloud functions?

查看:57
本文介绍了如何租用和使用自己的服务器来实现云功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用自己的服务器来实现云功能,而不是依靠Google来消除功能的冷启动,怎么办?

I want to use my own servers for cloud functions instead of relying on Google's to eliminate the cold start of functions, how can I do this?

推荐答案

firebaser此处

当前没有在您自己的服务器上运行您的Cloud Functions的本地方法.您可以运行Firebase仿真器套件来仿真功能,但尚未准备好用于生产.

There is currently no native way to run your Cloud Functions on your own server. You can run the Firebase emulator suite to emulate functions, but those are not ready for production use.

更常见的方法是使用Express之类的东西来设置自己的服务器.但是您将无法获得Cloud Functions提供的其他触发器类型,因为这些触发器类型目前仅在Google的基础架构中可用,您还必须自己照顾负载的扩展.

The more common approach is to set up your own server, using something like Express. But you won't get the other trigger types that Cloud Functions offers, as those are only available within Google's infrastructure at the moment and you'll have to take care of scaling with the load yourself too.

这篇关于如何租用和使用自己的服务器来实现云功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆