gpt4 book ai didi

angularjs - 在生产中我是否需要 Nginx 和 Nodejs(使用 Firebase 进行托管和数据库)

转载 作者:太空宇宙 更新时间:2023-11-04 03:06:37 25 4
gpt4 key购买 nike

我有以下配置

Firebase - for hosting (serving static files) and storing data(Database).

Nodejs - for making API calls to Firebase, Twilio and Sendgrid.

Angularjs - for frontend

我需要 Nginx 来进行上述配置吗?查看类似 these 的答案让我考虑 Nginx。

我的应用程序旨在为数百个用户提供服务。

最佳答案

不,你不需要 nginx。有无数像您所描述的规模的 Node.js 应用程序不需要使用 nginx 之类的东西。

如果您在部署中遇到特定问题,您会使用 Nginx,并且 Nginx 是解决该问题的最简单/最好的方法。您没有描述任何具体问题(除了 Node.js 本身可以很好地扩展到几百个用户之外),因此您没有描述任何需要 Nginx 的原因。

Nginx 有很多它擅长的东西,但是在您确定对 Node.js 提供的功能之外的特定需求之前,我不会建议您仅仅因为 Nginx 帮助了某些人而使部署复杂化。相反,部署您的应用程序,衡量其性能,了解您的弱点在哪里,然后评估 Nginx 是否是帮助您修复任何需要修复的弱点的最佳工具。

关于angularjs - 在生产中我是否需要 Nginx 和 Nodejs(使用 Firebase 进行托管和数据库),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39135767/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com