慢速平均堆栈Web应用程序
我有三个Mean stack构建的Web应用程序,该应用程序托管在共享托管计划上。它的运行速度真的很慢(登录时间为几分钟,几分钟才能调用数据库),我不确定如何优化性能。我创建了三个后端服务器,以便每个应用程序可以分别调用后端。我已经确保我的文件被gzzed并在http3上。我还应该/可以做什么?我似乎无法在线找到太多相关信息。请给我您可能有任何建议!
实施懒惰的加载会有所帮助吗?如果是这样,请分享一些简单的例子,因为我仍然是新手。非常感谢!
I have three MEAN Stack built web applications hosted on a shared hosting plan. It's running really slow (takes minutes to login and minutes to call the database) and I'm not sure how to optimise the performance. I have created three backend servers so that each application can can call the backend separately. I have ensured that my files are gzipped and are on HTTP3. What else should/can I do on top on that? I can't seem to find much related information online. Please give me any suggestions that you may have!
Would implementing lazy loading help? If so, please share some easy examples because I'm still new. Much appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议您摆脱共享托管,并使用以 aptaptable.io 。适应性包括MongoDB,因此非常适合Mean Stack。使用渲染,您可能会使用 mongodb atlas 。两者都提供了较小的应用程序可以适应的免费层。
使用任何下一代托管平台,您只需将GitHub存储库与源代码连接起来,它们会自动将您的应用程序部署到云中。您不必处理最新服务器,优化数据库性能或类似的内容。
I'd suggest moving off of shared hosting and using one of the newer generation developer-focused hosting platforms like Render or Adaptable.io. Adaptable includes MongoDB, so it's great for MEAN stack. With Render, you'd probably use MongoDB Atlas. Both provide free tiers that smaller apps can fit within.
With any of the next-gen hosting platforms, you just connect a GitHub repo with your source code and they automatically deploy your app to the cloud. You don't have to deal with keeping servers up to date, optimizing database performance or anything like that.